repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
google/startup-os | 1,145 | tools/reviewer/aa/commands/AaCommand.java | /*
* Copyright 2018 The StartupOS Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.startupos.tools.reviewer.aa.commands;
public interface AaCommand {
String ANSI_RED = "\u001B[31m";
String ANSI_YELLOW = "\u001B[33m";
String ANSI_BOLD = "\u001b[1m";
String ANSI_RESET = "\u001B[0m";
String RED_ERROR = ANSI_RED + ANSI_BOLD + "ERROR: " + ANSI_RESET;
String YELLOW_NOTE = ANSI_YELLOW + ANSI_BOLD + "NOTE: " + ANSI_RESET;
// Run command, return true on success.
boolean run(String[] args);
// TODO: implement ability to interrupt commands
// with leaving workspace in defined state
}
|
googleapis/google-cloud-java | 1,029 | java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/AlterMetadataResourceLocationResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/metastore/v1beta/metastore.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.metastore.v1beta;
public interface AlterMetadataResourceLocationResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.metastore.v1beta.AlterMetadataResourceLocationResponse)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,042 | java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EnableAdvancedSiteSearchResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/discoveryengine/v1/site_search_engine_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.discoveryengine.v1;
public interface EnableAdvancedSiteSearchResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchResponse)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,062 | java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/spi/ResourceManagerRpcFactory.java | /*
* Copyright 2015 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.resourcemanager.spi;
import com.google.cloud.resourcemanager.ResourceManagerOptions;
import com.google.cloud.spi.ServiceRpcFactory;
/**
* An interface for Resource Manager RPC factory. Implementation will be loaded via {@link
* java.util.ServiceLoader}.
*
* @deprecated v3 GAPIC client of ResourceManager is now available
*/
@Deprecated
public interface ResourceManagerRpcFactory extends ServiceRpcFactory<ResourceManagerOptions> {}
|
googleapis/java-genai | 1,126 | src/main/java/com/google/genai/ExcludeFromGeneratedCoverageReport.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.genai;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation to exclude a method or constructor from the Jacoco coverage report.
*
* <p>Jacoco will exclude methods that have an annotation with the word "generated" in it.
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
@interface ExcludeFromGeneratedCoverageReport {}
|
hibernate/hibernate-ogm | 1,066 | core/src/test/java/org/hibernate/ogm/backendtck/id/embeddable/SingleBoardComputer.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.backendtck.id.embeddable;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.hibernate.search.annotations.FieldBridge;
import org.hibernate.search.annotations.Indexed;
/**
* @author Gunnar Morling
*/
@Entity
@Indexed
public class SingleBoardComputer {
@Id
@FieldBridge(impl = SingleBoardComputerPk.SingleBoardComputerPkFieldBridge.class)
private SingleBoardComputerPk id;
private String name;
SingleBoardComputer() {
}
public SingleBoardComputer(SingleBoardComputerPk id, String name) {
this.id = id;
this.name = name;
}
public SingleBoardComputerPk getId() {
return id;
}
public void setId(SingleBoardComputerPk id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
hibernate/hibernate-ogm | 1,104 | core/src/main/java/org/hibernate/ogm/OgmSessionFactory.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;
import org.hibernate.HibernateException;
import org.hibernate.SessionBuilder;
import org.hibernate.SessionFactory;
/**
* Provides OGM-specific functionality on the session factory level.
*
* @author Gunnar Morling
*/
public interface OgmSessionFactory extends SessionFactory {
/**
* A {@link SessionBuilder} which creates {@link OgmSession}s.
*
* @author Gunnar Morling
*
*/
public interface OgmSessionBuilder<T extends OgmSessionBuilder> extends SessionBuilder<T> {
@Override
OgmSession openSession();
}
@Override
OgmSessionBuilder withOptions();
/**
* Opens a new session based on the configured NoSQL datastore.
*
* @return A new Hibernate OGM session
*/
@Override
OgmSession openSession() throws HibernateException;
@Override
OgmSession getCurrentSession() throws HibernateException;
}
|
hibernate/hibernate-orm | 1,031 | hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/custom/declaredtype/Email.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.mapping.collections.custom.declaredtype;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
/**
* @author Gavin King
* @author Steve Ebersole
*/
@Entity
public class Email {
private Long id;
private String address;
Email() {
}
public Email(String address) {
this.address = address;
}
@Id
@GeneratedValue( strategy = GenerationType.AUTO )
public Long getId() {
return id;
}
private void setId(Long id) {
this.id = id;
}
public String getAddress() {
return address;
}
public void setAddress(String type) {
this.address = type;
}
@Override
public boolean equals(Object that) {
if ( !(that instanceof Email ) ) return false;
Email p = (Email) that;
return this.address.equals(p.address);
}
@Override
public int hashCode() {
return address.hashCode();
}
}
|
hibernate/hibernate-orm | 1,036 | hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/ids/embeddedid/IncorrectChildId.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.envers.integration.ids.embeddedid;
import java.io.Serializable;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.JoinColumns;
import jakarta.persistence.ManyToOne;
/**
* @author Chris Cranford
*/
@Embeddable
public class IncorrectChildId implements Serializable {
@ManyToOne
@JoinColumns({ @JoinColumn(name = "parent_id", referencedColumnName = "id") })
private Parent parent;
@Column(name = "child_number")
private Integer number;
IncorrectChildId() {
}
public IncorrectChildId(Integer number, Parent parent) {
this.number = number;
this.parent = parent;
}
public Parent getParent() {
return parent;
}
public void setParent(Parent parent) {
this.parent = parent;
}
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
}
|
hibernate/hibernate-search | 1,035 | integrationtest/mapper/pojo-base/src/test/java/org/hibernate/search/integrationtest/mapper/pojo/workspace/SearchWorkspaceMergeSegmentsIT.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.integrationtest.mapper.pojo.workspace;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import org.hibernate.search.mapper.pojo.standalone.work.SearchWorkspace;
import org.hibernate.search.util.impl.integrationtest.common.extension.BackendMock;
import org.hibernate.search.util.impl.test.annotation.TestForIssue;
@TestForIssue(jiraKey = "HSEARCH-4621")
class SearchWorkspaceMergeSegmentsIT extends AbstractSearchWorkspaceSimpleOperationIT {
@Override
protected void expectWork(BackendMock backendMock, String indexName, CompletableFuture<?> future) {
backendMock.expectIndexScaleWorks( indexName )
.mergeSegments( future );
}
@Override
protected void executeSync(SearchWorkspace workspace) {
workspace.mergeSegments();
}
@Override
protected CompletionStage<?> executeAsync(SearchWorkspace workspace) {
return workspace.mergeSegmentsAsync();
}
}
|
hibernate/hibernate-search | 1,037 | backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/analysis/model/dsl/impl/ElasticsearchTokenFilterParametersStep.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.backend.elasticsearch.analysis.model.dsl.impl;
import org.hibernate.search.backend.elasticsearch.analysis.model.impl.ElasticsearchAnalysisDefinitionCollector;
import org.hibernate.search.backend.elasticsearch.logging.impl.AnalysisLog;
import org.hibernate.search.backend.elasticsearch.lowlevel.index.analysis.impl.TokenFilterDefinition;
import org.hibernate.search.util.common.impl.StringHelper;
class ElasticsearchTokenFilterParametersStep
extends AbstractElasticsearchAnalysisComponentParametersStep<TokenFilterDefinition> {
ElasticsearchTokenFilterParametersStep(String name) {
super( name, new TokenFilterDefinition() );
}
@Override
public void contribute(ElasticsearchAnalysisDefinitionCollector collector) {
if ( StringHelper.isEmpty( definition.getType() ) ) {
throw AnalysisLog.INSTANCE.invalidElasticsearchTokenFilterDefinition( name );
}
collector.collect( name, definition );
}
}
|
hibernate/hibernate-search | 1,049 | mapper/orm/src/main/java/org/hibernate/search/mapper/orm/cfg/spi/HibernateOrmMapperSpiSettings.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.mapper.orm.cfg.spi;
import org.hibernate.search.mapper.orm.cfg.HibernateOrmMapperSettings;
public final class HibernateOrmMapperSpiSettings {
private HibernateOrmMapperSpiSettings() {
}
public static final String PREFIX = HibernateOrmMapperSettings.PREFIX;
public static final String INTEGRATION_PARTIAL_BUILD_STATE =
PREFIX + Radicals.INTEGRATION_PARTIAL_BUILD_STATE;
public static final String JBOSS_LOG_VERSION =
// No Hibernate-specific prefix here; this controls the behavior of multiple JBoss libraries.
"jboss.log-version";
public static class Radicals {
private Radicals() {
}
public static final String INTEGRATION_PARTIAL_BUILD_STATE = "integration_partial_build_state";
}
/**
* Default values for the different settings if no values are given.
*/
public static final class Defaults {
private Defaults() {
}
public static final boolean JBOSS_LOG_VERSIONS = true;
}
}
|
hibernate/hibernate-search | 1,077 | engine/src/main/java/org/hibernate/search/engine/mapper/mapping/building/spi/IndexedEntityBindingContext.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.mapper.mapping.building.spi;
import org.hibernate.search.engine.backend.types.converter.FromDocumentValueConverter;
import org.hibernate.search.engine.backend.types.converter.ToDocumentValueConverter;
import org.hibernate.search.util.common.annotation.Incubating;
/**
* The binding context associated to the root node in the entity tree.
*
* @see IndexBindingContext
*/
public interface IndexedEntityBindingContext extends IndexBindingContext {
/**
* Inform the backend that documents for the mapped index will always be provided along
* with an explicit routing key,
* to be used to route the document to a specific shard.
*/
void explicitRouting();
<I> void idDslConverter(Class<I> valueType, ToDocumentValueConverter<I, String> converter);
<I> void idProjectionConverter(Class<I> valueType, FromDocumentValueConverter<String, I> converter);
@Incubating
void idParser(ToDocumentValueConverter<String, String> parser);
}
|
hibernate/hibernate-tools | 1,078 | test/nodb/src/test/java/org/hibernate/tool/hbm2x/hbm2hbmxml/MapAndAnyTest/Address.java | /*
* Hibernate Tools, Tooling for your Hibernate Projects
*
* Copyright 2004-2025 Red Hat, 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 org.hibernate.tool.hbm2x.hbm2hbmxml.MapAndAnyTest;
import java.util.Set;
import java.util.HashSet;
public class Address {
private Long id;
private Set<String> lines = new HashSet<String>();
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Set<String> getLines() {
return lines;
}
public void setLines(Set<String> lines) {
this.lines = lines;
}
}
|
openjdk/jdk8 | 1,144 | langtools/test/tools/javac/diags/examples/MissingReturnStatement.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.missing.ret.stmt
class MissingReturnStatement {
int m() {
}
}
|
openjdk/jtreg | 1,184 | test/libdirs/t1/l3/L3.java | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.io.PrintStream;
public class L3 {
public L3(PrintStream out) {
out.println(getClass().getName());
}
}
|
openjdk/jtreg | 1,184 | test/libdirs/t1/l5/L5.java | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.io.PrintStream;
public class L5 {
public L5(PrintStream out) {
out.println(getClass().getName());
}
}
|
oracle/coherence | 1,116 | prj/coherence-core/src/main/java/com/tangosol/util/fsm/annotations/OnEnterState.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.util.fsm.annotations;
import com.tangosol.util.fsm.Event;
import com.tangosol.util.fsm.ExecutionContext;
import com.tangosol.util.fsm.FiniteStateMachine;
import com.tangosol.util.fsm.StateEntryAction;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines a {@link StateEntryAction} that should be executed when a
* {@link FiniteStateMachine} reaches a specified state.
* <p>
* Note: The signature of the annotated method should be the same as that
* defined by {@link StateEntryAction#onEnterState(Enum, Enum, Event, ExecutionContext)}
* <p>
*
* @author Brian Oliver
* @since Coherence 12.2.1
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface OnEnterState
{
/**
* The name of the state being entered.
*/
String value();
}
|
oracle/nosql | 1,135 | kvmain/src/main/java/oracle/kv/impl/admin/client/HttpMethod.java | /*-
* Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package oracle.kv.impl.admin.client;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Associates the name of a HTTP method with an annotation. A ShellCommand
* annotated by the methods can be accessed by Http resquest by matching
* Http method.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface HttpMethod {
static final String GET = "GET";
static final String PUT = "PUT";
static final String POST = "POST";
static final String DELETE = "DELETE";
String value();
}
|
oracle/nosql | 1,155 | kvmain/src/main/java/oracle/kv/impl/test/TestHook.java | /*-
* Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package oracle.kv.impl.test;
/**
* TestHook is used induce testing behavior that can't be provoked externally.
* For example, unit tests may use hooks to throw IOExceptions, or to cause
* waiting behavior.
*
* To use this, a unit test should extend TestHook with a class that overrides
* the desired method. The desired code will have a method that allows the unit
* test to specify a hook, and will execute the hook if it is non-null.
* This should be done within an assert like so:
*
* assert TestHookExecute.doHookIfSet(myTestHook, hookArg);
*
* See StorewideLoggingView for an example.
*/
public interface TestHook<T> {
public void doHook(T arg);
}
|
apache/commons-lang | 1,135 | src/test/java/org/apache/commons/lang3/reflect/testbed/Annotated.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.lang3.reflect.testbed;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface Annotated {
}
|
apache/commons-rng | 1,133 | commons-rng-examples/examples-jpms/jpms-lib/src/main/java/module-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 module contains code for testing that the library
* can be used as a Java 9 Java Platform Module System (JPMS) module.
*/
module org.apache.commons.rng.examples.jpms.lib {
requires org.apache.commons.rng.api;
requires org.apache.commons.rng.sampling;
exports org.apache.commons.rng.examples.jpms.lib;
}
|
apache/commons-statistics | 1,093 | commons-statistics-descriptive/src/test/java/org/apache/commons/statistics/descriptive/ResultType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.statistics.descriptive;
/**
* The native result type of a {@link StatisticResult}.
*/
enum ResultType {
/** {@code double}. */
DOUBLE,
/** {@code int}. */
INT,
/** {@code long}. */
LONG,
/** {@code BigInteger}. */
BIG_INTEGER
}
|
apache/ctakes | 1,128 | ctakes-gui/src/main/java/org/apache/ctakes/gui/dictionary/cased/umls/file/MrRel.java | package org.apache.ctakes.gui.dictionary.cased.umls.file;
/**
* @author SPF , chip-nlp
* @version %I%
* @since 11/29/2018
* <p>
* Related Concepts in MRREL.RRF
*/
public enum MrRel {
CUI1, // Unique identifier for first concept
AUI1, // Unique identifier for first atom
STYPE1, // The name of the column in MRCONSO.RRF that contains the first identifier to which the relationship is attached
REL, // Relationship label
CUI2, // Unique identifier for second concept
AUI2, // Unique identifier for second atom
STYPE2, // The name of the column in MRCONSO.RRF that contains the second identifier to which the relationship is attached
RELA, // Additional relationship label --- e.g. parent_of
RUI, // Unique identifier for relationship
SRUI, // Source attributed relationship identifier
SAB, // Source abbreviation --- e.g. NCI
SL, // Source of relationship labels --- e.g. NCI
RG, // Relationship group
DIR, // Source asserted directionality flag
SUPPRESS,// Suppressible flag
CVF; // Content view flag
}
|
apache/cxf | 1,102 | systests/kerberos/src/test/java/org/apache/cxf/systest/kerberos/jaxrs/kerberos/BookNotFoundDetails.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.systest.kerberos.jaxrs.kerberos;
import jakarta.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class BookNotFoundDetails {
private long id;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
}
|
apache/cxf | 1,128 | rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/JAXBContextProvider2.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.jaxrs;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.ext.ContextResolver;
import jakarta.xml.bind.JAXBContext;
@Produces("text/xml+b")
public class JAXBContextProvider2 implements ContextResolver<JAXBContext> {
public JAXBContext getContext(Class<?> type) {
return null;
}
}
|
apache/cxf | 1,130 | systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookApplication2.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.systest.jaxrs;
import jakarta.servlet.ServletContext;
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Context;
@ApplicationPath("/the%20books2")
public class BookApplication2 extends BookApplication {
public BookApplication2(@Context ServletContext sc) {
super(sc);
}
}
|
apache/deltaspike | 1,112 | deltaspike/core/api/src/main/java/org/apache/deltaspike/core/spi/config/ConfigValidator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.deltaspike.core.spi.config;
import java.util.Set;
public interface ConfigValidator
{
/**
* @return a set of violation-messages if an invalid state is found
* those messages will be used to add one deployment-problem per message
*/
Set<String> processValidation();
}
|
apache/directory-kerby | 1,114 | kerby-common/kerby-asn1/src/main/java/org/apache/kerby/asn1/type/Asn1T61String.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.kerby.asn1.type;
import org.apache.kerby.asn1.UniversalTag;
public class Asn1T61String extends Asn1String {
public Asn1T61String() {
this(null);
}
public Asn1T61String(String value) {
super(UniversalTag.T61_STRING, value);
}
}
|
apache/distributedlog | 1,083 | distributedlog-tutorials/distributedlog-messaging/src/main/java/org/apache/distributedlog/messaging/IntPartitioner.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.distributedlog.messaging;
/**
* Partitioner where key is an integer
*/
public class IntPartitioner implements Partitioner<Integer> {
@Override
public int partition(Integer key, int totalPartitions) {
return key % totalPartitions;
}
}
|
apache/dolphinscheduler | 1,065 | dolphinscheduler-task-plugin/dolphinscheduler-task-http/src/main/java/org/apache/dolphinscheduler/plugin/task/http/HttpConstants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.plugin.task.http;
import lombok.experimental.UtilityClass;
@UtilityClass
public class HttpConstants {
public static final String CONTENT_TYPE = "Content-Type";
public static final int RESPONSE_CODE_SUCCESS = 200;
}
|
apache/dolphinscheduler | 1,068 | dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/models/tenant/DefaultTenant.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.e2e.models.tenant;
public class DefaultTenant implements ITenant {
@Override
public String getTenantCode() {
return "default";
}
@Override
public String getDescription() {
return "";
}
}
|
apache/drill | 1,119 | exec/memory/base/src/main/java/org/apache/drill/exec/memory/AllocatorClosedException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.drill.exec.memory;
/**
* Exception thrown when a closed BufferAllocator is used. Note
* this is an unchecked exception.
*/
@SuppressWarnings("serial")
public class AllocatorClosedException extends RuntimeException {
public AllocatorClosedException(String message) {
super(message);
}
}
|
apache/drill | 1,124 | exec/java-exec/src/main/java/org/apache/drill/exec/schema/SchemaIdGenerator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.drill.exec.schema;
public class SchemaIdGenerator implements IdGenerator<Integer> {
private int nextId;
public SchemaIdGenerator() {
nextId = 1;
}
public Integer getNextId() {
return nextId++;
}
@Override
public void reset() {
nextId = 1;
}
}
|
apache/druid | 1,121 | processing/src/main/java/org/apache/druid/query/aggregation/ObjectAggregateCombiner.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.query.aggregation;
import org.apache.druid.segment.ObjectColumnSelector;
/**
* Specialization of {@link AggregateCombiner} for object aggregations.
*/
public abstract class ObjectAggregateCombiner<T> extends ObjectColumnSelector<T> implements AggregateCombiner<T>
{
// No methods
}
|
apache/druid | 1,124 | server/src/main/java/org/apache/druid/curator/announcement/ServiceAnnouncer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.curator.announcement;
public interface ServiceAnnouncer
{
void start();
void stop();
void announce(String path, byte[] bytes);
void announce(String path, byte[] bytes, boolean removeParentIfCreated);
void update(String path, byte[] bytes);
void unannounce(String path);
}
|
apache/dubbo-spi-extensions | 1,035 | dubbo-serialization-extensions/dubbo-serialization-protobuf/src/test/java/org/apache/dubbo/common/serialize/protobuf/support/GenericProtobufJsonSerializationTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.common.serialize.protobuf.support;
public class GenericProtobufJsonSerializationTest extends AbstractProtobufSerializationTest {
{
serialization = new GenericProtobufJsonSerialization();
}
}
|
apache/dubbo-spi-extensions | 1,069 | dubbo-rpc-extensions/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/exception/CodeStyleNotSupportException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.rpc.protocol.rest.exception;
/**
* only support spring mvc & jaxrs annotation
*/
public class CodeStyleNotSupportException extends RestException {
public CodeStyleNotSupportException(String message) {
super(message);
}
}
|
apache/eagle | 1,090 | eagle-security/eagle-security-common/src/main/java/org/apache/eagle/security/util/BadMetadataAccessConfigException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.eagle.security.util;
public class BadMetadataAccessConfigException extends RuntimeException{
public BadMetadataAccessConfigException(Exception ex){
super(ex);
}
public BadMetadataAccessConfigException(String msg){
super(msg);
}
}
|
apache/eventmesh | 1,117 | eventmesh-spi/src/test/java/org/apache/eventmesh/spi/example/TestSingletonExtension.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.spi.example;
import org.apache.eventmesh.spi.EventMeshExtensionType;
import org.apache.eventmesh.spi.EventMeshSPI;
/**
* TestSingletonExtension
*/
@EventMeshSPI(eventMeshExtensionType = EventMeshExtensionType.UNKNOWN)
public interface TestSingletonExtension {
void hello();
}
|
apache/felix-dev | 1,111 | scr/src/test/java/org/apache/felix/scr/integration/components/felix5248/Component.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.scr.integration.components.felix5248;
import java.util.Map;
public class Component
{
void activate(Map<String, Object> props)
{
if ( props.containsKey( "FAIL" ) )
{
throw new IllegalStateException( "you said to fail" );
}
}
}
|
apache/fineract | 1,071 | fineract-core/src/main/java/org/apache/fineract/infrastructure/event/external/service/idempotency/ExternalEventIdempotencyKeyGenerator.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.infrastructure.event.external.service.idempotency;
import org.apache.fineract.infrastructure.event.business.domain.BusinessEvent;
public interface ExternalEventIdempotencyKeyGenerator {
<T> String generate(BusinessEvent<T> event);
}
|
apache/fineract | 1,107 | fineract-core/src/main/java/org/apache/fineract/infrastructure/core/boot/FineractProfiles.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.infrastructure.core.boot;
public final class FineractProfiles {
public static final String LIQUIBASE_ONLY = "liquibase-only";
public static final String DIAGNOSTICS = "diagnostics";
public static final String TEST = "test";
private FineractProfiles() {}
}
|
apache/flex-utilities | 1,098 | FlexPMD/flex-pmd-java/flex-pmd-core/src/main/java/com/adobe/ac/pmd/engines/FlexPMDFormat.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.adobe.ac.pmd.engines;
public enum FlexPMDFormat
{
HTML("flexPmd.html"), XML("pmd.xml");
private final String name;
private FlexPMDFormat( final String formatName )
{
name = formatName;
}
@Override
public String toString()
{
return name;
}
}
|
apache/flink | 1,103 | flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/gateway/result/DynamicResult.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.table.client.gateway.result;
/**
* A result of a dynamic table program.
*
* <p>Note: Make sure to call close() after the result is not needed anymore.
*/
public interface DynamicResult {
/** Closes the retrieval and all involved threads. */
void close();
}
|
apache/flink | 1,106 | flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/slotpool/TestingPhysicalSlotPayload.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.runtime.jobmaster.slotpool;
/** Dummy payload. */
public class TestingPhysicalSlotPayload implements PhysicalSlot.Payload {
@Override
public void release(Throwable cause) {}
@Override
public boolean willOccupySlotIndefinitely() {
return false;
}
}
|
apache/flink | 1,112 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/lineage/DatasetSchemaFacet.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.flink.streaming.api.lineage;
import org.apache.flink.annotation.PublicEvolving;
import java.util.Map;
/** Builtin schema facet for dataset. */
@PublicEvolving
public interface DatasetSchemaFacet extends LineageDatasetFacet {
<T> Map<String, DatasetSchemaField<T>> fields();
}
|
apache/flink | 1,117 | flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/filemerging/FileMergingType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.runtime.checkpoint.filemerging;
/** How the checkpoint files can be segmented. */
public enum FileMergingType {
// merge checkpoint files within checkpoint boundaries
MERGE_WITHIN_CHECKPOINT,
// merge checkpoint files across checkpoint boundaries
MERGE_ACROSS_CHECKPOINT
}
|
apache/flink | 1,127 | flink-core/src/main/java/org/apache/flink/api/connector/source/SourceSplit.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.api.connector.source;
import org.apache.flink.annotation.Public;
/** An interface for all the Split types to extend. */
@Public
public interface SourceSplit {
/**
* Get the split id of this source split.
*
* @return id of this source split.
*/
String splitId();
}
|
apache/geaflow | 1,082 | geaflow/geaflow-plugins/geaflow-store/geaflow-store-api/src/main/java/org/apache/geaflow/store/api/graph/IStaticGraphStore.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.store.api.graph;
import org.apache.geaflow.state.graph.StaticGraphTrait;
import org.apache.geaflow.store.IStatefulStore;
public interface IStaticGraphStore<K, VV, EV> extends StaticGraphTrait<K, VV, EV>, IStatefulStore,
IPushDownStore {
}
|
apache/geaflow | 1,086 | geaflow/geaflow-dsl/geaflow-dsl-plan/src/main/java/org/apache/geaflow/dsl/udf/table/other/GraphMetaFieldAccessFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.dsl.udf.table.other;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.geaflow.dsl.planner.GQLJavaTypeFactory;
public interface GraphMetaFieldAccessFunction {
RelDataType getReturnRelDataType(GQLJavaTypeFactory typeFactory);
}
|
apache/geode | 1,132 | geode-core/src/main/java/org/apache/geode/cache/CommitIncompleteException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.cache;
/**
* Thrown when a commit fails to complete due to errors
*
* @since GemFire 5.7
*/
public class CommitIncompleteException extends TransactionException {
private static final long serialVersionUID = 1017741483744420800L;
public CommitIncompleteException(String message) {
super(message);
}
}
|
apache/gobblin | 1,113 | gobblin-core/src/main/java/org/apache/gobblin/source/extractor/exception/SchemaException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gobblin.source.extractor.exception;
public class SchemaException extends Exception {
private static final long serialVersionUID = 1L;
public SchemaException(String message) {
super(message);
}
public SchemaException(String message, Exception e) {
super(message, e);
}
}
|
apache/gobblin | 1,124 | gobblin-runtime/src/main/java/org/apache/gobblin/runtime/api/JobExecutionStatus.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gobblin.runtime.api;
public interface JobExecutionStatus {
public static final String UKNOWN_STAGE = "unkown";
JobExecution getJobExecution();
MonitoredObject getRunningState();
/** Arbitrary execution stage, e.g. setup, workUnitGeneration, taskExecution, publishing */
String getStage();
}
|
apache/groovy | 1,138 | src/main/java/org/apache/groovy/util/JavaShellCompilationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.groovy.util;
import groovy.lang.GroovyRuntimeException;
public class JavaShellCompilationException extends GroovyRuntimeException {
private static final long serialVersionUID = 8048143189569571714L;
public JavaShellCompilationException(String message) {
super(message);
}
}
|
apache/hadoop-common | 1,045 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/security/token/delegation/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.mapreduce.security.token.delegation;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop-common | 1,090 | hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextCreateMkdir.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs;
import org.junit.Before;
public class TestLocalFSFileContextCreateMkdir extends
FileContextCreateMkdirBaseTest {
@Override
@Before
public void setUp() throws Exception {
fc = FileContext.getLocalFSFileContext();
super.setUp();
}
}
|
apache/hadoop | 1,027 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/TimelineAggregationTrack.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.yarn.server.timelineservice.storage;
/**
* specifies the tracks along which an entity
* info is to be aggregated on.
*
*/
public enum TimelineAggregationTrack {
APP, FLOW, USER, QUEUE
}
|
apache/hadoop | 1,082 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Package org.apache.hadoop.yarn.api.records.timelineservice contains classes
* which define the data model for ATSv2.
*/
@InterfaceAudience.Public
package org.apache.hadoop.yarn.api.records.timelineservice;
import org.apache.hadoop.classification.InterfaceAudience;
|
apache/hadoop | 1,096 | hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/statistics/StatisticTypeEnum.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs.s3a.statistics;
/**
* Enum of statistic types.
*/
public enum StatisticTypeEnum {
/**
* Counter.
*/
TYPE_COUNTER,
/**
* Duration.
*/
TYPE_DURATION,
/**
* Gauge.
*/
TYPE_GAUGE,
/**
* Quantile.
*/
TYPE_QUANTILE,
}
|
apache/hadoop | 1,099 | hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/metrics/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.
*/
/**
* Support for tracking Block Reader Local's latencies.
*/
@InterfaceAudience.Private
@InterfaceStability.Evolving
package org.apache.hadoop.hdfs.client.impl.metrics;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/harmony | 1,110 | classlib/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/fontlib/FLOutline.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.harmony.awt.gl.font.fontlib;
public class FLOutline {
byte[] commands;
float[] points;
FLOutline() {
}
public void setOutline(byte[] commands, float[] points) {
this.commands = commands;
this.points = points;
}
}
|
apache/harmony | 1,130 | drlvm/src/test/final_method_test/FinalMethodTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import finalmethodtest.A;
class B extends A {
private void m() {
System.out.println("PASSED");
}
public void test() {
m();
}
}
public class FinalMethodTest {
public static void main(String[] args) {
new B().test();
}
}
|
apache/hive | 1,111 | hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/NotAuthorizedException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.hcatalog.templeton;
import org.eclipse.jetty.http.HttpStatus;
/**
* Simple "user not found" type exception.
*/
public class NotAuthorizedException extends SimpleWebException {
public NotAuthorizedException(String msg) {
super(HttpStatus.UNAUTHORIZED_401, msg);
}
}
|
apache/hive | 1,127 | storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/IDecimalColumnVector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hive.ql.exec.vector;
import org.apache.hadoop.hive.common.type.HiveDecimal;
import org.apache.hadoop.hive.serde2.io.HiveDecimalWritable;
public interface IDecimalColumnVector {
void set(int elementNum, HiveDecimalWritable writable);
void set(int elementNum, HiveDecimal hiveDec);
}
|
apache/hop | 1,144 | rcp/src/main/java/org/apache/hop/ui/core/gui/GuiResourceImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.ui.core.gui;
import org.apache.hop.ui.hopgui.ISingletonProvider;
public class GuiResourceImpl implements ISingletonProvider {
private static GuiResource instance;
@Override
public Object getInstanceInternal() {
if (instance == null) {
instance = new GuiResource();
}
return instance;
}
}
|
apache/hudi | 1,130 | hudi-common/src/main/java/org/apache/hudi/exception/HoodieKeyException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.exception;
/**
* <p>
* Exception thrown for Hoodie Key Generator related errors.
* </p>
*/
public class HoodieKeyException extends HoodieException {
public HoodieKeyException(String msg) {
super(msg);
}
public HoodieKeyException(String msg, Throwable e) {
super(msg, e);
}
}
|
apache/ignite-3 | 1,099 | modules/compute/src/integrationTest/java/org/apache/ignite/internal/compute/ItWorkerShutdownEmbeddedTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.compute;
import org.apache.ignite.Ignite;
import org.apache.ignite.compute.IgniteCompute;
class ItWorkerShutdownEmbeddedTest extends ItWorkerShutdownTest {
@Override
IgniteCompute compute(Ignite entryNode) {
return entryNode.compute();
}
}
|
apache/ignite | 1,108 | modules/core/src/test/java/org/apache/ignite/testframework/configvariations/ConfigParameter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.testframework.configvariations;
/**
* Configuration parameter.
*/
public interface ConfigParameter<T> {
/**
* @return Name
*/
public String name();
/**
* @param cfg Configuration.
* @return Configuration.
*/
public T apply(T cfg);
}
|
apache/ignite | 1,109 | modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/jdbc/JdbcIpFinderDialect.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.spi.discovery.tcp.ipfinder.jdbc;
/**
* SQL dialect to use with {@link TcpDiscoveryJdbcIpFinder}.
*/
public interface JdbcIpFinderDialect {
/**
* Gets table name in a valid form to use as IP addresses
* @return Table name.
*/
public String tableName();
}
|
apache/ignite | 1,114 | examples/src/test/java/org/apache/ignite/examples/ContinuousMapperExamplesMultiNodeSelfTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.examples;
/**
* ContinuousMapperExample multi-node self test.
*/
public class ContinuousMapperExamplesMultiNodeSelfTest extends ContinuationExamplesSelfTest {
/** {@inheritDoc} */
@Override protected void beforeTest() throws Exception {
startRemoteNodes();
}
}
|
apache/incubator-brooklyn | 1,087 | brooklyn-server/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/ComputeServiceRegistry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.brooklyn.location.jclouds;
import org.apache.brooklyn.util.core.config.ConfigBag;
import org.jclouds.compute.ComputeService;
public interface ComputeServiceRegistry {
public ComputeService findComputeService(ConfigBag conf, boolean allowReuse);
}
|
apache/incubator-datalab | 1,110 | services/datalab-model/src/main/java/com/epam/datalab/dto/bucket/BucketDeleteDTO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.bucket;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.util.List;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class BucketDeleteDTO {
private final String bucket;
private final List<String> objects;
}
|
apache/incubator-kie-drools | 1,100 | kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdRedirectFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.pmml.api.identifiers;
public class PmmlIdRedirectFactory implements PmmlComponentRoot {
public LocalComponentIdRedirectPmml get(String redirectModel, String fileName, String name) {
return new LocalComponentIdRedirectPmml(redirectModel, fileName, name);
}
}
|
apache/incubator-kie-drools | 1,113 | kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Conditional.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.model.api;
public interface Conditional extends Expression {
ChildExpression getIf();
ChildExpression getThen();
ChildExpression getElse();
void setIf(ChildExpression value);
void setThen(ChildExpression value);
void setElse(ChildExpression value);
}
|
apache/incubator-livy | 1,107 | thriftserver/session/src/main/java/org/apache/livy/thriftserver/session/DataType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.livy.thriftserver.session;
/**
* Enum representing the way user data is encoded on the wire between the Livy session and
* the server.
*/
public enum DataType {
BOOLEAN,
BYTE,
SHORT,
INTEGER,
LONG,
FLOAT,
DOUBLE,
BINARY,
DECIMAL,
TIMESTAMP,
DATE,
STRING;
}
|
apache/incubator-seata | 1,117 | config/seata-config-core/src/main/java/io/seata/config/ConfigurationProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.seata.config;
/**
* the interface configuration provider
* Notes: used for io.seata SPI interface
*/
@Deprecated
public interface ConfigurationProvider {
/**
* provide a AbstractConfiguration implementation instance
*
* @return Configuration
*/
Configuration provide();
}
|
apache/inlong | 1,079 | inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/metamanage/metastore/dao/mapper/AbstractMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.tubemq.server.master.metamanage.metastore.dao.mapper;
import org.apache.inlong.tubemq.server.common.exception.LoadMetaException;
public interface AbstractMapper {
void close();
void loadConfig(StringBuilder strBuff) throws LoadMetaException;
}
|
apache/inlong | 1,095 | inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/service/tube/BrokerStatusInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.tubemq.manager.service.tube;
import lombok.Data;
import java.util.List;
@Data
public class BrokerStatusInfo {
private int code;
private String errMsg;
/**
* total broker configuration info list of brokers.
*/
private List<BrokerConf> data;
}
|
apache/jackrabbit-oak | 1,117 | oak-run/src/main/java/org/apache/jackrabbit/oak/run/FullGCMetricsExporterFixture.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.run;
import org.apache.jackrabbit.oak.plugins.document.FullGCMetricsExporter;
/**
* Fixture encapsulating FullGC metrics exporter instance of T
* @param <T>
*/
public interface FullGCMetricsExporterFixture<T> extends FullGCMetricsExporter, MetricsExporterFixture<T> {
}
|
apache/jclouds | 1,128 | compute/src/main/java/org/jclouds/compute/strategy/DestroyNodeStrategy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.compute.strategy;
import org.jclouds.compute.domain.NodeMetadata;
import org.jclouds.javax.annotation.Nullable;
/**
* terminates the node
*/
public interface DestroyNodeStrategy {
/**
*
* @return null if the node wasn't found
*/
@Nullable
NodeMetadata destroyNode(String id);
}
|
apache/jclouds | 1,138 | core/src/main/java/org/jclouds/location/suppliers/ZoneIdsSupplier.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.location.suppliers;
import java.util.Set;
import org.jclouds.location.suppliers.fromconfig.ZoneIdsFromConfiguration;
import com.google.common.base.Supplier;
import com.google.inject.ImplementedBy;
@ImplementedBy(ZoneIdsFromConfiguration.class)
public interface ZoneIdsSupplier extends Supplier<Set<String>> {
}
|
apache/jena | 1,144 | jena-base/src/main/java/org/apache/jena/atlas/lib/SinkNull.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.atlas.lib;
public class SinkNull<T> implements Sink<T>
{
public static <X> SinkNull<X> create() { return new SinkNull<>() ; }
/*@Override*/ @Override
public void send(T thing) {}
/*@Override*/ @Override
public void close() {}
/*@Override*/ @Override
public void flush() { }
}
|
apache/juneau | 1,119 | juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/assertion/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.
*
***************************************************************************************************************************/
/**
* REST Client Assertions
*/
package org.apache.juneau.rest.client.assertion; |
apache/kafka | 1,117 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/entities/TaskInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.connect.runtime.rest.entities;
import org.apache.kafka.connect.util.ConnectorTaskId;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
public record TaskInfo(
@JsonProperty("id") ConnectorTaskId id,
@JsonProperty("config") Map<String, String> config
) {
} |
apache/kafka | 1,119 | streams/src/main/java/org/apache/kafka/streams/kstream/internals/WrappingNullableSerializer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.streams.kstream.internals;
import org.apache.kafka.common.serialization.Serializer;
import org.apache.kafka.streams.processor.internals.SerdeGetter;
public interface WrappingNullableSerializer<Outer, InnerK, InnerV> extends Serializer<Outer> {
void setIfUnset(final SerdeGetter getter);
}
|
apache/karaf | 1,080 | examples/karaf-redis-example/karaf-redis-example-service/src/main/java/org/apache/karaf/examples/redis/service/RedisConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.examples.redis.service;
import org.osgi.service.component.annotations.ComponentPropertyType;
@ComponentPropertyType
public @interface RedisConfig {
String host() default "localhost";
String bookingListName() default "booking";
}
|
apache/kylin | 1,091 | src/core-common/src/main/java/org/apache/kylin/common/persistence/transaction/RefreshVolumeBroadcastEventNotifier.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.persistence.transaction;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode
public class RefreshVolumeBroadcastEventNotifier extends BroadcastEventReadyNotifier {
@Override
public boolean needBroadcastSelf() {
return false;
}
}
|
apache/kylin | 1,106 | src/common-service/src/main/java/org/apache/kylin/rest/request/FavoriteQueryThresholdRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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 FavoriteQueryThresholdRequest {
@JsonProperty("threshold")
private Integer threshold;
@JsonProperty("tips_enabled")
private Boolean tipsEnabled;
}
|
apache/kylin | 1,109 | src/core-common/src/main/java/org/apache/kylin/common/persistence/MissingRootPersistentEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.persistence;
public class MissingRootPersistentEntity extends RootPersistentEntity {
private String rp;
public MissingRootPersistentEntity(String rp) {
this.rp = rp;
}
@Override
public String getResourcePath() {
return rp;
}
}
|
apache/lens | 1,127 | lens-server/src/main/java/org/apache/lens/server/scheduler/SchedulerApp.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.scheduler;
import javax.ws.rs.ApplicationPath;
import org.apache.lens.server.BaseApp;
/**
* The Class SchedulerApp.
*/
@ApplicationPath("/scheduler")
public class SchedulerApp extends BaseApp {
@Override
protected Class getResource() {
return ScheduleResource.class;
}
}
|
apache/linkis | 1,087 | linkis-public-enhancements/linkis-cs-server/src/main/java/org/apache/linkis/cs/server/protocol/ContextListenerProtocol.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.server.protocol;
import org.apache.linkis.cs.server.enumeration.ServiceType;
public class ContextListenerProtocol extends AbstractHttpRequestProtocol {
@Override
public String getServiceName() {
return ServiceType.CONTEXT_LISTENER.name();
}
}
|
apache/linkis | 1,091 | linkis-public-enhancements/linkis-jobhistory/src/main/java/org/apache/linkis/jobhistory/cache/QueryCacheManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.jobhistory.cache;
import org.apache.linkis.jobhistory.cache.impl.UserTaskResultCache;
public interface QueryCacheManager {
UserTaskResultCache getCache(String user, String engineType);
void cleanAll();
void refreshAll();
void refreshUndoneTask();
}
|
apache/logging-log4j2 | 1,091 | log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/validation/validators/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.
*/
/**
* ConstraintValidator implementations for the constraint annotations.
*
* @since 2.1
*/
@Export
@Version("2.20.1")
package org.apache.logging.log4j.core.config.plugins.validation.validators;
import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
|
apache/logging-log4j2 | 1,132 | log4j-1.2-api/src/main/java/org/apache/log4j/spi/LoggerFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.log4j.spi;
import org.apache.log4j.Logger;
/**
* Implement this interface to create new instances of Logger or a sub-class of Logger.
*
* <p>
* See <code>examples/subclass/MyLogger.java</code> for an example.
* </p>
*/
public interface LoggerFactory {
Logger makeNewLoggerInstance(String name);
}
|
apache/maven-enforcer | 1,113 | enforcer-api/src/main/java/org/apache/maven/enforcer/rule/api/EnforcerLevel.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.enforcer.rule.api;
/**
* Levels steering whether a rule should fail a build or just display a warning.
*
* @author Mirko Friedenhagen
* @since 1.4
*/
public enum EnforcerLevel {
/**
* Fail the build.
*/
ERROR,
/**
* Just warn.
*/
WARN
}
|
apache/maven-javadoc-plugin | 1,112 | src/test/resources/unit/default-configuration/def/configuration/App.java | package def.configuration;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT 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 App
{
@Deprecated
public int notUsed = 0;
public static void main( String[] args )
{
System.out.println( "Sample Application." );
}
protected void sampleMethod( String str )
{
System.out.println( str );
}
} |
apache/maven-surefire | 1,075 | surefire-its/src/test/resources/testng-method-pattern-after/src/test/java/testng/BasicTest.java | package testng;
import org.testng.annotations.*;
import org.testng.Assert;
public class BasicTest
{
private boolean setUpCalled = false;
private static boolean tearDownCalled = false;
private Integer foo;
@BeforeTest
public void intialize()
{
setUpCalled = true;
tearDownCalled = false;
System.out.println( "Called setUp" );
foo = Integer.valueOf( 1 );
}
@AfterTest
public void shutdown()
{
setUpCalled = false;
tearDownCalled = true;
System.out.println( "Called tearDown" );
}
@Test
public void testSetUp()
{
Assert.assertTrue( setUpCalled );
Assert.assertNotNull( foo );
}
@Test
public void testSuccessOne()
{
Assert.assertTrue( true );
Assert.assertNotNull( foo );
}
@Test
public void testSuccessTwo()
{
Assert.assertTrue( true );
Assert.assertNotNull( foo );
}
@AfterClass
public static void oneTimeTearDown()
{
}
}
|
apache/maven | 1,109 | api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmServiceException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.api.services;
import org.apache.maven.api.annotations.Experimental;
@Experimental
public class ChecksumAlgorithmServiceException extends MavenException {
public ChecksumAlgorithmServiceException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/maven | 1,129 | impl/maven-impl/src/main/java/org/apache/maven/impl/di/OutOfScopeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.impl.di;
import org.apache.maven.di.impl.DIException;
public class OutOfScopeException extends DIException {
public OutOfScopeException(String message) {
super(message);
}
public OutOfScopeException(String message, Throwable cause) {
super(message, cause);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.