repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/hbase-connectors | 1,056 | kafka/hbase-kafka-proxy/src/main/java/org/apache/hadoop/hbase/kafka/DropRule.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.kafka;
import org.apache.yetus.audience.InterfaceAudience;
/**
* Rule that indicates the Cell should not be replicated
*/
@InterfaceAudience.Private
public class DropRule extends Rule {
public DropRule() {
}
}
|
apache/hive | 1,078 | hplsql/src/main/java/org/apache/hive/hplsql/NoSuchHplMethodException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hive.hplsql;
import org.antlr.v4.runtime.ParserRuleContext;
public class NoSuchHplMethodException extends HplValidationException {
public NoSuchHplMethodException(ParserRuleContext ctx, String message) {
super(ctx, message);
}
}
|
apache/hop | 1,077 | core/src/main/java/org/apache/hop/metadata/api/IHasHopMetadataProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.metadata.api;
import org.apache.hop.metadata.serializer.multi.MultiMetadataProvider;
public interface IHasHopMetadataProvider {
MultiMetadataProvider getMetadataProvider();
void setMetadataProvider(MultiMetadataProvider metadataProvider);
}
|
apache/hop | 1,086 | rest/src/main/java/org/apache/hop/rest/v1/HopApplication.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.rest.v1;
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;
import org.apache.hop.rest.Hop;
@ApplicationPath("/api/v1/")
public class HopApplication extends Application {
public HopApplication() {
Hop.getInstance();
}
}
|
apache/ignite-3 | 1,042 | modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/sql/IgniteSqlZoneOptionMode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.sql.engine.sql;
import org.apache.calcite.sql.Symbolizable;
/**
* Special symbols for zone option processing.
*/
public enum IgniteSqlZoneOptionMode implements Symbolizable {
ALL,
SCALE_OFF
}
|
apache/ignite-3 | 1,047 | modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/handlers/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This package contains RAFT command handlers that is used by
* {@link org.apache.ignite.internal.table.distributed.raft.PartitionListener} aka table raft processor.
*/
package org.apache.ignite.internal.table.distributed.raft.handlers;
|
apache/ignite-3 | 1,054 | modules/cli/src/main/java/org/apache/ignite/internal/cli/config/ConfigManagerProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.cli.config;
/**
* Provider for {@link ConfigManager}.
*/
public interface ConfigManagerProvider {
/**
* Gets the CLI config manager.
*
* @return config manager
*/
ConfigManager get();
}
|
apache/ignite | 1,064 | modules/core/src/main/java/org/apache/ignite/internal/util/typedef/internal/D.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.util.typedef.internal;
import org.apache.ignite.internal.util.GridDebug;
/**
* Convenience alias for {@link GridDebug} class.
*/
@SuppressWarnings("ExtendsUtilityClass")
public class D extends GridDebug {
// No-op.
}
|
apache/incubator-datalab | 1,030 | services/datalab-model/src/main/java/com/epam/datalab/dto/gcp/auth/GcpOauth2AuthorizationCodeResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.epam.datalab.dto.gcp.auth;
import lombok.Data;
@Data
public class GcpOauth2AuthorizationCodeResponse {
private final String code;
private final String state;
private final String errorMessage;
}
|
apache/incubator-hugegraph-computer | 1,027 | computer/computer-test/src/main/java/org/apache/hugegraph/computer/core/config/ConfigTestSuite.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.apache.hugegraph.computer.core.config;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
DefaultConfigTest.class
})
public class ConfigTestSuite {
}
|
apache/incubator-kie-drools | 1,034 | kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateContextEntryEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.api.core.event;
public interface BeforeEvaluateContextEntryEvent extends DMNEvent {
String getNodeName();
String getVariableName();
String getVariableId();
String getExpressionId();
}
|
apache/incubator-kie-drools | 1,060 | drools-traits/src/test/java/org/drools/traits/compiler/Option.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.traits.compiler;
public class Option<T> {
private final T t;
public Option(T t) {
this.t = t;
}
public boolean isDefined() {
return t != null;
}
public T get() {
return t;
}
}
|
apache/incubator-kie-kogito-runtimes | 1,040 | api/kogito-api/src/main/java/org/kie/kogito/usertask/events/UserTaskStateEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.kogito.usertask.events;
import org.kie.kogito.usertask.lifecycle.UserTaskState;
public interface UserTaskStateEvent extends UserTaskEvent {
UserTaskState getNewStatus();
UserTaskState getOldStatus();
}
|
apache/incubator-kie-kogito-runtimes | 1,044 | jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/core/node/EventNodeInterface.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jbpm.workflow.core.node;
import java.util.function.Function;
public interface EventNodeInterface {
boolean acceptsEvent(String type, Object event, Function<String, Object> resolver);
String getVariableName();
}
|
apache/incubator-retired-wave | 1,044 | wave/src/main/java/org/waveprotocol/wave/client/widget/popup/PopupChromeProvider.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.widget.popup;
/**
* Factory for creating PopupChrome objects.
*
*/
public interface PopupChromeProvider {
/**
* Create a new PopupChrome object.
*/
PopupChrome createPopupChrome();
}
|
apache/incubator-seata | 1,033 | integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/TargetClassParser.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.integration.tx.api.interceptor.parser;
public interface TargetClassParser {
Class<?> findTargetClass(Object target) throws Exception;
Class<?>[] findInterfaces(Object target) throws Exception;
}
|
apache/incubator-seata | 1,039 | saga/seata-saga-processctrl/src/main/java/org/apache/seata/saga/proctrl/eventing/EventPublisher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.saga.proctrl.eventing;
import org.apache.seata.common.exception.FrameworkException;
/**
* Event publisher
*
*/
public interface EventPublisher<E> {
boolean publish(E event) throws FrameworkException;
}
|
apache/inlong | 1,037 | inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/snapshot/SnapshotBase.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.agent.plugin.sources.snapshot;
public interface SnapshotBase {
/**
* get snapshot of the job
* @return
*/
String getSnapshot();
/**
* close resources
*/
void close();
}
|
apache/inlong | 1,040 | inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/standalone/SortFieldInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.pojo.sort.standalone;
import lombok.Data;
@Data
public class SortFieldInfo {
private String inlongGroupId;
private String inlongStreamId;
private Integer sinkId;
private String fieldName;
}
|
apache/inlong | 1,040 | inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/converter/BooleanConverter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.sdk.transform.process.converter;
public class BooleanConverter implements TypeConverter {
@Override
public Object convert(String value) throws Exception {
return Boolean.parseBoolean(value);
}
}
|
apache/inlong | 1,043 | inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/fieldformat/BinaryFormat.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.pojo.fieldformat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BinaryFormat {
private Integer length;
}
|
apache/inlong | 1,047 | inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/cos/COSConfigHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.agent.plugin.utils.cos;
import com.qcloud.cos.ClientConfig;
// For some private, customized extension processing
public abstract class COSConfigHandler {
abstract public ClientConfig getClientConfig(String region);
}
|
apache/jackrabbit-oak | 1,033 | oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/client/BlobTypeUnknownException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.jackrabbit.oak.segment.standby.client;
public class BlobTypeUnknownException extends RuntimeException {
BlobTypeUnknownException() {
// Prevent instantiation outside of this package.
}
}
|
apache/jackrabbit-oak | 1,061 | oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NamespaceConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.plugins.name;
/**
* @deprecated Use {@link org.apache.jackrabbit.oak.spi.namespace.NamespaceConstants} instead.
*/
public interface NamespaceConstants extends org.apache.jackrabbit.oak.spi.namespace.NamespaceConstants {
} |
apache/jackrabbit | 1,061 | jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfigVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.core.config;
/**
* A BeanConfig visitor which is invoked upon creation of BeanConfig before any
* instance is created from that bean configuration
*/
public interface BeanConfigVisitor {
void visit(BeanConfig config);
}
|
apache/jena | 1,096 | jena-base/src/main/java/org/apache/jena/base/Sys.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.base;
import org.apache.commons.lang3.SystemUtils;
public class Sys {
/** Is this windows? */
public static final boolean isWindows = SystemUtils.IS_OS_WINDOWS;
/** Is this MacOS? */
public static final boolean isMacOS = SystemUtils.IS_OS_MAC;
}
|
apache/jmeter | 1,059 | src/components/src/main/java/org/apache/jmeter/extractor/JSR223PostProcessorBeanInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.extractor;
import org.apache.jmeter.util.JSR223BeanInfoSupport;
public class JSR223PostProcessorBeanInfo extends JSR223BeanInfoSupport {
public JSR223PostProcessorBeanInfo() {
super(JSR223PostProcessor.class);
}
}
|
apache/jmeter | 1,061 | src/core/src/main/java/org/apache/jmeter/testelement/property/PropertyIterator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.testelement.property;
import java.util.Iterator;
public interface PropertyIterator extends Iterator<JMeterProperty> {
@Override
boolean hasNext();
@Override
JMeterProperty next();
@Override
void remove();
}
|
apache/kafka | 1,066 | clients/src/main/java/org/apache/kafka/common/errors/InvalidRequiredAcksException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.errors;
public class InvalidRequiredAcksException extends InvalidConfigurationException {
private static final long serialVersionUID = 1L;
public InvalidRequiredAcksException(String message) {
super(message);
}
}
|
apache/kafka | 1,068 | clients/src/main/java/org/apache/kafka/common/errors/InvalidRegularExpression.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.errors;
/**
* Thrown when a regular expression received in a request is not valid.
*/
public class InvalidRegularExpression extends ApiException {
public InvalidRegularExpression(String message) {
super(message);
}
}
|
apache/karaf | 1,037 | services/interceptor/impl/src/main/java/org/apache/karaf/service/interceptor/impl/runtime/ComponentProperties.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.karaf.service.interceptor.impl.runtime;
public interface ComponentProperties {
String INTERCEPTORS_PROPERTY = "apache.karaf.enable.interceptors";
String INTERCEPTOR_PROPERTY = "apache.karaf.interceptor";
}
|
apache/kylin | 1,055 | src/common-service/src/main/java/org/apache/kylin/rest/request/QueryDiagPackageRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kylin.rest.request;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class QueryDiagPackageRequest {
@JsonProperty("query_id")
private String queryId;
private String project;
}
|
apache/lens | 1,059 | lens-server-api/src/main/java/org/apache/lens/server/api/query/rewrite/Phase1Rewriter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
*
*/
package org.apache.lens.server.api.query.rewrite;
/**
* Phase 1 rewriting is run on the query provided by user to convert it to a valid
* and (probably) optimized cube query.
*/
public interface Phase1Rewriter extends QueryRewriter {
}
|
apache/linkis | 1,036 | linkis-public-enhancements/linkis-pes-common/src/main/java/org/apache/linkis/cs/listener/event/ContextIDEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.linkis.cs.listener.event;
import org.apache.linkis.common.listener.Event;
import org.apache.linkis.cs.common.entity.source.ContextID;
public interface ContextIDEvent extends Event {
ContextID getContextID();
}
|
apache/logging-log4j2 | 1,056 | log4j-core/src/main/java/org/apache/logging/log4j/core/config/arbiters/Arbiter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.logging.log4j.core.config.arbiters;
/**
* Interface used to check for portions of the configuration that may be optionally included.
*/
public interface Arbiter {
String ELEMENT_TYPE = "Arbiter";
boolean isCondition();
}
|
apache/manifoldcf | 1,048 | connectors/filenet/build-stub/src/main/java/com/filenet/api/collection/PropertyDescriptionList.java | /* $Id: AccessPermissionList.java 1342799 2012-05-25 20:25:51Z kwright $ */
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.collection;
/** Stub interface to allow the connector to build fully.
*/
public interface PropertyDescriptionList extends DependentObjectList, EngineCollection
{
}
|
apache/maven-compiler-plugin | 1,061 | src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.maven.test;
import java.util.ArrayList;
import java.util.List;
public class MyClass {
public void foo() {
List blah = new ArrayList();
blah.add("hello");
}
public void bar() {
int a = "error";
}
}
|
apache/maven-plugins | 1,040 | maven-ejb-plugin/src/it/mejb-34-not-filtered/src/main/java/org/apache/maven/mejb34/Person.java | package org.apache.maven.mejb34;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT 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 Person
{
private String name;
public void setName( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
}
|
apache/maven-plugins | 1,060 | maven-jar-plugin/src/it/MJAR-228/src/main/java/myproject/HelloWorld.java | package myproject;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT 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 classic Hello World App.
*/
public class HelloWorld {
/**
* Main method.
*
* @param args Not used
*/
public static void main( String[] args )
{
System.out.println( "Hi!" );
}
} |
apache/maven-surefire | 1,046 | surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/EventHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.extensions;
import javax.annotation.Nonnull;
/**
* Handler of events.
*
* @param <T> generic type of the event object
*/
public interface EventHandler<T> {
void handleEvent(@Nonnull T event);
}
|
apache/mina-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/mina-sshd | 1,059 | sshd-common/src/main/java/org/apache/sshd/common/keyprovider/KeySizeIndicator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sshd.common.keyprovider;
/**
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
*/
public interface KeySizeIndicator {
/**
* @return The number of bits used in the key
*/
int getKeySize();
}
|
apache/nifi | 1,063 | nifi-framework-api/src/main/java/org/apache/nifi/controller/queue/QueueDiagnostics.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.nifi.controller.queue;
import java.util.List;
public interface QueueDiagnostics {
LocalQueuePartitionDiagnostics getLocalQueuePartitionDiagnostics();
List<RemoteQueuePartitionDiagnostics> getRemoteQueuePartitionDiagnostics();
}
|
apache/openjpa | 1,040 | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/models/company/IPartTimeEmployee.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.persistence.models.company;
public interface IPartTimeEmployee extends IEmployee {
void setWage(float wage);
float getWage();
void setWeeklyHours(int weeklyHours);
int getWeeklyHours();
}
|
apache/opennlp | 1,062 | opennlp-api/src/main/java/opennlp/tools/namefind/TokenNameFinderEvaluationMonitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package opennlp.tools.namefind;
import opennlp.tools.util.eval.EvaluationMonitor;
/**
* A marker interface for evaluating {@link TokenNameFinder name finders}.
*/
public interface TokenNameFinderEvaluationMonitor extends EvaluationMonitor<NameSample> {
}
|
apache/paimon | 1,073 | paimon-common/src/main/java/org/apache/paimon/utils/SerializableFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.io.Serializable;
import java.util.function.Function;
/** A {@link Function} that is also {@link Serializable}. */
@FunctionalInterface
public interface SerializableFunction<T, R> extends Function<T, R>, Serializable {}
|
apache/pinot | 1,054 | pinot-integration-tests/src/main/java/org/apache/pinot/core/api/AutoLoadedServiceForTest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pinot.core.api;
import javax.inject.Singleton;
import org.jvnet.hk2.annotations.Service;
@Service
@Singleton
public class AutoLoadedServiceForTest {
public String echo(String echoText) {
return echoText;
}
}
|
apache/polaris | 1,051 | runtime/service/src/main/java/org/apache/polaris/service/config/BehaviorChangesConfiguration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.config;
/**
* FIXME: this seems unused.
*
* @see RawBehaviorChangesConfiguration
* @see ResolvedBehaviorChangesConfiguration
*/
public interface BehaviorChangesConfiguration extends RealmOverridable {}
|
apache/pulsar | 1,069 | pulsar-io/flume/src/main/java/org/apache/pulsar/io/flume/sink/StringSink.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.io.flume.sink;
import org.apache.pulsar.functions.api.Record;
public class StringSink extends AbstractSink<String> {
@Override
public String extractValue(Record<String> message) {
return message.getValue();
}
}
|
apache/qpid-broker-j | 1,051 | broker-core/src/main/java/org/apache/qpid/server/store/ConfiguredObjectNameDependency.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.store;
import org.apache.qpid.server.model.ConfiguredObject;
public interface ConfiguredObjectNameDependency<C extends ConfiguredObject<C>> extends ConfiguredObjectDependency<C>
{
String getName();
}
|
apache/reef | 1,050 | lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/driver/evaluator/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.
*/
/**
* Driver-Side representations of Evaluators.
*/
@DriverSide
@Private
package org.apache.reef.runtime.common.driver.evaluator;
import org.apache.reef.annotations.audience.DriverSide;
import org.apache.reef.annotations.audience.Private;
|
apache/reef | 1,068 | lang/java/reef-utils/src/main/java/org/apache/reef/util/cache/SystemTime.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.util.cache;
/**
* Return the system time.
*/
public final class SystemTime implements CurrentTime {
/**
* @return System time in milliseconds
*/
@Override
public long now() {
return System.currentTimeMillis();
}
}
|
apache/rocketmq-externals | 1,050 | rocketmq-sentinel/src/main/java/com/alibaba/csp/sentinel/demo/rocketmq/Constants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.alibaba.csp.sentinel.demo.rocketmq;
public final class Constants {
public static final String TEST_GROUP_NAME = "sentinel-group";
public static final String TEST_TOPIC_NAME = "SentinelTopicTest";
private Constants() {}
}
|
apache/royale-compiler | 1,056 | debugger/src/main/java/flash/tools/debugger/expression/IExpressionEvaluator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package flash.tools.debugger.expression;
import org.apache.royale.compiler.tree.as.IASNode;
/**
* @author ggv
*
*/
public interface IExpressionEvaluator {
public abstract DebuggerValue evaluate(Context context, IASNode node) throws Exception;
}
|
apache/samza | 1,070 | samza-core/src/main/java/org/apache/samza/coordinator/LeaderElectorListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.coordinator;
/**
* This call back should be passed to {@link LeaderElector#tryBecomeLeader} and
* will be invoked if the caller becomes the leader.
*/
public interface LeaderElectorListener {
void onBecomingLeader();
}
|
apache/samza | 1,072 | samza-api/src/main/java/org/apache/samza/serializers/JsonSerdeV2Factory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.serializers;
import org.apache.samza.config.Config;
public class JsonSerdeV2Factory implements SerdeFactory<Object> {
@Override
public JsonSerdeV2<Object> getSerde(String name, Config config) {
return new JsonSerdeV2<>();
}
}
|
apache/seatunnel-web | 1,024 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/response/connector/ConnectorFeature.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.app.domain.response.connector;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class ConnectorFeature {
private boolean supportColumnProjection;
}
|
apache/servicecomb-java-chassis | 1,048 | governance/src/main/java/org/apache/servicecomb/governance/service/MatchersService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.governance.service;
import org.apache.servicecomb.governance.marker.GovernanceRequestExtractor;
public interface MatchersService {
boolean checkMatch(GovernanceRequestExtractor governanceRequest, String key);
}
|
apache/shiro | 1,100 | core/src/main/java/org/apache/shiro/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* This package primarily exists as a root classpath distinction, but it does contain two core classes widely used
* by applications, {@link org.apache.shiro.SecurityUtils SecurityUtils} and
* {@link org.apache.shiro.lang.ShiroException ShiroException}.
*/
package org.apache.shiro;
|
apache/sirona | 1,072 | api/src/main/java/org/apache/sirona/counters/jmx/CounterJMXMBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sirona.counters.jmx;
public interface CounterJMXMBean {
double getMax();
double getMin();
long getHits();
double getSum();
double getStandardDeviation();
double getMean();
String getRole();
String getName();
}
|
apache/sis | 1,071 | endorsed/src/org.apache.sis.metadata/main/org/apache/sis/temporal/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Implementation of {@code org.opengis.temporal} interfaces.
* Contains also utility methods related to {@code java.time}.
* This package is for internal use by Apache SIS only.
*
* @author Martin Desruisseaux (Geomatys)
*/
package org.apache.sis.temporal;
|
apache/skywalking-java | 1,029 | apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContextListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.apm.agent.core.context;
import org.apache.skywalking.apm.agent.core.context.trace.TraceSegment;
public interface TracingContextListener {
void afterFinished(TraceSegment traceSegment);
}
|
apache/skywalking | 1,037 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cluster/ClusterWatcherRegister.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.server.core.cluster;
import org.apache.skywalking.oap.server.library.module.Service;
public interface ClusterWatcherRegister extends Service {
void registerWatcher(ClusterWatcher watcher);
}
|
apache/streampark | 1,028 | streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/mapper/RoleMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.streampark.console.system.mapper;
import org.apache.streampark.console.system.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public interface RoleMapper extends BaseMapper<Role> {
}
|
apache/streampipes | 1,054 | streampipes-client-api/src/main/java/org/apache/streampipes/client/api/CRUDApi.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.client.api;
import java.util.List;
import java.util.Optional;
public interface CRUDApi<K, V> {
Optional<V> get(K id);
List<V> all();
void create(V element);
void delete(K id);
void update(V element);
}
|
apache/syncope | 1,030 | core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/policy/PushCorrelationRuleEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.core.persistence.api.entity.policy;
public interface PushCorrelationRuleEntity extends CorrelationRuleEntity {
PushPolicy getPushPolicy();
void setPushPolicy(PushPolicy pushPolicy);
}
|
apache/syncope | 1,037 | ext/flowable/client-console/src/main/java/org/apache/syncope/client/console/pages/FlowableModelerPopupPage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.client.console.pages;
import org.apache.wicket.markup.html.WebPage;
public class FlowableModelerPopupPage extends WebPage {
private static final long serialVersionUID = -7031206743629422898L;
}
|
apache/tajo | 1,073 | tajo-core/src/main/java/org/apache/tajo/engine/codegen/TajoClassLoader.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tajo.engine.codegen;
public class TajoClassLoader extends ClassLoader {
public Class defineClass(String name, byte[] b) {
return defineClass(name, b, 0, b.length);
}
public void clean() throws Throwable {
super.finalize();
}
}
|
apache/tajo | 1,083 | tajo-common/src/main/java/org/apache/tajo/unit/TimeUnit.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tajo.unit;
public class TimeUnit {
public static final int SEC = 1000;
public static final int MIN = SEC * 60;
public static final int HOUR = MIN * 60;
public static final int DAY = HOUR * 24;
public static final int PART_UNIT = 5*TimeUnit.MIN;
}
|
apache/tapestry-5 | 1,059 | tapestry-jmx/src/test/java/org/example/testapp/pages/RemotePoolManagement.java | // Copyright 2010, 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.example.testapp.pages;
import java.lang.management.ManagementFactory;
import javax.management.MBeanServer;
import javax.management.ObjectName;
public class RemotePoolManagement
{
public Object getSampleValue() throws Exception
{
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
return server.getAttribute(new ObjectName("org.example.testapp.services:service=Sample"), "SampleValue");
}
}
|
apache/thrift | 1,090 | lib/java/src/main/java/org/apache/thrift/TProcessor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.thrift;
import org.apache.thrift.protocol.TProtocol;
/**
* A processor is a generic object which operates upon an input stream and writes to some output
* stream.
*/
public interface TProcessor {
void process(TProtocol in, TProtocol out) throws TException;
}
|
apache/tika | 1,083 | tika-xmp/src/main/java/org/apache/tika/xmp/convert/Namespace.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tika.xmp.convert;
/**
* Utility class to hold namespace information.
*/
public class Namespace {
public String uri;
public String prefix;
public Namespace(String uri, String prefix) {
this.uri = uri;
this.prefix = prefix;
}
}
|
apache/tsfile | 1,055 | java/tsfile/src/main/java/org/apache/tsfile/exception/read/UnsupportedOrderingException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.tsfile.exception.read;
public class UnsupportedOrderingException extends ReadProcessException {
public UnsupportedOrderingException(String ordering) {
super(String.format("Unsupported ordering: %s", ordering));
}
}
|
apache/uniffle | 1,076 | common/src/main/java/org/apache/uniffle/common/Arguments.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common;
import picocli.CommandLine.Option;
public class Arguments {
@Option(
names = {"-c", "--conf"},
description = "config file")
private String configFile;
public String getConfigFile() {
return this.configFile;
}
}
|
apache/wicket | 1,056 | wicket-core-tests/src/test/java/org/apache/wicket/redirect/LoginPage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.redirect;
import org.apache.wicket.markup.html.WebPage;
/**
*/
public class LoginPage extends WebPage
{
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Construct.
*/
public LoginPage()
{
}
}
|
google/binnavi | 1,044 | src/main/java/com/google/security/zynamics/binnavi/Gui/IdaSelectionDialog/InstallationState.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.Gui.IdaSelectionDialog;
/**
* Contains all known installation states for IDA Pro exporters.
*/
public enum InstallationState {
/**
* Indicates that a given exporter is installed completely.
*/
Installed,
/**
* Indicates that a given exporter is not installed.
*/
NotInstalled,
/**
* Indicates that the selected directory is not an IDA Pro directory.
*/
InvalidIdaDirectory
}
|
google/binnavi | 1,046 | src/main/java/com/google/security/zynamics/zylib/gui/zygraph/layouters/HierarchicOrientation.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.zylib.gui.zygraph.layouters;
public enum HierarchicOrientation {
VERTICAL, HORIZONTAL;
public static HierarchicOrientation parseInt(final int orientation) {
if (orientation == VERTICAL.ordinal()) {
return VERTICAL;
} else if (orientation == HORIZONTAL.ordinal()) {
return HORIZONTAL;
} else {
throw new IllegalStateException("Internal Error: Invalid orientation value");
}
}
}
|
google/cdep | 1,073 | cdep/src/main/java/io/cdep/cdep/ast/finder/AssignmentBlockExpression.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.cdep.cdep.ast.finder;
import io.cdep.annotations.NotNull;
import java.util.List;
public class AssignmentBlockExpression extends StatementExpression {
@NotNull
final public List<AssignmentExpression> assignments;
@NotNull
final public StatementExpression statement;
AssignmentBlockExpression(@NotNull List<AssignmentExpression> assignments, @NotNull StatementExpression statement) {
this.assignments = assignments;
this.statement = statement;
}
}
|
google/closure-stylesheets | 1,062 | src/com/google/common/css/compiler/ast/CssSelectorListNode.java | /*
* Copyright 2009 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.common.css.compiler.ast;
/**
* A list of nodes that contains only selectors.
*
* @author oana@google.com (Oana Florescu)
*/
public class CssSelectorListNode extends CssNodesListNode<CssSelectorNode> {
public CssSelectorListNode() {
super(false);
}
public CssSelectorListNode(CssSelectorListNode node) {
super(node);
}
@Override
public CssSelectorListNode deepCopy() {
return new CssSelectorListNode(this);
}
}
|
google/fhir-data-pipes | 1,039 | bunsen/bunsen-core/src/test/java/com/cerner/bunsen/definitions/IdConverterTest.java | package com.cerner.bunsen.definitions;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import org.hl7.fhir.dstu3.model.IdType;
import org.junit.Before;
import org.junit.Test;
public class IdConverterTest {
private IdConverter<ArbitraryDataType> idConverter;
@Before
public void setUp() {
idConverter = new IdConverter<ArbitraryDataType>(new ArbitraryDataType());
}
@Test
public void relativePathTest() {
assertThat(idConverter.fromHapi(new IdType("Patient/123")), equalTo("123"));
}
@Test
public void absoluteUrlTest() {
assertThat(idConverter.fromHapi(new IdType("http://fhir.server/Patient/123")), equalTo("123"));
}
@Test
public void idPartTest() {
assertThat(idConverter.fromHapi(new IdType("123")), equalTo("123"));
}
// In real scenarios this would be the specific type to/from which the HAPI conversion happens,
// e.g., an Avro Schema when the conversion is to/from Avro records.
private static class ArbitraryDataType {}
}
|
google/fhir | 1,090 | java/com/google/fhir/wrappers/r5/NumericTypeWrapper.java | // Copyright 2024 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 com.google.fhir.wrappers.r5;
import com.google.gson.JsonPrimitive;
import com.google.protobuf.Message;
import java.math.BigDecimal;
/** An abstract wrapper class around numeric FHIR primitive types. */
public abstract class NumericTypeWrapper<T extends Message> extends PrimitiveWrapper<T> {
protected NumericTypeWrapper(T t) {
super(t);
}
@Override
public JsonPrimitive toJson() {
return new JsonPrimitive(new BigDecimal(toString()));
}
}
|
google/guava | 1,071 | guava-tests/test/com/google/common/collect/HashBasedTableRowMapTest.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.TableCollectionTest.RowMapTests;
import org.jspecify.annotations.NullMarked;
@GwtCompatible
@NullMarked
public class HashBasedTableRowMapTest extends RowMapTests {
public HashBasedTableRowMapTest() {
super(false, true, true, true);
}
@Override
Table<String, Integer, Character> makeTable() {
return HashBasedTable.create();
}
}
|
google/guava | 1,071 | guava-tests/test/com/google/common/collect/TreeBasedTableRowMapTest.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.TableCollectionTest.RowMapTests;
import org.jspecify.annotations.NullMarked;
@GwtCompatible
@NullMarked
public class TreeBasedTableRowMapTest extends RowMapTests {
public TreeBasedTableRowMapTest() {
super(false, true, true, true);
}
@Override
Table<String, Integer, Character> makeTable() {
return TreeBasedTable.create();
}
}
|
google/j2cl | 1,045 | transpiler/javatests/com/google/j2cl/integration/java/allsimplebridges/Tester509.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 Tester509 {
static class C1 {
C1() {}
public String get(Object value) {
return "C1.get";
}
}
@SuppressWarnings("unchecked")
static class C2 extends C1 {
C2() {}
}
@SuppressWarnings("unchecked")
public static void test() {
C2 s = new C2();
assertTrue(((C1) s).get("").equals("C1.get"));
}
}
|
google/j2cl | 1,066 | transpiler/javatests/com/google/j2cl/integration/java/interfacejsbridge/Main.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 interfacejsbridge;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
public class Main {
public static void main(String... args) {
MyJsInterface a = new InterfaceImpl();
MyInterface b = new InterfaceImpl();
SubInterface c = new InterfaceImpl();
InterfaceImpl d = new InterfaceImpl();
assertTrue((a.foo(1) == 1));
assertTrue((b.foo(2) == 2));
assertTrue((c.foo(3) == 3));
assertTrue((d.foo(4) == 4));
}
}
|
google/nomulus | 1,065 | core/src/main/java/google/registry/persistence/converter/ToStringConverterBase.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.persistence.converter;
import jakarta.persistence.AttributeConverter;
import javax.annotation.Nullable;
/** Abstract JPA converter for objects that are stored by their toString() value. */
abstract class ToStringConverterBase<T> implements AttributeConverter<T, String> {
@Override
@Nullable
public String convertToDatabaseColumn(@Nullable T entity) {
return (entity == null) ? null : entity.toString();
}
}
|
google/protobuf-gradle-plugin | 1,090 | testProjectCustomProtoDir/src/main/java/Foo.java | import com.google.protobuf.MessageLite;
import java.util.ArrayList;
import java.util.List;
public class Foo {
public static List<MessageLite> getDefaultInstances() {
ArrayList<MessageLite> list = new ArrayList<MessageLite>();
// from src/main/protobuf/test.protodevel
list.add(ws.antonov.protobuf.test.Test.TestMessage.getDefaultInstance());
list.add(ws.antonov.protobuf.test.Test.AnotherMessage.getDefaultInstance());
list.add(ws.antonov.protobuf.test.Test.Item.getDefaultInstance());
list.add(ws.antonov.protobuf.test.Test.DataMap.getDefaultInstance());
// from src/main/protobuf/sample.proto (java_multiple_files == true, thus no outter class)
list.add(com.example.tutorial.Msg.getDefaultInstance());
list.add(com.example.tutorial.SecondMsg.getDefaultInstance());
// from src/main/protocolbuffers/more.proto
list.add(More.MoreMsg.getDefaultInstance());
list.add(More.Foo.getDefaultInstance());
// from "src/main/protocol buffers/spaceinpath.proto"
list.add(Spaceinpath.SpaceInPath.getDefaultInstance());
return list;
}
}
|
googleapis/sdk-platform-java | 1,038 | gapic-generator-java/src/main/java/com/google/api/generator/gapic/model/ReflectConfig.java | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.generator.gapic.model;
public class ReflectConfig {
String name;
boolean queryAllDeclaredConstructors = true;
boolean queryAllPublicConstructors = true;
boolean queryAllDeclaredMethods = true;
boolean allPublicMethods = true;
boolean allDeclaredClasses = true;
boolean allPublicClasses = true;
public ReflectConfig(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
|
hibernate/hibernate-ogm | 1,031 | core/src/main/java/org/hibernate/ogm/jdbc/impl/NoopConnectionProvider.java | /*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.jdbc.impl;
import java.sql.Connection;
import java.sql.SQLException;
import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
import org.hibernate.service.UnknownUnwrapTypeException;
/**
* @author Emmanuel Bernard
*/
public class NoopConnectionProvider implements ConnectionProvider {
@Override
public Connection getConnection() throws SQLException {
return new NoopConnection();
}
@Override
public void closeConnection(Connection conn) throws SQLException {
}
@Override
public boolean supportsAggressiveRelease() {
return true;
}
@Override
public boolean isUnwrappableAs(Class unwrapType) {
return false;
}
@Override
public <T> T unwrap(Class<T> unwrapType) {
throw new UnknownUnwrapTypeException( unwrapType );
}
}
|
hibernate/hibernate-shards | 1,063 | src/test/java/org/hibernate/shards/criteria/CriteriaEventDefaultMock.java | /**
* Copyright (C) 2007 Google Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
package org.hibernate.shards.criteria;
import org.hibernate.Criteria;
/**
* @author maxr@google.com (Max Ross)
*/
public class CriteriaEventDefaultMock implements CriteriaEvent {
public void onEvent(Criteria criteria) {
throw new UnsupportedOperationException();
}
}
|
openjdk/jdk8 | 1,085 | langtools/test/tools/javac/diags/examples/PkgClashWithClass/p/q/C.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.
*/
package p.q;
public class C { }
|
openjdk/jdk8 | 1,096 | langtools/test/com/sun/javadoc/testIndex/pkg/Interface.java | /*
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg;
public interface Interface {}
|
openjdk/jdk8 | 1,099 | langtools/test/tools/javac/annotations/default/Eerr.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.
*/
@A(x=1, x=2) // error: duplicate x
class E {
}
|
openjdk/jdk8 | 1,099 | langtools/test/tools/javac/AnonymousProtect/P1/pub.java | /*
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package P1;
public class pub extends priv {
}
|
openjdk/jdk8 | 1,099 | langtools/test/tools/javac/diags/examples/Expected3.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.expected3
int Expected3;
|
openjdk/jdk8 | 1,102 | langtools/test/tools/javac/scope/6225935/a/Named.java | /*
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package a;
public class Named extends Private {}
|
openjdk/jdk8 | 1,103 | langtools/test/tools/javac/synthesize/Number.java | /*
* Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.lang;
public class Number
{
}
|
oracle/coherence | 1,046 | prj/coherence-core/src/main/java/com/oracle/coherence/common/base/IdentityHolder.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.oracle.coherence.common.base;
/**
* A Holder implementation which additionally provides an equals/hashCode implementation based on the held
* object's identity.
*
* @author mf 2017.03.27
*/
public class IdentityHolder<V>
extends SimpleHolder<V>
{
/**
* Construct an IdentityHolder holding nothing.
*/
public IdentityHolder()
{
}
/**
* Construct an IdentityHolder holding the specified object.
*
* @param v the object to hold
*/
public IdentityHolder(V v)
{
super(v);
}
@Override
public int hashCode()
{
return System.identityHashCode(get());
}
@Override
public boolean equals(Object oThat)
{
return oThat instanceof IdentityHolder && get() == ((IdentityHolder) oThat).get();
}
}
|
oracle/coherence | 1,058 | prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Ishr.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.dev.assembler;
import java.io.IOException;
import java.io.DataInput;
import java.io.DataOutput;
/**
* The ISHR simple op right-shifts the bits of the second integer in the
* stack by the number specified by the first integer in the stack.
* <p><code><pre>
* JASM op : ISHR (0x7a)
* JVM byte code(s): ISHR (0x7a)
* Details :
* </pre></code>
*
* @version 0.50, 06/12/98, assembler/dis-assembler
* @author Cameron Purdy
*/
public class Ishr extends Op implements Constants
{
// ----- constructors ---------------------------------------------------
/**
* Construct the op.
*/
public Ishr()
{
super(ISHR);
}
// ----- data members ---------------------------------------------------
/**
* The name of this class.
*/
private static final String CLASS = "Ishr";
}
|
oracle/nosql | 1,091 | kvmain/src/main/java/oracle/kv/util/StoreConsoleHandler.java | /*-
* Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package oracle.kv.util;
/**
* This handler accepts input from the monitor logging view. It is
* distinguished from oracle.kv.util.ConsoleHandler only because a
* single process kvstore unit test can view the monitoring output without
* seeing the component level output. Using a single console handler would
* cause such a single process kvstore run to see all console output in
* duplicate.
*
* To see KVStore wide view of all monitoring, enable this handler, i.e:
*
* oracle.kv.util.StoreConsoleHandler.level=ALL
*/
public class StoreConsoleHandler extends oracle.kv.util.ConsoleHandler {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.