repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/fineract | 1,029 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/client/ClientActivatedEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.test.messaging.event.client;
public class ClientActivatedEvent extends AbstractClientEvent {
@Override
public String getEventName() {
return "ClientActivateBusinessEvent";
}
}
|
apache/flex-blazeds | 1,072 | core/src/main/java/flex/messaging/messages/BatchableMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package flex.messaging.messages;
/**
* Implemented by messages that may be batched.
*/
public interface BatchableMessage {
/**
* Returns true if the message is batched.
*
* @return true if this message is batched
*/
boolean isBatched();
}
|
apache/flink | 1,059 | flink-core/src/main/java/org/apache/flink/api/common/operators/IterationOperator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.api.common.operators;
import org.apache.flink.annotation.Internal;
import org.apache.flink.api.common.aggregators.AggregatorRegistry;
@Internal
public interface IterationOperator {
AggregatorRegistry getAggregators();
}
|
apache/ftpserver | 1,067 | core/src/main/java/org/apache/ftpserver/ssl/ClientAuth.java | /*
* 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.
*/
package org.apache.ftpserver.ssl;
/**
* Enumeration of possible levels of client authentication during an SSL
* session.
*
* @author <a href="http://mina.apache.org">Apache MINA Project</a>
*/
public enum ClientAuth {
/**
* Client authentication is required
*/
NEED,
/**
* Client authentication is requested but not required
*/
WANT,
/**
* Client authentication is not performed
*/
NONE
} |
apache/geode | 1,035 | geode-serialization/src/main/java/org/apache/geode/internal/serialization/filter/ObjectInputFilterApiFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.internal.serialization.filter;
/**
* Creates an instance of {@code ObjectInputFilterApi}.
*/
@FunctionalInterface
public interface ObjectInputFilterApiFactory {
ObjectInputFilterApi createObjectInputFilterApi();
}
|
apache/geode | 1,047 | geode-core/src/main/java/org/apache/geode/internal/monitoring/executor/AsyncWriterExecutorGroup.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.internal.monitoring.executor;
public class AsyncWriterExecutorGroup extends SuspendableExecutor {
public static final String GROUP_NAME = "AsyncWriterExecutor";
public AsyncWriterExecutorGroup() {
super(GROUP_NAME);
}
}
|
apache/gobblin | 1,052 | gobblin-runtime/src/main/java/org/apache/gobblin/service/monitoring/ResumeFlowEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.service.monitoring;
import lombok.AllArgsConstructor;
import lombok.Data;
@AllArgsConstructor
@Data
public class ResumeFlowEvent {
private String flowGroup;
private String flowName;
private Long flowExecutionId;
}
|
apache/groovy | 1,077 | src/main/java/org/codehaus/groovy/transform/ErrorCollecting.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.codehaus.groovy.transform;
import org.codehaus.groovy.ast.ASTNode;
/**
* An AST transform with the ability to report errors.
*
* @see ASTTransformation
*/
public interface ErrorCollecting {
void addError(String msg, ASTNode expr);
}
|
apache/hadoop | 1,041 | hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/contracts/annotations/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.Private
@InterfaceStability.Evolving
package org.apache.hadoop.fs.azurebfs.contracts.annotations;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/hadoop | 1,041 | hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/contracts/diagnostics/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.Private
@InterfaceStability.Evolving
package org.apache.hadoop.fs.azurebfs.contracts.diagnostics;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/hama | 1,081 | core/src/main/java/org/apache/hama/ipc/HamaRPCProtocolVersion.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hama.ipc;
/**
* There is one version id for all the RPC interfaces. If any interface is
* changed, the versionID must be changed here.
*/
public interface HamaRPCProtocolVersion extends VersionedProtocol {
public static final long versionID = 1L;
}
|
apache/harmony | 1,045 | classlib/modules/print/src/main/java/common/javax/print/attribute/PrintServiceAttributeSet.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Elena V. Sayapina
*/
package javax.print.attribute;
public interface PrintServiceAttributeSet extends AttributeSet {
boolean add(Attribute attribute);
boolean addAll(AttributeSet attributeSet);
}
|
apache/hbase | 1,044 | hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/expression/ExpressionNode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hbase.security.visibility.expression;
import org.apache.yetus.audience.InterfaceAudience;
@InterfaceAudience.Private
public interface ExpressionNode {
boolean isSingleNode();
ExpressionNode deepClone();
}
|
apache/hive | 1,060 | llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/DummyTokenManager.java | /*
* 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.hadoop.hive.llap.daemon.impl;
import org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.GetTokenRequestProto;
import org.apache.hadoop.hive.llap.security.LlapTokenIdentifier;
import org.apache.hadoop.security.token.Token;
public class DummyTokenManager implements LlapTokenManager {
@Override
public Token<LlapTokenIdentifier> getToken(GetTokenRequestProto request, boolean isSigningRequired) {
return null;
}
@Override
public void close() {
}
}
|
apache/hive | 1,069 | serde/src/java/org/apache/hadoop/hive/serde2/thrift/SkippableTProtocol.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hive.serde2.thrift;
import org.apache.thrift.TException;
/**
* An interface for TProtocols that can efficiently skip fields when
* deserializing.
*/
public interface SkippableTProtocol {
void skip(byte type) throws TException;
}
|
apache/hop | 1,056 | plugins/engines/beam/src/main/java/org/apache/hop/beam/transforms/pubsub/BeamSubscribeData.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.beam.transforms.pubsub;
import org.apache.hop.pipeline.transform.BaseTransformData;
import org.apache.hop.pipeline.transform.ITransformData;
public class BeamSubscribeData extends BaseTransformData implements ITransformData {}
|
apache/iceberg | 1,066 | core/src/test/java/org/apache/iceberg/TestLocalScanPlanningAndReporting.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iceberg;
public class TestLocalScanPlanningAndReporting
extends ScanPlanningAndReportingTestBase<TableScan, FileScanTask, CombinedScanTask> {
@Override
protected TableScan newScan(Table table) {
return table.newScan();
}
}
|
apache/ignite-extensions | 1,033 | modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/composition/predictionsaggregator/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.
*/
/**
* <!-- Package description. -->
* Contains classes for several predictions aggregation strategies
* working with predictions vector from models ensemble.
*/
package org.apache.ignite.ml.composition.predictionsaggregator;
|
apache/ignite | 1,027 | modules/core/src/main/java/org/apache/ignite/internal/processors/rest/client/message/GridClientClusterNameRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.processors.rest.client.message;
/**
*
*/
public class GridClientClusterNameRequest extends GridClientAbstractMessage {
/** */
private static final long serialVersionUID = 0L;
}
|
apache/impala | 1,031 | java/yarn-extras/src/main/java/org/apache/impala/yarn/server/resourcemanager/scheduler/fair/FSQueueType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.impala.yarn.server.resourcemanager.scheduler.fair;
//YARNUTIL: VANILLA
public enum FSQueueType {
/*
* Represents a leaf queue
*/
LEAF,
/*
* Represents a parent queue
*/
PARENT
}
|
apache/incubator-atlas | 1,065 | server-api/src/main/java/org/apache/atlas/setup/SetupException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.atlas.setup;
public class SetupException extends Exception {
public SetupException(String message) {
super(message);
}
public SetupException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/incubator-kie-drools | 1,034 | kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELUnaryTests.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.dmn.feel.codegen.feel11;
import java.util.List;
import org.kie.dmn.feel.runtime.UnaryTest;
public interface CompiledFEELUnaryTests extends CompilationErrorNotifier {
List<UnaryTest> getUnaryTests();
}
|
apache/incubator-kie-drools | 1,040 | kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.pmml.api.identifiers;
public class PmmlIdFactory implements PmmlComponentRoot {
public LocalComponentIdPmml get(String fileName, String name) {
return new LocalComponentIdPmml(fileName, name);
}
}
|
apache/incubator-kie-drools | 1,042 | drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaters.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.compiler.kie.builder.impl;
import java.util.Collection;
import org.kie.api.internal.utils.KieService;
public interface KieBaseUpdaters extends KieService {
Collection<KieBaseUpdaterFactory> getChildren();
}
|
apache/incubator-kie-drools | 1,044 | drools-templates/src/main/java/org/drools/template/parser/TemplateContainer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.template.parser;
import java.util.Map;
public interface TemplateContainer {
Map<String, RuleTemplate> getTemplates();
Column[] getColumns();
Column getColumn(String name);
String getHeader();
}
|
apache/incubator-kie-drools | 1,044 | kie-internal/src/main/java/org/kie/internal/builder/fluent/CommandBasedExecutable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.internal.builder.fluent;
import org.kie.api.command.ExecutableCommand;
import org.kie.api.runtime.Executable;
public interface CommandBasedExecutable extends Executable {
void addCommand(ExecutableCommand cmd);
}
|
apache/incubator-kie-drools | 1,050 | drools-core/src/main/java/org/drools/core/base/UndefinedCalendarExcption.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.core.base;
public class UndefinedCalendarExcption extends RuntimeException {
public UndefinedCalendarExcption(String name) {
super("No calendar named '" + name + "' has been defined on this session");
}
}
|
apache/incubator-retired-wave | 1,033 | wave/src/main/java/org/waveprotocol/wave/client/wavepanel/view/IntrinsicConversationView.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.waveprotocol.wave.client.wavepanel.view;
/**
* Reveals the primitive state exposed in a conversation view.
*
* @see ConversationView for structural state.
*/
public interface IntrinsicConversationView {
}
|
apache/incubator-retired-wave | 1,045 | wave/src/main/java/org/waveprotocol/wave/client/events/DebugMessageEventHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.waveprotocol.wave.client.events;
import com.google.gwt.event.shared.EventHandler;
public abstract class DebugMessageEventHandler implements EventHandler {
public abstract void onDebugMessage(DebugMessageEvent event);
}
|
apache/incubator-retired-wave | 1,047 | wave/src/main/java/org/waveprotocol/wave/model/util/InvalidInputException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.waveprotocol.wave.model.util;
/**
* Checked exception thrown for invalid input.
*
*/
public final class InvalidInputException extends Exception {
public InvalidInputException(String message) {
super(message);
}
}
|
apache/iotdb-web-workbench | 1,055 | backend/src/main/java/org/apache/iotdb/admin/model/vo/QueryDataStrVO1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.admin.model.vo;
import lombok.Data;
import java.io.Serializable;
@Data
public class QueryDataStrVO1 extends QueryDataStrVO implements Serializable {
private Integer precompiledTime;
private Integer optimizedTime;
}
|
apache/iotdb | 1,046 | iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/function/CheckedTriConsumer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.commons.utils.function;
@FunctionalInterface
public interface CheckedTriConsumer<INPUT1, INPUT2, INPUT3, THROWABLE extends Throwable> {
void accept(INPUT1 var1, INPUT2 var2, INPUT3 var3) throws THROWABLE;
}
|
apache/jackrabbit-oak | 1,024 | oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.jackrabbit.oak.index.indexer.document.flatfile;
import java.util.List;
public interface NodeStateHolder {
List<String> getPathElements();
String getLine();
int getMemorySize();
}
|
apache/jclouds | 1,043 | apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/internal/BaseNovaApiExpectTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.openstack.nova.v2_0.internal;
import org.jclouds.openstack.nova.v2_0.NovaApi;
/**
* Base class for writing KeyStone Rest Api Expect tests
*/
public class BaseNovaApiExpectTest extends BaseNovaExpectTest<NovaApi> {
}
|
apache/jena | 1,046 | jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.dboe.trans.bplustree;
import org.apache.jena.dboe.DBOpEnvException;
public class BPTreeException extends DBOpEnvException
{
public BPTreeException() {}
public BPTreeException(String msg) { super(msg); }
}
|
apache/jena | 1,066 | jena-tdb1/src/test/java/org/apache/jena/tdb1/base/file/TestChannelMem.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.tdb1.base.file;
public class TestChannelMem extends AbstractTestChannel
{
static int counter = 0 ;
@Override
protected BufferChannel open()
{
return BufferChannelMem.create("Test-"+(counter++)) ;
}
}
|
apache/jena | 1,070 | jena-arq/src/main/java/org/apache/jena/riot/system/IteratorStreamRowRDF.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.riot.system;
import org.apache.jena.atlas.iterator.IteratorSlotted ;
/**
* Pull version of processing {@link StreamRDF} for {@link StreamRowRDF}
*/
public abstract class IteratorStreamRowRDF extends IteratorSlotted<StreamRowRDF> { }
|
apache/jena | 1,078 | jena-arq/src/test/java/org/apache/jena/riot/stream/TS_IO2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.riot.stream;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;
@Suite
@SelectClasses({
TestStreamManager.class
, TestLocationMapper.class
, TestLocators.class
})
public class TS_IO2
{
}
|
apache/jena | 1,080 | jena-iri3986/src/main/java/org/apache/jena/rfc3986/Violation.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.rfc3986;
public record Violation (String iriStr, URIScheme scheme, Issue issue, String message) {
@Override
public String toString() {
return String.format("<%s> [%s, %s] -- %s", iriStr, scheme.getPrefix(), issue, message);
}
}
|
apache/jena | 1,080 | jena-tdb1/src/test/java/org/apache/jena/tdb1/sys/LibTestOps.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.tdb1.sys;
import org.apache.jena.tdb1.base.block.FileMode;
public class LibTestOps {
/** Expose package-scoped to other test packages */
public static void setFileMode(FileMode mode) {
SystemTDB.internalSetFileMode(mode);
}
}
|
apache/johnzon | 1,068 | johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.johnzon.jsonb;
import jakarta.json.bind.JsonbBuilder;
import jakarta.json.bind.spi.JsonbProvider;
public class JohnzonProvider extends JsonbProvider {
@Override
public JsonbBuilder create() {
return new JohnzonBuilder();
}
}
|
apache/kafka | 1,071 | clients/src/main/java/org/apache/kafka/common/requests/RequestAndSize.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kafka.common.requests;
public class RequestAndSize {
public final AbstractRequest request;
public final int size;
public RequestAndSize(AbstractRequest request, int size) {
this.request = request;
this.size = size;
}
}
|
apache/kafka | 1,074 | clients/src/main/java/org/apache/kafka/common/protocol/types/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Provides types of data which can be serialized in the Kafka Wire Protocol.
* <strong>This package is not a supported Kafka API; the implementation may change without warning between minor or patch releases.</strong>
*/
package org.apache.kafka.common.protocol.types; |
apache/kafka | 1,074 | streams/src/main/java/org/apache/kafka/streams/processor/api/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Provides a low-level programming model (Processor API, aka, PAPI) to express a (stateful) data flow computation over input topics.
* Use {@link org.apache.kafka.streams.Topology} as the entry point for your program.
*/
package org.apache.kafka.streams.processor.api; |
apache/kylin | 1,068 | src/rec-service/src/main/java/org/apache/kylin/rec/model/EmptyJoinRule.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kylin.rec.model;
import org.apache.kylin.metadata.model.NDataModel;
public class EmptyJoinRule extends AbstractJoinRule {
@Override
public boolean isCompatible(NDataModel model, ModelTree modelTree) {
return false;
}
}
|
apache/logging-flume | 1,057 | flume-ng-node/src/main/java/org/apache/flume/node/net/AuthorizationProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the license for the specific language governing permissions and
* limitations under the license.
*/
package org.apache.flume.node.net;
import java.net.URLConnection;
/**
* Interface to be implemented to add an Authorization header to an HTTP request.
*/
public interface AuthorizationProvider {
void addAuthorization(URLConnection urlConnection);
}
|
apache/logging-flume | 1,059 | flume-ng-core/src/main/java/org/apache/flume/conf/BatchSizeSupported.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flume.conf;
/**
* This interface indicates that a component does batching and the batch size
* is publicly available.
*
*/
public interface BatchSizeSupported {
/**
* Returns the batch size
*/
long getBatchSize();
}
|
apache/logging-log4j1 | 1,074 | src/main/java/org/apache/log4j/DefaultCategoryFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.log4j;
import org.apache.log4j.spi.LoggerFactory;
class DefaultCategoryFactory implements LoggerFactory {
DefaultCategoryFactory() {
}
public
Logger makeNewLoggerInstance(String name) {
return new Logger(name);
}
}
|
apache/manifoldcf | 1,054 | connectors/filenet/build-stub/src/main/java/com/filenet/api/core/ContentTransfer.java | /* $Id$ */
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.filenet.api.core;
import java.io.InputStream;
/** Stub interface to allow the connector to build fully.
*/
public interface ContentTransfer extends RepositoryObject, ContentElement, DependentObject
{
public InputStream accessContentStream();
}
|
apache/maven-javadoc-plugin | 1,047 | src/it/projects/MJAVADOC-259/src/main/java/com/mycompany/myapp/App.java | package com.mycompany.myapp;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Hello world!
*
* <img src="doc-files/maven-feather.png" alt="Maven">
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
|
apache/maven-javadoc-plugin | 1,047 | src/it/projects/MJAVADOC-278/src/main/java/com/mycompany/myapp/App.java | package com.mycompany.myapp;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Hello world!
*
* <img src="doc-files/maven-feather.png" alt="Maven">
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
|
apache/maven-plugins | 1,019 | maven-javadoc-plugin/src/it/projects/output-encoding/docencoding/src/main/java/Test.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Sample class with non-ascii characters:
* {non-ascii chars delimiter}french: äëïöüàèìòù, greek: αβγδεζηθ, japanese: あいうえお{non-ascii chars delimiter}
*
* @author Hervé Boutemy
*/
public class Test
{
}
|
apache/maven-surefire | 1,045 | surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/GroupMatcher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.maven.surefire.group.match;
/**
* Group Matcher
*
*/
public interface GroupMatcher {
void loadGroupClasses(ClassLoader cloader);
boolean enabled(Class<?>... cats);
boolean enabled(String... cats);
}
|
apache/openjpa | 1,062 | openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/JDBCPath.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openjpa.jdbc.kernel.exps;
import org.apache.openjpa.kernel.exps.Path;
/**
* A path represents a traversal into fields of a candidate object.
*
* @author Abe White
*/
interface JDBCPath
extends Path, Val {
void getKey();
}
|
apache/openmeetings | 1,030 | openmeetings-service/src/main/java/org/apache/openmeetings/service/mail/template/DashOmTextLabel.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License") + you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openmeetings.service.mail.template;
public class DashOmTextLabel extends OmTextLabel {
private static final long serialVersionUID = 1L;
public DashOmTextLabel(String id) {
super(id, " - ");
}
}
|
apache/paimon-webui | 1,051 | paimon-web-server/src/main/java/org/apache/paimon/web/server/configrue/RetryConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.paimon.web.server.configrue;
import org.springframework.context.annotation.Configuration;
import org.springframework.retry.annotation.EnableRetry;
/** RetryConfig. */
@EnableRetry
@Configuration
public class RetryConfig {}
|
apache/paimon | 1,073 | paimon-common/src/main/java/org/apache/paimon/utils/OptionalUtils.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.paimon.utils;
import java.util.OptionalLong;
/** Utils for Optional. * */
public class OptionalUtils {
public static OptionalLong ofNullable(Long value) {
return value == null ? OptionalLong.empty() : OptionalLong.of(value);
}
}
|
apache/phoenix | 1,060 | phoenix-core-client/src/main/java/org/apache/phoenix/expression/Determinism.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.phoenix.expression;
public enum Determinism {
ALWAYS,
PER_STATEMENT,
PER_ROW,
PER_INVOCATION;
public Determinism combine(Determinism that) {
return Determinism.values()[Math.max(this.ordinal(), that.ordinal())];
}
}
|
apache/poi | 1,082 | poi/src/main/java/org/apache/poi/sl/draw/geom/ClosePathCommandIf.java | /*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
package org.apache.poi.sl.draw.geom;
public interface ClosePathCommandIf extends PathCommand {
}
|
apache/polygene-java | 1,053 | tutorials/cargo/src/main/java/org/apache/polygene/tutorials/cargo/step2/Cargo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
package org.apache.polygene.tutorials.cargo.step2;
import org.apache.polygene.api.common.UseDefaults;
import org.apache.polygene.api.property.Property;
public interface Cargo
{
@UseDefaults
Property<Double> size();
}
|
apache/qpid-broker-j | 1,049 | broker-core/src/main/java/org/apache/qpid/server/txn/JoinAndResumeDtxException.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.server.txn;
public class JoinAndResumeDtxException extends DtxException
{
public JoinAndResumeDtxException(Xid id)
{
super("Cannot start a branch with both join and resume set " + id);
}
}
|
apache/reef | 1,063 | lang/java/reef-tang/tang/src/test/java/org/apache/reef/tang/test/AnInterface.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.reef.tang.test;
import org.apache.reef.tang.annotations.DefaultImplementation;
/**
* An interface with a default implementation.
*/
@DefaultImplementation(AnInterfaceImplementation.class)
interface AnInterface {
void aMethod();
}
|
apache/rocketmq-connect | 1,024 | rocketmq-connect-runtime/src/main/java/org/apache/rocketmq/connect/runtime/serialization/ByteArraySerializer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.connect.runtime.serialization;
public class ByteArraySerializer implements Serializer<byte[]> {
@Override
public byte[] serialize(String topic, byte[] data) {
return data;
}
}
|
apache/rya | 1,035 | extras/rya.pcj.fluo/rya.pcj.functions.geo/src/main/java/org/apache/rya/indexing/pcj/functions/geo/UnionRdf4J.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.rya.indexing.pcj.functions.geo;
public class UnionRdf4J extends FunctionAdapter {
public UnionRdf4J() {
super(new org.eclipse.rdf4j.query.algebra.evaluation.function.geosparql.Union());
}
}
|
apache/seatunnel-web | 1,036 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/dal/dao/ISchedulerConfigDao.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.dal.dao;
import org.apache.seatunnel.app.dal.entity.SchedulerConfig;
public interface ISchedulerConfigDao {
boolean exists(int scriptId);
SchedulerConfig getSchedulerConfig(int scriptId);
}
|
apache/shardingsphere-on-cloud | 1,029 | wasm/wasm-sharding-java/src/main/java/org/apache/shardingsphere/sharding/spi/ShardingAlgorithm.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sharding.spi;
import org.apache.shardingsphere.infra.algorithm.ShardingSphereAlgorithm;
/**
* Sharding algorithm.
*/
public interface ShardingAlgorithm extends ShardingSphereAlgorithm {
}
|
apache/solr | 1,079 | solr/core/src/java/org/apache/solr/handler/tagger/package-info.java | /*
* This software was produced for the U. S. Government
* under Contract No. W15P7T-11-C-F600, and is
* subject to the Rights in Noncommercial Computer Software
* and Noncommercial Computer Software Documentation
* Clause 252.227-7014 (JUN 1995)
*
* Copyright 2013 The MITRE Corporation. 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.
*/
/**
* The {@link org.apache.solr.handler.tagger.TaggerRequestHandler} and supporting classes. This was
* formerly known as OpenSextant's SolrTextTagger.
*/
package org.apache.solr.handler.tagger;
|
apache/storm | 1,092 | storm-client/src/jvm/org/apache/storm/utils/IPredicate.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.utils;
/**
* This interface is implemented by classes, instances of which can be passed into certain Util functions which test some collection for
* elements matching the IPredicate. (IPredicate.test(...) == true)
*/
public interface IPredicate<T> {
boolean test(T obj);
}
|
apache/streampipes | 1,052 | streampipes-vocabulary/src/main/java/org/apache/streampipes/vocabulary/RDF.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.vocabulary;
public class RDF {
public static final String NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
public static final String NS_PREFIX = "rdf";
public static final String TYPE = NS + "type";
}
|
apache/systemds | 1,063 | src/test/java/org/apache/sysds/test/applications/nn/TestFolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.test.applications.nn;
public class TestFolder extends BaseTest {
private static final String BASE_FILEPATH = "src/test/scripts/applications/nn/";
@Override
protected String getBaseFilePath() {
return BASE_FILEPATH;
}
}
|
apache/tapestry-5 | 1,044 | tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/TreeNoRootsDemo.java | // Copyright 2011 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.integration.app1.pages;
import org.apache.tapestry5.annotations.InjectComponent;
import org.apache.tapestry5.corelib.components.Tree;
import org.apache.tapestry5.integration.app1.Stuff;
import org.apache.tapestry5.tree.TreeModel;
public class TreeNoRootsDemo
{
@InjectComponent
private Tree tree;
public TreeModel<Stuff> getStuffModel()
{
return Stuff.createEmptyTreeModel();
}
}
|
apache/tinkerpop | 1,048 | gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/function/ThrowingBiFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.tinkerpop.gremlin.util.function;
/**
* @author Stephen Mallette (http://stephen.genoprime.com)
*/
@FunctionalInterface
public interface ThrowingBiFunction<T, U, R> {
R apply(final T t, final U u) throws Exception;
}
|
apache/tomcat-jakartaee-migration | 1,024 | src/test/java/org/apache/tomcat/jakartaee/TextConverterTest.java | package org.apache.tomcat.jakartaee;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import org.junit.Test;
public class TextConverterTest {
private static final String TEST_FILENAME = "text.txt";
private static final String INPUT = "javax.servlet.http.HttpServletRequest";
private static final String OUTPUT = "jakarta.servlet.http.HttpServletRequest";
@Test
public void testConvert() throws IOException {
// prepare
TextConverter converter = new TextConverter();
ByteArrayInputStream in = new ByteArrayInputStream(INPUT.getBytes(StandardCharsets.ISO_8859_1));
ByteArrayOutputStream out = new ByteArrayOutputStream();
EESpecProfile profile = EESpecProfiles.EE;
// test
converter.convert(TEST_FILENAME, in, out, profile);
// assert
String result = new String(out.toByteArray(), StandardCharsets.ISO_8859_1);
assertEquals(OUTPUT, result);
}
}
|
apache/tsfile | 1,049 | java/tsfile/src/main/java/org/apache/tsfile/file/metadata/statistics/TimestampStatistics.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.tsfile.file.metadata.statistics;
import org.apache.tsfile.enums.TSDataType;
public class TimestampStatistics extends LongStatistics {
@Override
public TSDataType getType() {
return TSDataType.TIMESTAMP;
}
}
|
apache/uima-uimaj | 1,061 | uimaj-core/src/main/java/org/apache/uima/cas/impl/CommonArrayFSImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cas.impl;
import org.apache.uima.cas.CommonArrayFS;
/**
* For v2 backwards compatibility
*
* @deprecated
* @forRemoval 4.0.0
*/
@Deprecated(since = "3.0.0")
public interface CommonArrayFSImpl extends CommonArrayFS {
}
|
apache/uniffle | 1,049 | internal-client/src/main/java/org/apache/uniffle/client/response/RssFinishShuffleResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.uniffle.client.response;
import org.apache.uniffle.common.rpc.StatusCode;
public class RssFinishShuffleResponse extends ClientResponse {
public RssFinishShuffleResponse(StatusCode statusCode) {
super(statusCode);
}
}
|
apache/velocity-engine | 1,045 | velocity-engine-core/src/test/java/org/apache/velocity/test/misc/GetPutObject.java | package org.apache.velocity.test.misc;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
public class GetPutObject
{
private Object value;
public Object get()
{
return value;
}
public void put(final Object value)
{
this.value = value;
}
}
|
apache/wicket | 1,047 | wicket-core-tests/src/test/java/org/apache/wicket/markup/html/border/ExtedableBorder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.markup.html.border;
public class ExtedableBorder extends Border
{
/**
*
*/
private static final long serialVersionUID = 1431333408002477444L;
ExtedableBorder(final String id)
{
super(id);
}
}
|
apache/wicket | 1,066 | wicket-core-tests/src/test/java/org/apache/wicket/MyPage2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket;
import org.apache.wicket.markup.html.WebPage;
/**
* Dummy Page with PageParameters
*/
public class MyPage2 extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*
*/
public MyPage2()
{
}
}
|
apache/zeppelin | 1,051 | zeppelin-jupyter/src/main/java/org/apache/zeppelin/jupyter/nbformat/HeadingCell.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.zeppelin.jupyter.nbformat;
import com.google.gson.annotations.SerializedName;
/**
*
*/
public class HeadingCell extends Cell {
@SerializedName("level")
private int level;
public int getLevel() {
return level;
}
}
|
google/agera | 1,074 | agera/src/main/java/com/google/android/agera/Receivers.java | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.agera;
import static com.google.android.agera.Common.NULL_OPERATOR;
import android.support.annotation.NonNull;
/**
* Utility methods for obtaining {@link Receiver} instances.
*/
public final class Receivers {
/**
* Returns a {@link Receiver} that does nothing.
*/
@SuppressWarnings("unchecked")
@NonNull
public static <T> Receiver<T> nullReceiver() {
return NULL_OPERATOR;
}
private Receivers() {}
}
|
google/bindiff | 1,046 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/helpers/IIterableGraph.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.zylib.gui.zygraph.helpers;
import com.google.security.zynamics.zylib.types.common.IIterableCollection;
/**
* Graphs that implement this interface unlock {@link GraphHelpers} functions that require the
* ability to iterate over all nodes in a graph.
*
* @param <NodeType> The type of the nodes in the graph.
*/
public interface IIterableGraph<NodeType> extends IIterableCollection<INodeCallback<NodeType>> {}
|
google/binnavi | 1,056 | src/main/java/com/google/security/zynamics/binnavi/API/debug/DebuggerSearchReply.java | // Copyright 2011-2016 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.security.zynamics.binnavi.API.debug;
import com.google.security.zynamics.binnavi.API.disassembly.Address;
import com.google.security.zynamics.binnavi.debug.connection.packets.replies.SearchReply;
public class DebuggerSearchReply extends DebuggerReply {
public DebuggerSearchReply(final SearchReply reply) {
super(reply);
}
public Address getAddress() {
return new Address(((SearchReply) reply).getAddress().toBigInteger());
}
}
|
google/caliper | 1,051 | caliper-runner/src/main/java/com/google/caliper/runner/worker/trial/TrialResultFactory.java | /*
* Copyright (C) 2013 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.caliper.runner.worker.trial;
import com.google.caliper.model.Trial;
import com.google.caliper.runner.instrument.MeasurementCollectingVisitor;
/**
* A factory for producing {@link TrialResult TrialResults} based on data collected from visitors.
*/
interface TrialResultFactory {
/** Returns a new {@link Trial}. */
TrialResult newTrialResult(
VmDataCollectingVisitor vmData, MeasurementCollectingVisitor measurementData);
}
|
google/closure-compiler | 1,060 | src/com/google/javascript/jscomp/parsing/parser/trees/CatchTree.java | /*
* Copyright 2011 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.javascript.jscomp.parsing.parser.trees;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class CatchTree extends ParseTree {
public final ParseTree exception;
public final ParseTree catchBody;
public CatchTree(SourceRange location, ParseTree exception, ParseTree catchBody) {
super(ParseTreeType.CATCH, location);
this.exception = exception;
this.catchBody = catchBody;
}
}
|
google/copybara | 1,069 | java/com/google/copybara/git/gitlab/api/entities/Commit.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 com.google.api.client.util.Key;
/**
* Represents a GitLab Commit.
*
* @see <a
* href="https://docs.gitlab.com/api/commits/#response">https://docs.gitlab.com/api/commits/#response</a>
*/
public class Commit implements GitLabApiEntity {
@Key private int id;
/**
* Returns the ID of the commit, e.g. the sha.
*
* @return the ID of the commit
*/
public int getId() {
return id;
}
}
|
google/j2cl | 1,041 | transpiler/javatests/com/google/j2cl/integration/java/allsimplebridges/Tester610.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package allsimplebridges;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
public class Tester610 {
static interface I1 {
default String get(String value) {
return "I1.get";
}
}
@SuppressWarnings("unchecked")
static class C1 implements I1 {
C1() {}
}
@SuppressWarnings("unchecked")
public static void test() {
C1 s = new C1();
assertTrue(((I1) s).get("").equals("I1.get"));
}
}
|
google/j2cl | 1,057 | benchmarking/java/com/google/j2cl/benchmarks/octane/deltablue/EditConstraint.java | /*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.j2cl.benchmarks.octane.deltablue;
/** A unary input constraint used to mark a variable that the client wishes to change. */
class EditConstraint extends UnaryConstraint {
EditConstraint(Variable v, Strength str) {
super(v, str);
}
/** Edits indicate that a variable is to be changed by imperative code. */
@Override
boolean isInput() {
return true;
}
@Override
void execute() {
// Edit constraints do nothing
}
}
|
google/nomulus | 1,049 | prober/src/main/java/google/registry/monitoring/blackbox/exception/ConnectionException.java | // Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package google.registry.monitoring.blackbox.exception;
/**
* Subclass of {@link UndeterminedStateException} that represents all instances when the action
* performed failed due to an issue in the connection with the server.
*/
public class ConnectionException extends UndeterminedStateException {
public ConnectionException(String msg) {
super(msg);
}
public ConnectionException(Throwable e) {
super(e);
}
}
|
google/oboe | 1,053 | apps/OboeTester/app/src/main/java/com/mobileer/oboetester/OboeAudioOutputStream.java | /*
* Copyright 2015 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.mobileer.oboetester;
/**
* Native synthesizer and audio output.
*/
public class OboeAudioOutputStream extends OboeAudioStream {
@Override
public boolean isInput() {
return false;
}
public native void trigger();
public native void setChannelEnabled(int channelIndex, boolean enabled);
public native void setSignalType(int type);
public native void setAmplitude(float amplitude);
}
|
google/rejoiner | 1,040 | schema/firestore/src/main/java/com/google/api/graphql/schema/firestore/FirestoreClientModule.java | // Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.graphql.schema.firestore;
import com.google.cloud.firestore.v1beta1.FirestoreClient;
import com.google.inject.AbstractModule;
import java.io.IOException;
public final class FirestoreClientModule extends AbstractModule {
@Override
protected void configure() {
try {
bind(FirestoreClient.class).toInstance(FirestoreClient.create());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
|
google/samba-documents-provider | 1,030 | app/src/main/java/com/google/android/sambadocumentsprovider/encryption/EncryptionKey.java | /*
* Copyright 2017 Google Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.google.android.sambadocumentsprovider.encryption;
import javax.crypto.SecretKey;
class EncryptionKey {
private final SecretKey mKey;
private final byte[] mIv;
EncryptionKey(SecretKey key, byte[] iv) {
mKey = key;
mIv = iv;
}
SecretKey getKey() {
return mKey;
}
byte[] getIv() {
return mIv;
}
}
|
googleapis/google-http-java-client | 1,043 | google-http-client/src/main/java/com/google/api/client/json/Json.java | /*
* Copyright (c) 2010 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.api.client.json;
/**
* JSON utilities.
*
* @since 1.0
* @author Yaniv Inbar
*/
public class Json {
/**
* {@code "application/json; charset=utf-8"} media type used as a default for JSON parsing.
*
* <p>Use {@link com.google.api.client.http.HttpMediaType#equalsIgnoreParameters} for comparing
* media types.
*
* @since 1.10
*/
public static final String MEDIA_TYPE = "application/json; charset=UTF-8";
}
|
googlearchive/caja | 1,082 | src/com/google/caja/parser/js/SpecialOperation.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;
/**
* The oddball Operations that don't fit into the other categories.
*
* @author erights@gmail.com
*/
public class SpecialOperation extends Operation {
private static final long serialVersionUID = -613442694743562988L;
@ReflectiveCtor
public SpecialOperation(
FilePosition pos, Operator op, List<? extends Expression> operands) {
super(pos, op, operands);
}
}
|
googlemaps-samples/android-samples | 1,036 | ApiDemos/project/java-app/src/v3/java/com/example/mapdemo/MultiMapDemoActivity.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.example.mapdemo;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
/**
* This shows how to create a simple activity with multiple maps on screen.
*/
public class MultiMapDemoActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(com.example.common_ui.R.layout.multimap_demo);
}
}
|
hibernate2011/RosClient | 1,075 | app/src/main/java/com/jilk/ros/rosapi/message/GetTime.java | /**
* Copyright (c) 2014 Jilk Systems, Inc.
*
* This file is part of the Java ROSBridge Client.
*
* The Java ROSBridge Client is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The Java ROSBridge Client 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with the Java ROSBridge Client. If not, see http://www.gnu.org/licenses/.
*
*/
package com.jilk.ros.rosapi.message;
import com.jilk.ros.message.Message;
import com.jilk.ros.message.MessageType;
import com.jilk.ros.message.TimePrimitive;
@MessageType(string = "rosapi/GetTimeResponse")
public class GetTime extends Message {
public TimePrimitive time;
}
|
openjdk/jdk8 | 1,064 | jaxp/src/com/sun/org/apache/xerces/internal/dom/RangeExceptionImpl.java | /*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sun.org.apache.xerces.internal.dom;
import org.w3c.dom.ranges.RangeException;
/**
* @xerces.internal
*
*/
public class RangeExceptionImpl extends RangeException {
/** Serialization version. */
static final long serialVersionUID = -9058052627467240856L;
public RangeExceptionImpl(short code, String message) {
super(code,message);
}
}
|
openjdk/jdk8 | 1,086 | langtools/test/tools/javac/processing/6499119/package-info.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.
*/
@A package foo;
@interface A {}
|
openjdk/jdk8 | 1,089 | langtools/test/com/sun/javadoc/testTypeParams/pkg/Parent.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg;
public class Parent {}
|
openjdk/jdk8 | 1,095 | langtools/test/tools/javac/CyclicInheritance6/p1/C.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p1;
import p1.A;
public class C {}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.