repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
google/kiwi-solver
1,114
src/main/java/kiwi/trail/TrailedBoolean.java
/* * Copyright 2016, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package kiwi.trail; public class TrailedBoolean implements Change { private final Trail trail; private boolean currentValue; public TrailedBoolean(Trail trail, boolean initValue) { this.trail = trail; currentValue = initValue; } public void undo() { currentValue = !currentValue; } public boolean getValue() { return currentValue; } public void setValue(boolean value) { if (currentValue != value) { currentValue = value; trail.store(this); } } }
google/mail-importer
1,091
src/test/java/to/lean/tools/gmail/importer/gmail/GmailServiceModuleTest.java
/* * Copyright 2015 The Mail Importer Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package to.lean.tools.gmail.importer.gmail; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import to.lean.tools.gmail.importer.testing.ModuleTester; @RunWith(JUnit4.class) public class GmailServiceModuleTest { @Test public void testAllDependenciesDeclared() throws Exception { ModuleTester moduleTester = new ModuleTester(new GmailServiceModule()); moduleTester.assertAllDependenciesDeclared(); } }
google/nomulus
1,102
core/src/main/java/google/registry/tools/params/LocalDateParameter.java
// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package google.registry.tools.params; import org.joda.time.LocalDate; import org.joda.time.format.ISODateTimeFormat; /** {@linkplain LocalDate} CLI parameter converter/validator. */ public final class LocalDateParameter extends ParameterConverterValidator<LocalDate> { public LocalDateParameter() { super("not a local date in YYYY-MM-DD format"); } @Override public LocalDate convert(String value) { return LocalDate.parse(value, ISODateTimeFormat.date()); } }
google/nomulus
1,120
core/src/main/java/google/registry/bsa/RefreshStage.java
// Copyright 2023 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package google.registry.bsa; public enum RefreshStage { /** * Checks for stale unblockable domains. The output is a stream of {@link * google.registry.bsa.api.UnblockableDomainChange} objects that describe the stale domains. */ CHECK_FOR_CHANGES, /** Fixes the stale domains in the database. */ APPLY_CHANGES, /** Reports the unblockable domains to be removed to BSA. */ UPLOAD_REMOVALS, /** Reports the newly found unblockable domains to BSA. */ UPLOAD_ADDITIONS, DONE; }
googleapis/google-cloud-java
1,024
java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponseOrBuilder.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/documentai/v1beta3/document_processor_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.documentai.v1beta3; public interface EnableProcessorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.EnableProcessorResponse) com.google.protobuf.MessageOrBuilder {}
hibernate/hibernate-ogm
1,036
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/query/parsing/predicate/impl/MongoDBInPredicate.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.datastore.mongodb.query.parsing.predicate.impl; import java.util.List; import org.hibernate.hql.ast.spi.predicate.InPredicate; import org.hibernate.hql.ast.spi.predicate.NegatablePredicate; import org.bson.Document; /** * MongoDB-based implementation of {@link InPredicate}. * * @author Gunnar Morling */ public class MongoDBInPredicate extends InPredicate<Document> implements NegatablePredicate<Document> { public MongoDBInPredicate(String propertyName, List<Object> values) { super( propertyName, values ); } @Override public Document getQuery() { return new Document( propertyName, new Document( "$in", values ) ); } @Override public Document getNegatedQuery() { return new Document( propertyName, new Document( "$nin", values ) ); } }
hibernate/hibernate-orm
1,031
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/Boat.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.annotations; import java.io.Serializable; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; import jakarta.persistence.Inheritance; import jakarta.persistence.InheritanceType; /** * Boat class. Mapped in a Joined manner * * @author Emmanuel Bernard */ @Entity() @Inheritance( strategy = InheritanceType.JOINED ) public class Boat implements Serializable { private Integer id; private int size; private int weight; public Boat() { super(); } @Id @GeneratedValue public Integer getId() { return id; } @Column(name = "boat_size") public int getSize() { return size; } public void setId(Integer integer) { id = integer; } public void setSize(int i) { size = i; } public int getWeight() { return weight; } public void setWeight(int weight) { this.weight = weight; } }
hibernate/hibernate-orm
1,032
hibernate-core/src/main/java/org/hibernate/dialect/function/xml/H2XmlConcatFunction.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.dialect.function.xml; import java.util.List; import org.hibernate.metamodel.model.domain.ReturnableType; import org.hibernate.sql.ast.SqlAstTranslator; import org.hibernate.sql.ast.spi.SqlAppender; import org.hibernate.sql.ast.tree.SqlAstNode; import org.hibernate.type.spi.TypeConfiguration; /** * H2 xmlconcat function. */ public class H2XmlConcatFunction extends XmlConcatFunction { public H2XmlConcatFunction(TypeConfiguration typeConfiguration) { super( typeConfiguration ); } @Override public void render( SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) { String separator = ""; sqlAppender.appendSql( '(' ); for ( SqlAstNode sqlAstArgument : sqlAstArguments ) { sqlAppender.appendSql( separator ); sqlAstArgument.accept( walker ); separator = "||"; } sqlAppender.appendSql( ')' ); } }
hibernate/hibernate-orm
1,038
hibernate-core/src/test/java/org/hibernate/orm/test/legacy/InnerKey.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.legacy; import java.io.Serializable; /** * @author Stefano Travelli */ public class InnerKey implements Serializable { private String akey; private String bkey; public String getAkey() { return akey; } public void setAkey(String akey) { this.akey = akey; } public String getBkey() { return bkey; } public void setBkey(String bkey) { this.bkey = bkey; } public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof InnerKey)) return false; final InnerKey cidSuperID = (InnerKey) o; if (akey != null ? !akey.equals(cidSuperID.akey) : cidSuperID.akey != null) return false; if (bkey != null ? !bkey.equals(cidSuperID.bkey) : cidSuperID.bkey != null) return false; return true; } public int hashCode() { int result; result = (akey != null ? akey.hashCode() : 0); result = 29 * result + (bkey != null ? bkey.hashCode() : 0); return result; } }
hibernate/hibernate-orm
1,066
tooling/metamodel-generator/src/test/java/org/hibernate/processor/test/dao/DaoTest.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.processor.test.dao; import org.hibernate.processor.test.util.CompilationTest; import org.hibernate.processor.test.util.TestUtil; import org.hibernate.processor.test.util.WithClasses; import org.junit.jupiter.api.Test; import static org.hibernate.processor.test.util.TestUtil.assertMetamodelClassGeneratedFor; /** * @author Gavin King */ @CompilationTest class DaoTest { @Test @WithClasses({ Book.class, Dao.class, Bean.class, StatefulDao.class, StatelessDao.class }) void testDao() { System.out.println( TestUtil.getMetaModelSourceAsString( Dao.class ) ); System.out.println( TestUtil.getMetaModelSourceAsString( StatefulDao.class ) ); System.out.println( TestUtil.getMetaModelSourceAsString( StatelessDao.class ) ); assertMetamodelClassGeneratedFor( Book.class ); assertMetamodelClassGeneratedFor( Dao.class ); assertMetamodelClassGeneratedFor( StatefulDao.class ); assertMetamodelClassGeneratedFor( StatelessDao.class ); } }
hibernate/hibernate-tools
1,078
jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/PrimaryKeyWrapper.java
/* * Hibernate Tools, Tooling for your Hibernate Projects * * Copyright 2024-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.orm.jbt.api.wrp; import java.util.Iterator; import java.util.List; public interface PrimaryKeyWrapper extends Wrapper { void addColumn(ColumnWrapper column); int getColumnSpan(); List<ColumnWrapper> getColumns(); ColumnWrapper getColumn(int i); TableWrapper getTable(); boolean containsColumn(ColumnWrapper column); Iterator<ColumnWrapper> columnIterator(); String getName(); }
hibernate2011/RosClient
1,099
app/src/main/java/com/jilk/ros/rosbridge/operation/Unadvertise.java
/** * Copyright (c) 2014 Jilk Systems, Inc. * * This file is part of the Java ROSBridge Client. * * The Java ROSBridge Client is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Java ROSBridge Client is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with the Java ROSBridge Client. If not, see http://www.gnu.org/licenses/. * */ package com.jilk.ros.rosbridge.operation; import com.jilk.ros.message.MessageType; @MessageType(string = "unadvertise") public class Unadvertise extends Operation { public String topic; public Unadvertise() {} public Unadvertise(String topic) { this.topic = topic; } }
hibernate2011/RosClient
1,099
app/src/main/java/com/jilk/ros/rosbridge/operation/Unsubscribe.java
/** * Copyright (c) 2014 Jilk Systems, Inc. * * This file is part of the Java ROSBridge Client. * * The Java ROSBridge Client is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Java ROSBridge Client is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with the Java ROSBridge Client. If not, see http://www.gnu.org/licenses/. * */ package com.jilk.ros.rosbridge.operation; import com.jilk.ros.message.MessageType; @MessageType(string = "unsubscribe") public class Unsubscribe extends Operation { public String topic; public Unsubscribe() {} public Unsubscribe(String topic) { this.topic = topic; } }
openjdk/jdk8
1,093
langtools/test/tools/javac/annotations/typeAnnotations/packageanno/mypackage/package-info.java
/* * Copyright (c) 2009, 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. */ @mypackage.Anno package mypackage;
openjdk/jdk8
1,104
langtools/test/tools/javac/diags/examples/DeprecatedPlural/DeprecatedFilename.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. */ class DeprecatedFileName { DeprecatedClass d; }
openjdk/jdk8
1,138
langtools/test/tools/javac/enum/T5081785a.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ class A { public A check() { return new A() { enum STRENGTH{}; }; } }
openjdk/jdk8
1,138
langtools/test/tools/javadoc/6942366/Test.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. */ public class Test extends p.Base { // overrides Base.m public void m() { } }
openjdk/jtreg
1,129
test/modlibs/compileAction/usermods/CompileUserMod.java
/* * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @compile/module=um1 module-info.java um1_p1/um1_p1_C.java */
openjdk/jtreg
1,151
test/verifyexclude/p/Pass2.java
/* * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* @test */ /* @test */ public class Pass2 { public static void main(String... args) { } }
oracle/coherence
1,070
prj/coherence-concurrent/src/main/java/com/oracle/coherence/concurrent/executor/internal/Cause.java
/* * Copyright (c) 2016, 2021, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.concurrent.executor.internal; /** * An enumeration to represent the possible causes of backing map events. * * @author bo * @since 21.12 */ public enum Cause { /** * <code>REGULAR</code> is for regular inserts, updates and delete events. */ REGULAR, /** * <code>EVICTION</code> is for deletes that are due to cache eviction. */ EVICTION, /** * <code>PARTITIONING</code> is used for inserts and deletes that * have occurred due to cache partitions being load-balanced or recovered. */ PARTITIONING, /** * <code>STORE_COMPLETED</code> is for update events due to a storage decoration * change on an entry. Coherence updates a decoration after a successful store * operation on a write-behind store. ie: an asynchronous store has completed. */ STORE_COMPLETED; }
oracle/nosql
1,113
kvmain/src/main/java/oracle/kv/impl/async/DialogTypeFamily.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.async; /** * The family of dialog types for an asynchronous service interface. Instances * need to be registered with {@link DialogType#registerTypeFamily}. */ public interface DialogTypeFamily { /** * Returns the integer value of this dialog type family, which must not be * negative, and must be less than {@link DialogType#MAX_TYPE_FAMILIES}. * * @return the integer value of this dialog type family */ int getFamilyId(); /** * Returns the name of the family, not including the ID. * * @return the family name */ String getFamilyName(); }
oracle/oci-java-sdk
1,049
bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/test/java/com/oracle/bmc/serialization/jackson/SerializationTest.java
/** * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ package com.oracle.bmc.serialization.jackson; import org.junit.Test; import java.io.IOException; import java.time.Duration; public class SerializationTest { @Test public void durationClassModuleRegistered() throws IOException { Duration duration = Duration.ofSeconds(60); // Below lines will fail if JavaTimeModule for Duration class is not registered String durationStr = com.oracle.bmc.serialization.jackson.JacksonSerializer.getDefaultObjectMapper() .writeValueAsString(duration); com.oracle.bmc.serialization.jackson.JacksonSerializer.getDefaultObjectMapper() .readValue(durationStr, Duration.class); } }
apache/commons-rdf
1,081
commons-rdf-jsonld-java/src/test/java/org/apache/commons/rdf/jsonldjava/JsonLdGraphTest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.rdf.jsonldjava; import org.apache.commons.rdf.api.AbstractGraphTest; import org.apache.commons.rdf.api.RDF; class JsonLdGraphTest extends AbstractGraphTest { @Override public RDF createFactory() { return new JsonLdRDF(); } }
apache/curator
1,089
curator-framework/src/main/java/org/apache/curator/framework/api/ChildrenDeletable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.curator.framework.api; public interface ChildrenDeletable extends BackgroundVersionable { /** * <p> * Will also delete children if they exist. * </p> * @return */ public BackgroundVersionable deletingChildrenIfNeeded(); }
apache/cxf
1,085
integration/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ResourceBeanTest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.jca.core.resourceadapter; import org.junit.Test; public class ResourceBeanTest { @Test public void testDisableConsoleLogging() throws Exception { ResourceBean rb = new ResourceBean(); rb.setDisableConsoleLogging(true); } }
apache/cxf
1,116
core/src/main/java/org/apache/cxf/policy/PolicyCalculator.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.policy; import javax.xml.namespace.QName; import org.apache.cxf.message.Message; public interface PolicyCalculator<T> { Class<T> getDataClass(); QName getDataClassName(); T intersect(T policy1, T policy2); boolean isAsserted(Message message, T policy, T refPolicy); }
apache/datasketches-java
1,100
src/main/java/org/apache/datasketches/tuple/SummaryFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.datasketches.tuple; /** * Interface for user-defined SummaryFactory * @param <S> type of Summary */ public interface SummaryFactory<S extends Summary> { /** * Returns new instance of Summary * @return new instance of Summary */ public S newSummary(); }
apache/directory-studio
1,052
plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifExternalAnnotationModel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.directory.studio.ldifeditor.editor.text; import org.eclipse.jface.text.source.projection.ProjectionAnnotationModel; public class LdifExternalAnnotationModel extends ProjectionAnnotationModel { }
apache/dolphinscheduler
1,071
dolphinscheduler-microbench/src/main/java/org/apache/dolphinscheduler/microbench/rpc/IService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.microbench.rpc; import org.apache.dolphinscheduler.extract.base.RpcMethod; import org.apache.dolphinscheduler.extract.base.RpcService; @RpcService public interface IService { @RpcMethod String ping(String pingRequest); }
apache/doris-manager
1,047
manager/general/src/main/java/org/apache/doris/stack/exception/DorisHttpPortErrorException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class DorisHttpPortErrorException extends Exception { public static final String MESSAGE = "HTTP端口无法访问,请检查后重新输入"; public DorisHttpPortErrorException() { super(MESSAGE); } }
apache/doris-manager
1,047
manager/general/src/main/java/org/apache/doris/stack/exception/DorisJdbcPortErrorException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class DorisJdbcPortErrorException extends Exception { public static final String MESSAGE = "JDBC端口无法访问,请检查后重新输入"; public DorisJdbcPortErrorException() { super(MESSAGE); } }
apache/druid
1,104
processing/src/main/java/org/apache/druid/segment/DimensionHandlerProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.segment; public interface DimensionHandlerProvider <EncodedType extends Comparable<EncodedType>, EncodedKeyComponentType, ActualType extends Comparable<ActualType>> { DimensionHandler<EncodedType, EncodedKeyComponentType, ActualType> get(String dimensionName); }
apache/dubbo
1,090
dubbo-common/src/test/java/org/apache/dubbo/common/extension/compatible/CompatibleExt.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.extension.compatible; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.Adaptive; import org.apache.dubbo.common.extension.SPI; @SPI("impl1") public interface CompatibleExt { @Adaptive String echo(URL url, String s); }
apache/dubbo
1,098
dubbo-compatible/src/main/java/com/alibaba/dubbo/common/extension/ExtensionFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.dubbo.common.extension; import org.apache.dubbo.common.extension.ExtensionScope; import org.apache.dubbo.common.extension.SPI; @Deprecated @SPI(scope = ExtensionScope.FRAMEWORK) public interface ExtensionFactory extends org.apache.dubbo.common.extension.ExtensionFactory {}
apache/falcon
1,110
prism/src/main/java/org/apache/falcon/resource/channel/Channel.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.falcon.resource.channel; import org.apache.falcon.FalconException; /** * Interface for a Channel. */ public interface Channel { void init(String colo, String serviceName) throws FalconException; <T> T invoke(String methodName, Object... args) throws FalconException; }
apache/felix-dev
1,107
framework/src/main/java/org/osgi/framework/package-info.java
/* * Copyright (c) OSGi Alliance (2010, 2019). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Framework Package Version 1.10. * <p> * Bundles wishing to use this package must list the package in the * Import-Package header of the bundle's manifest. * <p> * Example import for consumers using the API in this package: * <p> * {@code Import-Package: org.osgi.framework; version="[1.10,2.0)"} * * @author $Id: 5b7956509a6fcf8b3f7ad23ca343dcae27cf37c6 $ */ @Version("1.10") package org.osgi.framework; import org.osgi.annotation.versioning.Version;
apache/flink-agents
1,100
runtime/src/main/java/org/apache/flink/agents/runtime/queue/Lock.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.agents.runtime.queue; /** * * NOTE: This source code was copied from the <a * * href="https://github.com/apache/flink-statefun">flink-statefun</a> * * <p>Used for {@link MpscQueue} */ public interface Lock { void lockUninterruptibly(); void unlock(); }
apache/flink
1,075
flink-filesystems/flink-s3-fs-hadoop/src/main/java/org/apache/flink/fs/s3hadoop/S3AFileSystemFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.fs.s3hadoop; /** Simple factory for the S3 file system, registered for the <tt>s3a://</tt> scheme. */ public class S3AFileSystemFactory extends S3FileSystemFactory { @Override public String getScheme() { return "s3a"; } }
apache/flink
1,075
flink-filesystems/flink-s3-fs-presto/src/main/java/org/apache/flink/fs/s3presto/S3PFileSystemFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.fs.s3presto; /** Simple factory for the S3 file system, registered for the <tt>s3p://</tt> scheme. */ public class S3PFileSystemFactory extends S3FileSystemFactory { @Override public String getScheme() { return "s3p"; } }
apache/flink
1,088
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/ExplainFormat.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.api; import org.apache.flink.annotation.PublicEvolving; /** Explain format categorizes the output format of explain result. */ @PublicEvolving public enum ExplainFormat { /** Explain a {@link Explainable} with plain text format. */ TEXT }
apache/geaflow
1,068
geaflow/geaflow-core/geaflow-api/src/main/java/org/apache/geaflow/pipeline/callback/ICallbackFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.pipeline.callback; public interface ICallbackFunction { /** * Pass window id by callback. */ void window(long windowId); /** * Logical definition of all Windows finished. */ void terminal(); }
apache/geaflow
1,075
geaflow/geaflow-core/geaflow-api/src/main/java/org/apache/geaflow/api/function/base/KeySelector.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.api.function.base; import org.apache.geaflow.api.function.Function; @FunctionalInterface public interface KeySelector<IN, KEY> extends Function { /** * Extract the partition key from value. */ KEY getKey(IN value); }
apache/geode
1,099
geode-core/src/main/java/org/apache/geode/internal/cache/control/ResourceEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.internal.cache.control; import org.apache.geode.distributed.DistributedMember; import org.apache.geode.internal.cache.control.InternalResourceManager.ResourceType; public interface ResourceEvent { ResourceType getType(); boolean isLocal(); DistributedMember getMember(); }
apache/giraph
1,106
giraph-core/src/main/java/org/apache/giraph/function/Consumer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.function; import java.io.Serializable; /** * Function: * (T) -&gt; void * * @param <T> Argument type */ public interface Consumer<T> extends Serializable { /** * Applies this function to {@code input} * * @param input Input */ void apply(T input); }
apache/groovy
1,106
subprojects/groovy-templates/src/main/groovy/groovy/text/Template.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package groovy.text; import groovy.lang.Writable; import java.util.Map; /** * A template is a block of text with an associated binding that can be output to a writer or evaluated to a string. */ public interface Template { Writable make(); Writable make(Map binding); }
apache/hadoop-common
1,030
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/jobhistory/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.jobhistory; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hbase
1,100
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DataTiering.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.regionserver; import org.apache.hadoop.hbase.io.hfile.HFileInfo; import org.apache.yetus.audience.InterfaceAudience; @InterfaceAudience.Private public interface DataTiering { long getTimestamp(HStoreFile hFile); long getTimestamp(HFileInfo hFileInfo); }
apache/hbase
1,103
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TagUsage.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.io.hfile; import org.apache.yetus.audience.InterfaceAudience; /** * Used in testcases only. */ @InterfaceAudience.Private public enum TagUsage { // No tags would be added NO_TAG, // KVs with tags ONLY_TAG, // kvs with and without tags PARTIAL_TAG }
apache/ignite-3
1,078
modules/cli/src/main/java/org/apache/ignite/internal/cli/core/repl/registry/NodeConfigRegistry.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.cli.core.repl.registry; import com.typesafe.config.Config; import org.jetbrains.annotations.Nullable; /** Node config registry. */ public interface NodeConfigRegistry { /** Returns node config. */ @Nullable Config config(); }
apache/ignite-extensions
1,066
modules/hibernate-ext/examples/src/main/java/org/apache/ignite/examples/model/OrganizationType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.model; /** * Organization type enum. */ public enum OrganizationType { /** Non-profit organization. */ NON_PROFIT, /** Private organization. */ PRIVATE, /** Government organization. */ GOVERNMENT }
apache/ignite-extensions
1,066
modules/spring-tx-ext/examples/src/main/java/org/apache/ignite/examples/model/OrganizationType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.model; /** * Organization type enum. */ public enum OrganizationType { /** Non-profit organization. */ NON_PROFIT, /** Private organization. */ PRIVATE, /** Government organization. */ GOVERNMENT }
apache/ignite-extensions
1,076
modules/cdc-ext/src/test/java/org/apache/ignite/cdc/CacheConflictOperationsWithFieldTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.cdc; /** Cache conflict operations test. */ public class CacheConflictOperationsWithFieldTest extends CacheConflictOperationsTest { /** {@inheritDoc} */ @Override protected String conflictResolveField() { return "reqId"; } }
apache/impala
1,109
fe/src/main/java/org/apache/impala/common/UserCancelledException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.impala.common; /** * Thrown to interrupt Frontend execution when cancellation is requested. */ public class UserCancelledException extends ImpalaException { static public final String MSG = "Query cancelled by user request"; public UserCancelledException() { super(MSG); } }
apache/incubator-brooklyn
1,060
brooklyn-library/software/nosql/src/main/java/org/apache/brooklyn/entity/nosql/mongodb/MongoDBClientDriver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.entity.nosql.mongodb; import org.apache.brooklyn.entity.software.base.SoftwareProcessDriver; public interface MongoDBClientDriver extends SoftwareProcessDriver { void runScript(String preStart, String scriptName); }
apache/incubator-datalab
1,071
services/datalab-webapp-common/src/main/java/com/epam/datalab/rest/contracts/DockerAPI.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES 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.rest.contracts; public interface DockerAPI { String DOCKER = "docker"; String DOCKER_RUN = DOCKER + "/run"; String DOCKER_EXPLORATORY = DOCKER + "/exploratory"; String DOCKER_COMPUTATIONAL = DOCKER + "/computational"; }
apache/incubator-heron
1,086
storm-compatibility/v0.10.2/src/java/backtype/storm/topology/base/BaseRichBolt.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package backtype.storm.topology.base; import backtype.storm.topology.IRichBolt; public abstract class BaseRichBolt extends BaseComponent implements IRichBolt { private static final long serialVersionUID = -380896109088367449L; @Override public void cleanup() { } }
apache/incubator-hugegraph
1,067
hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/model/RegistryRestRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hugegraph.pd.model; import java.util.HashMap; import lombok.Data; @Data public class RegistryRestRequest { String id; String appName; String version; String address; String interval; HashMap<String, String> labels; }
apache/incubator-hugegraph
1,075
hugegraph-store/hg-store-client/src/main/java/org/apache/hugegraph/store/HgPageSize.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hugegraph.store; /** * Return the amount of records returned by one query in pageable-query. * <p> * created on 2021/10/24 */ public interface HgPageSize { long getPageSize(); default boolean isPageEmpty() { return false; } }
apache/incubator-kie-drools
1,066
drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Asset.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.mvel.compiler; public class Asset { private AssetCard assetCard; public AssetCard getAssetCard() { return assetCard; } public void setAssetCard(AssetCard assetCard) { this.assetCard = assetCard; } }
apache/incubator-retired-slider
1,074
slider-core/src/test/groovy/org/apache/slider/agent/rest/IpcApiClientTestDelegates.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.slider.agent.rest; import org.apache.slider.api.SliderApplicationApi; public class IpcApiClientTestDelegates extends AbstractAppApiTestDelegates { public IpcApiClientTestDelegates(SliderApplicationApi appAPI) { super(true, appAPI); } }
apache/inlong
1,092
inlong-sdk/sort-sdk/src/main/java/org/apache/inlong/sdk/sort/impl/ClientContextImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.sdk.sort.impl; import org.apache.inlong.sdk.sort.api.ClientContext; import org.apache.inlong.sdk.sort.api.SortClientConfig; public class ClientContextImpl extends ClientContext { public ClientContextImpl(SortClientConfig config) { super(config); } }
apache/iotdb-web-workbench
1,093
backend/src/main/java/org/apache/iotdb/admin/mapper/MeasurementMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.admin.mapper; import org.apache.iotdb.admin.model.entity.Measurement; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.springframework.stereotype.Component; @Component public interface MeasurementMapper extends BaseMapper<Measurement> {}
apache/iotdb
1,057
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/source/dataregion/historical/PipeHistoricalDataRegionSource.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.db.pipe.source.dataregion.historical; import org.apache.iotdb.pipe.api.PipeExtractor; public interface PipeHistoricalDataRegionSource extends PipeExtractor { boolean hasConsumedAll(); int getPendingQueueSize(); }
apache/jackrabbit-oak
1,077
oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/editor/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This package contains classes that deal with updating indexes, including how to build indexing backend * documents (e.g. Lucene and Solr documents) */ package org.apache.jackrabbit.oak.plugins.index.search.spi.editor; import org.osgi.annotation.versioning.Version;
apache/james-project
1,077
protocols/managesieve/src/main/java/org/apache/james/managesieve/api/UnknownSaslMechanism.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.james.managesieve.api; public class UnknownSaslMechanism extends ManageSieveException { public UnknownSaslMechanism(String unknownMechanism) { super("Unknown SASL mechanism " + unknownMechanism); } }
apache/jclouds
1,099
providers/azureblob/src/main/java/org/jclouds/azureblob/functions/BlobName.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.azureblob.functions; import org.jclouds.azureblob.domain.AzureBlob; import com.google.common.base.Function; public class BlobName implements Function<Object, String> { public String apply(Object from) { return ((AzureBlob) from).getProperties().getName(); } }
apache/jena
1,114
jena-shex/src/main/java/org/apache/jena/shex/sys/InitShex.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.shex.sys; import org.apache.jena.sys.JenaSubsystemLifecycle; public class InitShex implements JenaSubsystemLifecycle { public InitShex() {} @Override public void start() { } @Override public void stop() { } @Override public int level() { return 96; } }
apache/joshua
1,105
src/main/java/org/apache/joshua/decoder/ff/lm/bloomfilter_lm/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Provides an implementation of a bloom filter language model, and * an associated implementation of the language model feature function typically used in * hierarchical phrase-based decoding for statistical machine translation. */ package org.apache.joshua.decoder.ff.lm.bloomfilter_lm;
apache/kafka
1,070
streams/src/test/java/org/apache/kafka/streams/state/internals/RocksDBTimeOrderedSessionStoreWithoutIndexTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.state.internals; public class RocksDBTimeOrderedSessionStoreWithoutIndexTest extends AbstractSessionBytesStoreTest { @Override StoreType storeType() { return StoreType.RocksDBTimeOrderedSessionStoreWithoutIndex; } }
apache/kafka
1,095
streams/test-utils/src/test/java/org/apache/kafka/streams/TopologyTestDriverEosTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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; import java.util.Collections; public class TopologyTestDriverEosTest extends TopologyTestDriverTest { TopologyTestDriverEosTest() { super(Collections.singletonMap(StreamsConfig.PROCESSING_GUARANTEE_CONFIG, StreamsConfig.EXACTLY_ONCE_V2)); } }
apache/karaf
1,050
examples/karaf-bundle-example/karaf-bundle-example-client/src/main/java/org/apache/karaf/examples/bundle/client/ClientService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.bundle.client; import org.apache.karaf.examples.bundle.common.Booking; import java.util.List; public interface ClientService { List<Booking> bookings(); void addBooking(Booking booking); }
apache/kylin
1,103
src/core-common/src/main/java/org/apache/kylin/common/state/IStateSwitch.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.state; import java.util.Map; public interface IStateSwitch { void init(String instanceName, Map<String, String> initStateMap); void put(String instanceName, String stateName, String stateValue); String get(String instanceName, String stateName); }
apache/logging-log4j2
1,090
log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/ThrowableRenderer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.logging.log4j.core.pattern; /** * Contract for rendering {@link Throwable}s in {@link ThrowablePatternConverter} et al. */ interface ThrowableRenderer { void renderThrowable(final StringBuilder buffer, final Throwable throwable, final String lineSeparator); }
apache/manifoldcf
1,089
connectors/documentum/build-stub/src/main/java/com/documentum/fc/client/IDfUser.java
/* $Id$ */ /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.documentum.fc.client; import com.documentum.fc.common.*; /** Stub interface to allow the connector to build fully. */ public interface IDfUser extends IDfPersistentObject { public String getUserName() throws DfException; public int getUserState() throws DfException; }
apache/maven-assembly-plugin
1,080
src/main/java/org/apache/maven/plugins/assembly/filter/ContainerDescriptorHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.plugins.assembly.filter; import org.codehaus.plexus.archiver.ArchiveFinalizer; import org.codehaus.plexus.components.io.fileselectors.FileSelector; /** * */ public interface ContainerDescriptorHandler extends ArchiveFinalizer, FileSelector {}
apache/maven-plugins
1,079
maven-jmod-plugin/src/it/describe-base-config/src/main/java/myproject/HelloWorld.java
package myproject; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * The classic Hello World App. */ public class HelloWorld { /** * Main method. * * @param args Not used */ public static void main( String[] args ) { System.out.println( "Hello World from JDK 9" ); } }
apache/metamodel
1,103
core/src/main/java/org/apache/metamodel/intercept/DataSetInterceptor.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.metamodel.intercept; import org.apache.metamodel.data.DataSet; /** * An {@link Interceptor} for {@link DataSet}s, allowing to touch, enrich or * modify a dataset before it is returned to the user. */ public interface DataSetInterceptor extends Interceptor<DataSet> { }
apache/metron
1,067
metron-platform/metron-parsing/metron-parsers-common/src/main/java/org/apache/metron/parsers/ParseException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.metron.parsers; public class ParseException extends Exception { public ParseException(String message) { super(message); } public ParseException(String message, Throwable cause) { super(message, cause); } }
apache/mnemonic
1,099
mnemonic-core/src/main/java/org/apache/mnemonic/AddressTranslateError.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.mnemonic; public class AddressTranslateError extends RuntimeException { private static final long serialVersionUID = 1L; /** * construct an error instance * @param s * specify an error information */ public AddressTranslateError(String s) { super(s); } }
apache/nifi
1,053
nifi-stateless/nifi-stateless-bundle/nifi-stateless-engine/src/main/java/org/apache/nifi/stateless/engine/ProcessContextFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.stateless.engine; import org.apache.nifi.connectable.Connectable; import org.apache.nifi.processor.ProcessContext; public interface ProcessContextFactory { ProcessContext createProcessContext(Connectable connectable); }
apache/nifi
1,079
nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionHistory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.controller.status.history; import java.util.List; import java.util.Set; public interface GarbageCollectionHistory { Set<String> getMemoryManagerNames(); List<GarbageCollectionStatus> getGarbageCollectionStatuses(String memoryManagerName); }
apache/openjpa
1,063
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/callbacks/EntityListenerMappedSuperClass.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.callbacks; import jakarta.persistence.EntityListeners; import jakarta.persistence.MappedSuperclass; @MappedSuperclass @EntityListeners({ListenerImpl.class}) public abstract class EntityListenerMappedSuperClass { }
apache/openjpa
1,068
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/embeddable/SharedName2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.inheritance.embeddable; import jakarta.persistence.Embeddable; /** * This class has the same name as {@link * org.apache.openjpa.persistence.inheritance.entity.SharedName2} */ @Embeddable public class SharedName2 { }
apache/openjpa
1,071
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/mapping/bidi/IParent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.jdbc.mapping.bidi; import java.util.Collection; public interface IParent { long getId(); void setId(long id); String getName(); void setName(String name); Collection<Child> getChildren(); void addChild(Child child); }
apache/openjpa
1,086
openjpa-kernel/src/main/java/org/apache/openjpa/enhance/RuntimeUnenhancedClassesModes.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.enhance; /** * Possible values for the <code>openjpa.RuntimeUnenhancedClasses</code> * configuration setting. * * @since 1.0.0 */ public interface RuntimeUnenhancedClassesModes { int SUPPORTED = 0; int UNSUPPORTED = 1; int WARN = 2; }
apache/openwebbeans
1,059
webbeans-impl/src/test/java/org/apache/webbeans/test/component/inject/broken/InstanceInjectedBrokenComponent1.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.component.inject.broken; import jakarta.enterprise.inject.Any; import jakarta.enterprise.inject.Instance; import jakarta.inject.Inject; public class InstanceInjectedBrokenComponent1 { @Inject @Any Instance payment; }
apache/openwebbeans
1,083
webbeans-impl/src/test/java/org/apache/webbeans/test/specalization/multiple/BeanD.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.specalization.multiple; import jakarta.enterprise.inject.Specializes; import jakarta.inject.Named; @Named @Specializes public class BeanD extends BeanC { @Override public Class getBeanClass() { return BeanD.class; } }
apache/ozhera
1,066
ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/IdmResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ozhera.monitor.service.user; import lombok.Data; /** * @author wtt * @version 1.0 * @description * @date 2021/9/6 15:43 */ @Data public class IdmResponse<T> { private Integer code; private String msg; private T data; }
apache/pinot
1,068
pinot-plugins/assembly-descriptor/src/it/projects/simple-assembly/src/main/java/org/apache/pinot/it/Simple.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.it; import java.util.stream.Stream; import org.apache.commons.lang3.StringUtils; public class Simple { public static void main(String[] args) { Stream.of(args).map(StringUtils::upperCase).forEach(System.out::println); } }
apache/pinot
1,081
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/reader/InvertedIndexReader.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.segment.spi.index.reader; import org.apache.pinot.segment.spi.index.IndexReader; public interface InvertedIndexReader<T> extends IndexReader { /** * Returns the document ids for the given dictionary id. */ T getDocIds(int dictId); }
apache/pinot
1,093
pinot-spi/src/main/java/org/apache/pinot/spi/metrics/PinotMetricsRegistryListener.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.spi.metrics; /** * Listeners for events from the registry. Listeners must be thread-safe. */ public interface PinotMetricsRegistryListener { /** * Returned the actual object of MetricsRegistryListener. */ Object getMetricsRegistryListener(); }
apache/polygene-java
1,072
tools/envisage/src/test/java/org/apache/polygene/envisage/school/config/mail/MailConfiguration.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.envisage.school.config.mail; import org.apache.polygene.api.common.UseDefaults; import org.apache.polygene.api.property.Property; public interface MailConfiguration { @UseDefaults Property<String> host(); }
apache/polygene-java
1,079
extensions/reindexer/src/main/java/org/apache/polygene/index/reindexer/ReindexerService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.index.reindexer; import org.apache.polygene.api.mixin.Mixins; import org.apache.polygene.index.reindexer.internal.ReindexerMixin; @Mixins( ReindexerMixin.class ) public interface ReindexerService extends Reindexer { }
apache/pulsar
1,085
pulsar-io/elastic-search/src/test/java/org/apache/pulsar/io/elasticsearch/data/Profile.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.io.elasticsearch.data; import java.util.Date; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class Profile { Integer profileId; Date profileAdded; }
apache/qpid-broker-j
1,079
bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/upgrade/DatabaseRunnable.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.store.berkeleydb.upgrade; import com.sleepycat.je.Database; import com.sleepycat.je.Transaction; public interface DatabaseRunnable { public void run(Database sourceDatabase, Database targetDatabase, Transaction transaction); }
apache/ratis
1,085
ratis-test/src/test/java/org/apache/ratis/server/simulation/TestLeaderElectionWithSimulatedRpc.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.server.simulation; import org.apache.ratis.server.impl.LeaderElectionTests; public class TestLeaderElectionWithSimulatedRpc extends LeaderElectionTests<MiniRaftClusterWithSimulatedRpc> implements MiniRaftClusterWithSimulatedRpc.FactoryGet { }
apache/reef
1,091
lang/java/reef-wake/wake/src/test/java/org/apache/reef/wake/test/remote/TestEvent1.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.reef.wake.test.remote; /** * A test event extending other event. */ public class TestEvent1 extends TestEvent { private static final long serialVersionUID = 1L; public TestEvent1(final String message, final double load) { super(message, load); } }
apache/royale-compiler
1,068
compiler-common/src/main/java/org/apache/royale/compiler/internal/config/localization/ILocalizer.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.royale.compiler.internal.config.localization; import java.util.Locale; /** * Defines the API for looking up localized text. */ public interface ILocalizer { ILocalizedText getLocalizedText( Locale locale, String id ); }
apache/seatunnel
1,043
seatunnel-connectors-v2/connector-prometheus/src/main/java/org/apache/seatunnel/connectors/seatunnel/prometheus/pojo/RangePoint.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.connectors.seatunnel.prometheus.pojo; import lombok.Data; import java.util.List; import java.util.Map; @Data public class RangePoint { private Map<String, String> metric; private List<List> values; }
apache/servicecomb-java-chassis
1,037
demo/demo-springmvc/springmvc-client/src/main/java/org/apache/servicecomb/demo/springmvc/client/SchemeInterfaceSpringmvc.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.demo.springmvc.client; public interface SchemeInterfaceSpringmvc { int add(int a, int b); int reduce(int a, int b); String tailingSlash(int a, int b); String nonTailingSlash(int a, int b); }