repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
google/j2cl
1,044
junit/generator/javatests/com/google/j2cl/junit/integration/stacktrace/data/ThrowsInNativeJs.java
/* * Copyright 2019 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.j2cl.junit.integration.stacktrace.data; import jsinterop.annotations.JsMethod; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** Integration test for stacktraces out of native methods. */ @RunWith(JUnit4.class) public class ThrowsInNativeJs extends StacktraceTestBase { @Test public void test() { throwsInNative(); } @JsMethod public static native void throwsInNative(); }
google/j2cl
1,046
junit/generator/javatests/com/google/j2cl/junit/apt/JUnit4TestCaseWithNonStaticClassMethod.java
/* * Copyright 2022 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.j2cl.junit.apt; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** A simple Unit test to test processing in {@link J2clTestingProcessingStepTest}. */ @RunWith(JUnit4.class) public class JUnit4TestCaseWithNonStaticClassMethod { @SuppressWarnings("JUnit4ClassAnnotationNonStatic") @BeforeClass public void beforeClass() {} @Test public void test() {} }
google/j2cl
1,093
jre/java/java/util/function/IntConsumer.java
/* * Copyright 2015 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 java.util.function; import static javaemul.internal.InternalPreconditions.checkCriticalNotNull; /** * See <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/IntConsumer.html">the * official Java API doc</a> for details. */ @FunctionalInterface public interface IntConsumer { void accept(int value); default IntConsumer andThen(IntConsumer after) { checkCriticalNotNull(after); return value -> { accept(value); after.accept(value); }; } }
google/oss-fuzz
1,087
projects/apache-commons-compress/ArchiverArjFuzzer.java
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// import org.apache.commons.compress.archivers.arj.ArjArchiveInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; public class ArchiverArjFuzzer extends BaseTests { public static void fuzzerTestOneInput(byte[] data) { try { fuzzArchiveInputStream(new ArjArchiveInputStream(new ByteArrayInputStream(data))); } catch (IOException ignored) { } } }
google/sagetv
1,107
third_party/Ogle/java/sage/dvd/hli_t.java
/* * Copyright 2015 The SageTV Authors. All Rights Reserved. * * Adapted from Ogle - A video player * Copyright (C) 2000, 2001 Håkan Hjort * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ package sage.dvd; public class hli_t extends Struct { public hl_gi_t hl_gi = (hl_gi_t) inner(new hl_gi_t()); public btn_colit_t btn_colit = (btn_colit_t) inner(new btn_colit_t()); public btni_t[] btnit = (btni_t[]) array(new btni_t[36]); }
googleapis/gapic-generator
1,067
src/main/java/com/google/api/codegen/config/ProductConfig.java
/* Copyright 2017 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.api.codegen.config; import com.google.common.collect.ImmutableList; /** ProductConfig represents client code-gen config for an API product in an input-agnostic way. */ public interface ProductConfig { String getPackageName(); ImmutableList<String> getCopyrightLines(); ImmutableList<String> getLicenseLines(); InterfaceConfig getInterfaceConfig(InterfaceModel interfaceModel); boolean hasInterfaceConfig(InterfaceModel interfaceModel); }
hibernate/hibernate-demos
974
hibernate-orm/core/Caching/src/main/java/org/hibernate/brmeyer/demo/entity/Skill.java
package org.hibernate.brmeyer.demo.entity; import javax.persistence.Cacheable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.Immutable; /** * The Class Skill. */ @Entity @Immutable @Cacheable @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) public class Skill { /** The id. */ @Id @GeneratedValue private int id; /** The name. */ private String name; /** * Gets the id. * * @return the id */ public int getId() { return id; } /** * Sets the id. * * @param id the new id */ public void setId(int id) { this.id = id; } /** * Gets the name. * * @return the name */ public String getName() { return name; } /** * Sets the name. * * @param name the new name */ public void setName(String name) { this.name = name; } }
hibernate/hibernate-orm
1,033
hibernate-core/src/main/java/org/hibernate/query/NamedQueryValidationException.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.query; import org.hibernate.HibernateException; import org.hibernate.QueryException; import java.util.Map; /** * Indicates that validation and translation of one or more named * queries failed at initialization time. This exception packages * every {@link org.hibernate.QueryException} that occurred for an * invalid HQL/JPQL query, together with any exceptions that indicate * problems with named native SQL queries. * * @author Gavin King */ public class NamedQueryValidationException extends QueryException { private final Map<String, HibernateException> errors; public NamedQueryValidationException(String message, Map<String, HibernateException> errors) { super( message ); this.errors = errors; } /** * A map from query name to the error that occurred while * interpreting or translating the named query. */ public Map<String, HibernateException> getErrors() { return errors; } }
hibernate/hibernate-orm
1,037
hibernate-core/src/main/java/org/hibernate/dialect/type/PostgreSQLOrdinalEnumJdbcType.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.dialect.type; import jakarta.persistence.EnumType; import org.hibernate.dialect.PostgreSQLDialect; import static org.hibernate.type.SqlTypes.NAMED_ORDINAL_ENUM; /** * Represents a named {@code enum} type on PostgreSQL. * <p> * Hibernate does <em>not</em> automatically use this for enums * mapped as {@link EnumType#ORDINAL}, and * instead this type must be explicitly requested using: * <pre> * &#64;JdbcTypeCode(SqlTypes.NAMED_ORDINAL_ENUM) * </pre> * * @see org.hibernate.type.SqlTypes#NAMED_ORDINAL_ENUM * @see PostgreSQLDialect#getEnumTypeDeclaration(String, String[]) * @see PostgreSQLDialect#getCreateEnumTypeCommand(String, String[]) */ public class PostgreSQLOrdinalEnumJdbcType extends PostgreSQLEnumJdbcType { public static final PostgreSQLOrdinalEnumJdbcType INSTANCE = new PostgreSQLOrdinalEnumJdbcType(); @Override public int getDefaultSqlTypeCode() { return NAMED_ORDINAL_ENUM; } }
hibernate/hibernate-orm
1,040
hibernate-core/src/main/java/org/hibernate/annotations/CollectionIdJavaClass.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.annotations; import org.hibernate.Incubating; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Specifies the Java class to use for the {@linkplain CollectionId id} of an id-bag mapping. * An alternative to {@linkplain CollectionIdJavaType}. E.g. * * <pre> * &#64;Bag * &#64;CollectionId(generator="increment") * &#64;CollectionIdJavaClass(Integer.class) * Collection&lt;Person&gt; authors; * </pre> * * @since 7.1 * * @author Steve Ebersole */ @Incubating @Target({METHOD, FIELD, ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface CollectionIdJavaClass { /** * The Java class to use as the collection-id. */ Class<?> idType(); }
hibernate/hibernate-orm
1,047
hibernate-core/src/main/java/org/hibernate/annotations/NotFoundAction.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.annotations; /** * Specifies how Hibernate should handle the case of an orphaned foreign * key with no associated row in the referenced table. This is a situation * that can only occur in a database with missing foreign key constraints. * <p> * When a database lacks foreign key constraints, it's normal for it to * accumulate data with referential integrity violations over time. * Alternatively, this situation is also sometimes encountered in legacy * foreign key schemes where some "magic value", instead of {@code NULL}, * indicates a missing reference. * * @see NotFound * * @author Emmanuel Bernard */ public enum NotFoundAction { /** * Raise an exception when a foreign key value has no corresponding * primary key value in the referenced table. */ EXCEPTION, /** * Treat a foreign key value with no corresponding primary key value * in the referenced table as a null reference. */ IGNORE }
openjdk/apidiff
1,110
test/junit/apitest/package-info.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /** * Tests for the "apidiff" tool. */ package apitest;
openjdk/jdk8
1,079
langtools/test/tools/javac/processing/model/util/directSupersOfErr/C1.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ class C1 extends Bogus { }
openjdk/jdk8
1,080
jdk/test/java/rmi/server/RMIClassLoader/noSecurityManager/LocalDummy.java
/* * Copyright (c) 1998, 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 LocalDummy { }
openjdk/jdk8
1,084
langtools/test/tools/javac/processing/warnings/UseImplicit/p/C2.java
/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p; public class C2 { }
openjdk/jdk8
1,095
langtools/test/com/sun/javadoc/AccessAsciiArt/p1/SC.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p1; public class SC extends C { }
openjdk/jdk8
1,099
langtools/test/tools/javac/ImportUnnamed/foo/A.java
/* * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ import Dummy; class A { Dummy x = null; }
openjdk/jdk8
1,105
langtools/test/tools/javac/6948381/npe/A.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package npe; import npe.B.*; public interface A {}
openjdk/jdk8
1,105
langtools/test/tools/javac/api/guide/TestMe.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ class TestMe extends Old {} @Deprecated class Old {}
openjdk/jtreg
1,102
test/modlibs/mainAction/usermods/RunUserMod.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 * @run main um1/um1_p1.um1_p1_M1 */
oracle/coherence
1,055
prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Lshr.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.dev.assembler; import java.io.IOException; import java.io.DataInput; import java.io.DataOutput; /** * The LSHR simple op right-shifts the bits of the second long in the stack * by the number specified by the first integer in the stack. * <p><code><pre> * JASM op : LSHR (0x7b) * JVM byte code(s): LSHR (0x7b) * Details : * </pre></code> * * @version 0.50, 06/12/98, assembler/dis-assembler * @author Cameron Purdy */ public class Lshr extends Op implements Constants { // ----- constructors --------------------------------------------------- /** * Construct the op. */ public Lshr() { super(LSHR); } // ----- data members --------------------------------------------------- /** * The name of this class. */ private static final String CLASS = "Lshr"; }
oracle/nosql
1,064
kvmain/src/main/java/oracle/kv/impl/async/exception/ContextWriteException.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.exception; import oracle.kv.impl.async.DialogContext; /** * This exception is while calling {@link DialogContext#write}. */ public abstract class ContextWriteException extends RuntimeException implements GetUserException { private static final long serialVersionUID = 1L; /** * Constructs the exception. * * @param message the message of the exception * @param cause the cause of the exception */ protected ContextWriteException(String message, Throwable cause) { super(message, cause); } }
oracle/nosql
1,089
kvmain/src/main/java/oracle/kv/table/MapDef.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.table; /** * MapDef is an extension of {@link FieldDef} to define an unordered map, where * all entries are constrained to a single type. Map keys are case-sensitive. * * @since 3.0 */ public interface MapDef extends FieldDef { /** * @return the definition of the type of object stored in the map */ FieldDef getElement(); /** * @return a deep copy of this object */ @Override public MapDef clone(); /** * @hidden * For internal use only. * @return the definition type of the key */ FieldDef getKeyDefinition(); }
apache/commons-rng
1,038
commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/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 an application for interfacing with external * software that perform stringent tests to check the uniformity of * the sequences being passed to them. */ package org.apache.commons.rng.examples.stress;
apache/ctakes
1,052
ctakes-smoking-status/src/main/java/org/apache/ctakes/smokingstatus/util/ClassifiableEntry.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ctakes.smokingstatus.util; public class ClassifiableEntry { public String iv_recordID; public int iv_begin; public int iv_end; public String iv_text; public String iv_classification = null; // optional }
apache/ctakes
1,072
ctakes-core/src/main/java/org/apache/ctakes/core/fsm/machine/FSM.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ctakes.core.fsm.machine; import java.util.List; import java.util.Set; /** * Any finate state machine defined must implement this interface * @author M039575 * */ public interface FSM { public Set execute(List data) throws Exception; }
apache/cxf
1,049
rt/rs/description/src/test/java/org/apache/cxf/jaxrs/model/wadl/jaxb/packageinfo/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. */ @jakarta.xml.bind.annotation.XmlSchema(namespace = "http://superbooks", xmlns = { @XmlNs(prefix = "os", namespaceURI = "http://superbooks") }) package org.apache.cxf.jaxrs.model.wadl.jaxb.packageinfo; import jakarta.xml.bind.annotation.XmlNs;
apache/cxf
1,055
rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/SearchConditionParser.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.jaxrs.ext.search; /** * Search Expression Parser converts an expression into SearchCondition. */ public interface SearchConditionParser<T> { SearchCondition<T> parse(String searchExpression) throws SearchParseException; }
apache/cxf
1,065
tools/javato/ws/src/test/java/org/apache/cxf/tools/fortest/exception/OrderEcho.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.tools.fortest.exception; import jakarta.jws.WebService; @WebService(targetNamespace = "http://cxf.apache.org/test/HelloService", name = "HelloService") public interface OrderEcho { String echo(String request) throws OrderException; }
apache/cxf
1,067
tools/javato/ws/src/test/java/org/apache/cxf/tools/fortest/exception/Echo3.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.tools.fortest.exception; import jakarta.jws.WebService; @WebService(targetNamespace = "http://cxf.apache.org/test/HelloService", name = "HelloService") public interface Echo3 { String echo(OrderItem request) throws OrderException2; }
apache/cxf
1,070
rt/management/src/test/java/org/apache/cxf/management/jmx/HelloWorld.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.management.jmx; public class HelloWorld implements HelloWorldMBean { private String name; public HelloWorld(String name) { this.name = name; } public String sayHi() { return "Wazzzuuup " + this.name; } }
apache/derby
1,054
java/org.apache.derby.commons/org/apache/derby/shared/common/reference/ContextId.java
/* Derby - Class org.apache.derby.shared.common.reference.ContextId Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.derby.shared.common.reference; public interface ContextId { String LANG_CONNECTION = "LanguageConnectionContext"; String LANG_STATEMENT = "StatementContext"; }
apache/directory-server
1,042
protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/options/misc/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 miscellaneous options for the DHCP protocol. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.dhcp.options.misc;
apache/directory-server
1,046
protocol-dns/src/main/java/org/apache/directory/server/dns/io/decoder/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 the decoders for DNS messages and resource records. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.dns.io.decoder;
apache/directory-server
1,046
protocol-dns/src/main/java/org/apache/directory/server/dns/io/encoder/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 the encoders for DNS messages and resource records. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.dns.io.encoder;
apache/dolphinscheduler
1,031
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/event/AbstractListenerEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.dao.entity.event; import org.apache.dolphinscheduler.common.enums.ListenerEventType; public interface AbstractListenerEvent { ListenerEventType getEventType(); String getTitle(); }
apache/doris-flink-connector
1,038
flink-doris-connector/src/main/java/org/apache/doris/flink/exception/StreamLoadException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.flink.exception; public class StreamLoadException extends Exception { public StreamLoadException() { super(); } public StreamLoadException(String message) { super(message); } }
apache/doris-manager
1,026
manager/general/src/main/java/org/apache/doris/stack/exception/InputFormatException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 InputFormatException extends Exception { public static final String MESSAGE = "输入格式错误,请重新输入"; public InputFormatException() { super(MESSAGE); } }
apache/doris-manager
1,026
manager/general/src/main/java/org/apache/doris/stack/exception/InputLengthException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 InputLengthException extends Exception { public static final String MESSAGE = "输入长度错误,请重新输入"; public InputLengthException() { super(MESSAGE); } }
apache/doris-manager
1,027
manager/general/src/main/java/org/apache/doris/stack/exception/UserNotExistException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 UserNotExistException extends Exception { public static final String MESSAGE = "用户不存在,请重新输入"; public UserNotExistException() { super(MESSAGE); } }
apache/druid
1,063
processing/src/main/java/org/apache/druid/collections/spatial/BaseImmutableRTee.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.collections.spatial; import org.apache.druid.collections.bitmap.ImmutableBitmap; import org.apache.druid.collections.spatial.search.Bound; public interface BaseImmutableRTee { Iterable<ImmutableBitmap> search(Bound bound); }
apache/dubbo
1,051
dubbo-rpc/dubbo-rpc-triple/src/test/java/org/apache/dubbo/rpc/protocol/tri/ClassLoadUtilTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.protocol.tri; import org.junit.jupiter.api.Test; class ClassLoadUtilTest { @Test void switchContextLoader() { ClassLoadUtil.switchContextLoader(Thread.currentThread().getContextClassLoader()); } }
apache/fineract
1,058
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/data/GLAType.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.test.data; public enum GLAType { ASSET(1), // LIABILITY(2), // EQUITY(3), // INCOME(4), // EXPENSE(5); // public final Integer value; GLAType(Integer value) { this.value = value; } }
apache/flink-connector-jdbc
1,030
flink-connector-jdbc-core/src/test/java/org/apache/flink/connector/jdbc/fakedb/driver/FakeConnection1.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.connector.jdbc.fakedb.driver; import java.util.Properties; /** Sql connection created by {@link FakeDriver1#connect(String, Properties)}. */ public class FakeConnection1 extends FakeConnection {}
apache/flink-connector-jdbc
1,030
flink-connector-jdbc-core/src/test/java/org/apache/flink/connector/jdbc/fakedb/driver/FakeConnection2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.connector.jdbc.fakedb.driver; import java.util.Properties; /** Sql connection created by {@link FakeDriver2#connect(String, Properties)}. */ public class FakeConnection2 extends FakeConnection {}
apache/flink-connector-jdbc
1,030
flink-connector-jdbc-core/src/test/java/org/apache/flink/connector/jdbc/fakedb/driver/FakeConnection3.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.connector.jdbc.fakedb.driver; import java.util.Properties; /** Sql connection created by {@link FakeDriver3#connect(String, Properties)}. */ public class FakeConnection3 extends FakeConnection {}
apache/flink-ml
1,064
flink-ml-lib/src/main/java/org/apache/flink/ml/feature/lsh/MinHashLSHParams.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.ml.feature.lsh; import org.apache.flink.ml.common.param.HasSeed; /** * Params for {@link MinHashLSH}. * * @param <T> The class type of this instance. */ public interface MinHashLSHParams<T> extends LSHParams<T>, HasSeed<T> {}
apache/flink-statefun
1,035
statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/common/KeyBy.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.statefun.flink.core.common; import org.apache.flink.statefun.sdk.Address; public final class KeyBy { private KeyBy() {} public static String apply(Address address) { return address.id(); } }
apache/flink
1,062
flink-runtime/src/main/java/org/apache/flink/streaming/api/lineage/LineageEdge.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.flink.streaming.api.lineage; import org.apache.flink.annotation.PublicEvolving; /** Lineage edge from source to sink. */ @PublicEvolving public interface LineageEdge { SourceLineageVertex source(); LineageVertex sink(); }
apache/freemarker
1,065
freemarker-core/src/main/java/freemarker/ext/beans/SuppressFBWarnings.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package freemarker.ext.beans; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.CLASS) @interface SuppressFBWarnings { String[] value() default {}; String justification() default ""; }
apache/geaflow
1,035
geaflow-console/app/core/model/src/main/java/org/apache/geaflow/console/core/model/data/GeaflowInstance.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.core.model.data; import lombok.Getter; import lombok.Setter; import org.apache.geaflow.console.core.model.GeaflowName; @Getter @Setter public class GeaflowInstance extends GeaflowName { }
apache/geaflow
1,045
geaflow/geaflow-state/geaflow-state-api/src/main/java/org/apache/geaflow/state/StaticVertexState.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.state; import org.apache.geaflow.model.graph.vertex.IVertex; public interface StaticVertexState<K, VV, EV> extends StaticQueryableState<K, VV, EV, IVertex<K, VV>>, RevisableState<K, IVertex<K, VV>> { }
apache/geode
1,062
geode-core/src/main/java/org/apache/geode/internal/process/ProcessUtilsProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.process; /** * Defines the SPI for ProcessUtils */ public interface ProcessUtilsProvider { boolean isProcessAlive(final int pid); boolean killProcess(final int pid); boolean isAvailable(); boolean isAttachApiAvailable(); }
apache/gobblin
1,056
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/ddm/work/styles/JobStateful.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.temporal.ddm.work.styles; import org.apache.hadoop.fs.Path; /** Marks a type that can indicate a {@link org.apache.gobblin.runtime.JobState} via its {@link Path} */ public interface JobStateful { Path getJobStatePath(); }
apache/groovy
1,051
subprojects/groovy-json/src/main/java/org/apache/groovy/json/DefaultFastStringServiceFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.groovy.json; public class DefaultFastStringServiceFactory implements FastStringServiceFactory { @Override public FastStringService getService() { return new DefaultFastStringService(); } }
apache/groovy
1,059
src/test/groovy/org/codehaus/groovy/classgen/asm/sc/bugs/support/Groovy7365Support.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.codehaus.groovy.classgen.asm.sc.bugs.support; import java.util.LinkedHashSet; import java.util.Set; public class Groovy7365Support<A, B> { public Set<String> getStrings() { return new LinkedHashSet<>(); } }
apache/hadoop-common
1,045
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/FairCallQueueMXBean.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.ipc; public interface FairCallQueueMXBean { // Get the size of each subqueue, the index corrosponding to the priority // level. int[] getQueueSizes(); long[] getOverflowedCalls(); int getRevision(); }
apache/hadoop-common
1,047
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/local/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.LimitedPrivate({"HDFS", "MapReduce"}) @InterfaceStability.Unstable package org.apache.hadoop.fs.local; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hadoop
1,057
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/TrueCopyFilter.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.tools; import org.apache.hadoop.fs.Path; /** * A CopyFilter which always returns true. * */ public class TrueCopyFilter extends CopyFilter { @Override public boolean shouldCopy(Path path) { return true; } }
apache/hadoop
1,059
hadoop-tools/hadoop-compat-bench/src/main/java/org/apache/hadoop/fs/compat/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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * HdfsCompatibility is a benchmark tool to quickly assess availabilities * of Hadoop-Compatible File System APIs defined in * {@link org.apache.hadoop.fs.FileSystem} for a specific FS implementation. */ package org.apache.hadoop.fs.compat;
apache/harmony
1,043
classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/OtherEditor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Maxim V. Berkultsev */ package org.apache.harmony.beans.tests.support; import java.beans.PropertyEditorSupport; /** * @author Maxim V. Berkultsev */ public class OtherEditor extends PropertyEditorSupport { }
apache/harmony
1,066
classlib/modules/annotation/src/main/java/java/lang/annotation/Inherited.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package java.lang.annotation; /** * Defines a meta-annotation for indicating that an annotation is automatically * inherited. * * @since 1.5 */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.ANNOTATION_TYPE) public @interface Inherited { }
apache/helix
1,073
helix-core/src/main/java/org/apache/helix/manager/zk/ZkAsyncCallbacks.java
package org.apache.helix.manager.zk; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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 class has been deprecated. Please use ZkAsyncCallbacks in zookeeper-api module instead. */ @Deprecated public class ZkAsyncCallbacks extends org.apache.helix.zookeeper.zkclient.callback.ZkAsyncCallbacks { }
apache/hudi
1,058
hudi-common/src/main/java/org/apache/hudi/exception/InvalidHoodieFileNameException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hudi.exception; public class InvalidHoodieFileNameException extends HoodieException { public InvalidHoodieFileNameException(String fileName, String type) { super("Invalid fileName " + fileName + " of type " + type); } }
apache/ignite-3
1,060
modules/raft-api/src/main/java/org/apache/ignite/internal/raft/RaftError.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.raft; /** * Raft error code. */ public enum RaftError { /** Success, no error. */ SUCCESS, /** Catchup failed. */ ECATCHUP, /** Permission issue. */ EPERM, /** Other issues. */ OTHER }
apache/ignite
1,052
modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpiSslSelfTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.spi.discovery.tcp; /** * TCP discovery spi test with SSL. */ public class TcpDiscoverySpiSslSelfTest extends TcpDiscoverySpiSelfTest { /** */ public TcpDiscoverySpiSslSelfTest() { useSsl = true; } }
apache/incubator-datalab
1,040
services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/RestartAnswer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES 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.properties; import lombok.Builder; import lombok.Data; @Data @Builder public class RestartAnswer { private boolean billingSuccess; private boolean provservSuccess; private String endpoint; }
apache/incubator-datalab
1,049
services/datalab-webapp-common/src/main/java/com/epam/datalab/properties/YmlDTO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES 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.properties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Data; @Data public class YmlDTO { @JsonIgnoreProperties private String endpointName; private String ymlString; }
apache/incubator-hugegraph-computer
1,036
computer/computer-api/src/main/java/org/apache/hugegraph/computer/core/graph/id/Id.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package org.apache.hugegraph.computer.core.graph.id; import org.apache.hugegraph.computer.core.graph.value.Value.Tvalue; public interface Id extends Tvalue<Object> { IdType idType(); int length(); Object asObject(); }
apache/incubator-kie-drools
1,049
drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.model; import org.drools.model.functions.Function1; public interface BetaIndex<A, B, V> extends BetaIndexN<A, V> { Function1<B, ?> getRightOperandExtractor(); default int getArity() { return 1; } }
apache/incubator-kie-drools
1,063
drools-base/src/main/java/org/drools/base/phreak/ReactiveObject.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.base.phreak; import java.util.Collection; import org.drools.base.reteoo.BaseTuple; public interface ReactiveObject { void addTuple(BaseTuple tuple); void removeTuple(BaseTuple tuple); Collection<BaseTuple> getTuples(); }
apache/incubator-kie-kogito-apps
1,027
jobs-service/jobs-service-internal-api/src/main/java/org/kie/kogito/jobs/service/model/Recipient.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.jobs.service.model; import org.kie.kogito.jobs.service.api.PayloadData; public interface Recipient { <T extends PayloadData> org.kie.kogito.jobs.service.api.Recipient<T> getRecipient(); }
apache/incubator-kie-optaplanner
1,028
optaplanner-examples/src/main/java/org/optaplanner/examples/common/persistence/jackson/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. */ /** * Contains classes necessary in order to maintain a consistent JSON model with referential integrity and as little * object duplication as possible. */ package org.optaplanner.examples.common.persistence.jackson;
apache/incubator-seata
1,039
sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidLoader.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seata.sqlparser.druid; import java.net.URL; /** * ggndnn */ interface DruidLoader { /** * Gets embedded druid.jar * * @return embedded druid.jar url */ URL getEmbeddedDruidLocation(); }
apache/incubator-seata
1,062
common/src/test/java/org/apache/seata/common/loader/ChineseHello.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seata.common.loader; /** * The type Chinese hello. * */ @LoadLevel(name = "ChineseHello", order = Integer.MIN_VALUE) public class ChineseHello implements Hello { @Override public String say() { return "ni hao!"; } }
apache/inlong
1,050
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/encode/SinkData.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.sdk.transform.encode; import java.util.List; /** * SinkData * */ public interface SinkData { void addField(String fieldName, String fieldValue); String getField(String fieldName); List<String> keyList(); }
apache/jackrabbit-filevault
1,040
vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/context/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 common implementations of {@link org.apache.jackrabbit.vault.validation.spi.ValidationContext} */ @Version("1.2.0") package org.apache.jackrabbit.vault.validation.context; import org.osgi.annotation.versioning.Version;
apache/jackrabbit-oak
1,046
oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/IndexStatistics.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.jackrabbit.oak.plugins.index.search; /** * Reports index statistics (for example, how many entries does the index contain). */ public interface IndexStatistics { int numDocs(); int getDocCountFor(String key); }
apache/jackrabbit-oak
1,057
oak-core/src/main/java/org/apache/jackrabbit/oak/query/stats/QueryStatsReporter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jackrabbit.oak.query.stats; import org.apache.jackrabbit.oak.query.stats.QueryStatsData.QueryExecutionStats; public interface QueryStatsReporter { QueryExecutionStats getQueryExecution(String statement, String language); }
apache/jackrabbit
1,068
jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/TestAll.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jackrabbit.test; import junit.framework.TestCase; import junit.framework.Test; import org.apache.jackrabbit.test.JCRTestSuite; public class TestAll extends TestCase { public static Test suite() { return new JCRTestSuite(); } }
apache/jclouds
1,058
providers/azureblob/src/main/java/org/jclouds/azure/storage/domain/BoundedSet.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.azure.storage.domain; import java.net.URI; import java.util.Set; public interface BoundedSet<T> extends Set<T> { URI getUrl(); String getPrefix(); String getMarker(); int getMaxResults(); String getNextMarker(); }
apache/jclouds
1,065
providers/profitbricks/src/main/java/org/jclouds/profitbricks/domain/OsType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.profitbricks.domain; import com.google.common.base.Enums; public enum OsType { WINDOWS, LINUX, OTHER, UNRECOGNIZED; public static OsType fromValue(String v) { return Enums.getIfPresent(OsType.class, v).or(UNRECOGNIZED); } }
apache/jena
1,069
jena-arq/src/test/java/org/apache/jena/riot/system/irix/TS_IRIxProviders.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.riot.system.irix; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; @Suite @SelectClasses({ TestIRIxRIOT_iri3986.class, TestIRIxRIOT_JenaIRI.class }) public class TS_IRIxProviders {}
apache/jena
1,072
jena-core/src/main/java/org/apache/jena/shared/NoReaderForLangException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.shared; /** Exception to throw when there is no reader with the specified language */ public class NoReaderForLangException extends JenaException { public NoReaderForLangException( String lang ) { super( lang ); } }
apache/jena
1,076
jena-core/src/main/java/org/apache/jena/shared/BadBooleanException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.shared; /** Exception to throw when a string cannot be converted to a Boolean value. */ public class BadBooleanException extends JenaException { public BadBooleanException( String spelling ) { super( spelling ); } }
apache/jmeter
1,066
src/functions/src/test/java/org/apache/jmeter/functions/TestJexl3Function.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jmeter.functions; import org.junit.jupiter.api.BeforeEach; public class TestJexl3Function extends TestJexl2Function { @BeforeEach @Override public void setUp() { super.setUp(); function = new Jexl3Function(); } }
apache/karaf
1,059
shell/core/src/main/java/org/apache/karaf/shell/support/completers/CommandsCompleter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.shell.support.completers; import org.apache.karaf.shell.api.console.Completer; /** * Marker class. An instance of this class is published by the console. */ public abstract class CommandsCompleter implements Completer { }
apache/kylin
1,059
src/core-metadata/src/main/java/org/apache/kylin/metadata/model/ISegmentAdvisor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.metadata.model; public interface ISegmentAdvisor { boolean isOffsetCube(); SegmentRange getSegRange(); void setSegRange(SegmentRange range); TimeRange getTSRange(); void setTSRange(TimeRange range); }
apache/logging-log4j2
1,049
log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/junit/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. */ /** * JUnit helper classes and TestRules. * @see org.junit.rules.TestRule */ @Export @Version("2.23.1") package org.apache.logging.log4j.core.test.junit; import org.osgi.annotation.bundle.Export; import org.osgi.annotation.versioning.Version;
apache/lucene
1,055
lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/TableColumnInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.lucene.luke.app.desktop.components; /** Holder of table column attributes */ public interface TableColumnInfo { String getColName(); int getIndex(); Class<?> getType(); default int getColumnWidth() { return 0; } }
apache/lucene
1,064
lucene/luke/src/java/org/apache/lucene/luke/models/documents/DocumentsFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.lucene.luke.models.documents; import org.apache.lucene.index.IndexReader; /** Factory of {@link Documents} */ public class DocumentsFactory { public Documents newInstance(IndexReader reader) { return new DocumentsImpl(reader); } }
apache/nifi-registry
1,032
nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/link/LinkBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.registry.web.link; import javax.ws.rs.core.Link; /** * Creates a Link for a given type. * * @param <T> the type to create a link for */ public interface LinkBuilder<T> { Link createLink(T t); }
apache/nifi
1,031
nifi-manifest/nifi-extension-manifest-model/src/main/java/org/apache/nifi/extension/manifest/ExtensionType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.extension.manifest; /** * Possible types of extensions. */ public enum ExtensionType { PROCESSOR, CONTROLLER_SERVICE, REPORTING_TASK, FLOW_ANALYSIS_RULE, PARAMETER_PROVIDER; }
apache/openwebbeans
1,031
webbeans-impl/src/test/java/org/apache/webbeans/test/interceptors/inheritance/DeckStereotypedGrandchild.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.interceptors.inheritance; import jakarta.enterprise.context.RequestScoped; import jakarta.inject.Named; @RequestScoped @Named public class DeckStereotypedGrandchild extends DeckStereotyped { }
apache/ozone
1,051
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/symmetric/SecretKeyClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.hdds.security.symmetric; /** * Composite client for those components that need to perform both signing * and verifying. */ public interface SecretKeyClient extends SecretKeySignerClient, SecretKeyVerifierClient { }
apache/paimon
1,078
paimon-common/src/main/java/org/apache/paimon/utils/SerBiFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.paimon.utils; import java.io.Serializable; import java.util.function.BiFunction; /** A {@link BiFunction} that is also {@link Serializable}. */ @FunctionalInterface public interface SerBiFunction<T, U, R> extends BiFunction<T, U, R>, Serializable {}
apache/pdfbox
1,068
fontbox/src/main/java/org/apache/fontbox/ttf/gsub/GlyphArraySplitter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.fontbox.ttf.gsub; import java.util.List; /** * This class splits an array of GlyphIds with a prospective match. * * @author Palash Ray * */ public interface GlyphArraySplitter { List<List<Integer>> split(List<Integer> glyphIds); }
apache/polaris
1,063
runtime/spark-tests/src/intTest/java/org/apache/polaris/service/spark/it/SparkIT.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.polaris.service.spark.it; import io.quarkus.test.junit.QuarkusIntegrationTest; import org.apache.polaris.service.it.test.PolarisSparkIntegrationTest; @QuarkusIntegrationTest public class SparkIT extends PolarisSparkIntegrationTest {}
apache/polygene-java
1,059
core/bootstrap/src/main/java/org/apache/polygene/bootstrap/ObjectAssembly.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.bootstrap; import org.apache.polygene.api.type.HasTypes; /** * This represents the assembly information of a single object type in a Module. */ public interface ObjectAssembly extends HasTypes { }
apache/pulsar
1,053
pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/windowing/WindowUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.functions.windowing; public class WindowUtils { public static String getFullyQualifiedName(String tenant, String namespace, String name) { return String.format("%s/%s/%s", tenant, namespace, name); } }