repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
hibernate/hibernate-search
1,113
mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/bridge/mapping/programmatic/IdentifierBinder.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.search.mapper.pojo.bridge.mapping.programmatic; import org.hibernate.search.mapper.pojo.bridge.IdentifierBridge; import org.hibernate.search.mapper.pojo.bridge.binding.IdentifierBindingContext; /** * A binder from a POJO property to a document identifier. * <p> * This binder takes advantage of provided metadata * to pick, configure and create a {@link IdentifierBridge}. * * @see IdentifierBridge */ public interface IdentifierBinder { /** * Binds a POJO property to a document identifier. * <p> * The context passed in parameter provides various information about the identifier being bound. * Implementations are expected to take advantage of that information * and to call one of the {@code bridge(...)} methods on the context * to set the bridge. * * @param context A context object providing information about the identifier being bound, * and expecting a call to one of its {@code bridge(...)} methods. */ void bind(IdentifierBindingContext<?> context); }
openjdk/jdk8
1,160
jdk/test/java/io/Serializable/InvalidClassException/noargctor/Serialize/SamePackageCtor.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. */ /* * @bug 4093279 */ package Serialize; public class SamePackageCtor { SamePackageCtor() { } };
openjdk/jdk8
1,184
langtools/test/com/sun/javadoc/testHiddenMembers/pkg/BaseClass.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 pkg; public class BaseClass { public int pubField = 1; public class pubInnerClass{} public void pubMethod() {} }
openjdk/jdk8
1,189
langtools/test/tools/javac/diags/examples/CantAssignToFinal.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ // key: compiler.err.cant.assign.val.to.final.var class CantAssignToFinal { final int i = 0; void m() { i = 3; } }
openjdk/jdk8
1,190
langtools/test/com/sun/javadoc/testSimpleTagExclude/DummyClass.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. */ /****************************** * @todo Remember to implement * this class. ******************************/ public class DummyClass {}
openjdk/jdk8
1,191
langtools/test/tools/javac/diags/examples/PathElementNotFound.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ // key: compiler.warn.path.element.not.found // options: -Xlint:path -classpath DoesNotExist // run: simple class PathElementNotFound { }
openjdk/jdk8
1,192
jdk/test/java/lang/instrument/BootClassPath/AgentSupport.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * * * Used by BootClassPath.sh - supporting class for java agent. */ public class AgentSupport { public AgentSupport() { } }
openjdk/jdk8
1,200
langtools/test/tools/doclint/html/TextNotAllowed.java
/* * @test /nodynamiccopyright/ * @bug 8004832 * @summary Add new doclint package * @library .. * @build DocLintTester * @run main DocLintTester -ref TextNotAllowed.out TextNotAllowed.java */ /** * <dl> abc <dt> term </dt> def <dd> description </dd> ghi </dl> * <ol> abc <li> item </li> def <li> item </li> ghi </ol> * <ul> abc <li> item </li> def <li> item </li> ghi </ul> * * <table summary=description> abc </table> * <table summary=description> <thead> abc </thead> </table> * <table summary=description> <tbody> abc </tbody> </table> * <table summary=description> <tfoot> abc </tfoot> </table> * <table summary=description> <tr> abc </tr> </table> * * <dl> &amp; <dt> term </dt> &lt; <dd> description </dd> &gt; </dl> * <ol> &amp; <li> item </li> &lt; <li> item </li> &gt; </ol> * <ul> &amp; <li> item </li> &lt; <li> item </li> &gt; </ul> * * <table summary=description> &amp; </table> * <table summary=description> <thead> &amp; </thead> </table> * <table summary=description> <tbody> &amp; </tbody> </table> * <table summary=description> <tfoot> &amp; </tfoot> </table> * <table summary=description> <tr> &amp; </tr> </table> * */ public class TextNotAllowed { }
openjdk/jdk8
1,210
jdk/test/sun/security/tools/keytool/i18n.java
/* * Copyright (c) 2000, 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. */ // This trivial file is only necessary to display instructions and "pass/fail" // buttons for a manual test. public class i18n extends java.applet.Applet { }
openjdk/jtreg
1,222
test/notRunTests/PassTest.java
/* * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @summary Passed */ public class PassTest { public static void main(String ... args) throws Exception { // this test should always pas } }
openjdk/jtreg
1,222
test/timelimit/Medium.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. */ /* * @test * @run main/timeout=200 Medium */ public class Medium { public static void main(String... args) { System.err.println("Hello World!"); } }
oracle/coherence
1,163
prj/coherence-json/src/test/java/common/data/JavaNumberType.java
/* * Copyright (c) 2019, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package common.data; import jakarta.json.bind.annotation.JsonbProperty; public class JavaNumberType { // ----- constructors --------------------------------------------------- @SuppressWarnings("unused") public JavaNumberType() { } public JavaNumberType(Number number) { m_nNumber = number; m_oProperty = number; } // ----- Object methods ------------------------------------------------- @Override public boolean equals(Object o) { if (o instanceof JavaNumberType) { JavaNumberType that = (JavaNumberType) o; return m_nNumber.longValue() == that.m_nNumber.longValue(); } return false; } // ----- data members --------------------------------------------------- @JsonbProperty("numberProperty") protected Number m_nNumber; @JsonbProperty("objectProperty") protected Object m_oProperty; }
oracle/json-in-db
1,172
JdbcExamples/src/main/java/movie/UpdateTransform.java
package movie; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import oracle.ucp.jdbc.PoolDataSource; import oracle.ucp.jdbc.PoolDataSourceFactory; /** * Performs a partial update using JSON_TRANSFORM. * * <p> * Run first: {@link CreateTable}, {@link Insert} * </p> */ public class UpdateTransform { public static void main(String[] args) throws SQLException { PoolDataSource pool = PoolDataSourceFactory.getPoolDataSource(); pool.setURL(String.join("", args)); pool.setConnectionFactoryClassName("oracle.jdbc.pool.OracleDataSource"); try (Connection con = pool.getConnection()) { PreparedStatement stmt = con.prepareStatement( "UPDATE movie m " + "SET m.data = JSON_TRANSFORM(m.data, SET '$.gross' = :1) " + "WHERE m.data.name.string() = :2"); stmt.setInt(1, 1_000_000_000); stmt.setString(2, "Iron Man"); stmt.execute(); System.out.println("Movie has been updated!"); } } }
oracle/nosql
1,173
httpproxy/httpproxy/src/main/java/oracle/nosql/util/fault/RequestFault.java
/*- * Copyright (C) 2011, 2020 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.nosql.util.fault; /** * Identifies faults (Exceptions or Errors) whose fault domain can be * restricted to the request that was being processed at the time the fault was * encountered. The server state is not impacted by the fault and can continue * processing other requests. */ public interface RequestFault { /** * Returns the ErrorCode to be associated with this fault. It must not be * null. */ ErrorCode getError(); /** * Returns true if an alert needs to be logged for the fault. Implementors * of the interface may override this method as appropriate. */ default boolean needsAlert() { return false; } }
oracle/oci-java-sdk
1,174
bmc-common-httpclient/src/main/java/com/oracle/bmc/http/client/InternalSdk.java
/** * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ package com.oracle.bmc.http.client; /** * Annotation to indicate a class or method is only meant for internal SDK usage, and may * break/change without notice. * * <p>Classes or methods with this annotation generally appear in non-'internal' packages so that * they show up for documentation but are not intended to for consumers to actually use. * * <p>Note, by convention, any class with 'internal' in the package name is not intended for * consumers to directly use, regardless of whether or not it contains this annotation. */ public @interface InternalSdk { /** * If set to true, backward compatibility should be maintained, even though this is internal SDK * code. * * @return true if backward compatibility should be maintained */ boolean backwardCompatibilityRequired() default false; }
apache/commons-lang
1,176
src/test/java/org/apache/commons/lang3/reflect/Lang1703Test.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.lang3.reflect; import org.junit.jupiter.api.Test; /** * A top-level class is parameterised using itself. * * @param <U> itself */ public class Lang1703Test<U extends Lang1703Test<U>> { @Test void testStackOverflowError() { // causes a java.lang.StackOverflowError TypeUtils.toString(Lang1703Test.class); } }
apache/cxf
1,114
distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/hello1/HelloServiceImpl1.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package sample.rs.service.hello1; import org.springframework.stereotype.Service; import sample.rs.service.HelloService; @Service public class HelloServiceImpl1 implements HelloService { public String sayHello(String a) { return "Hello " + a + ", Welcome to CXF RS Spring Boot World!!!"; } }
apache/cxf
1,148
rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/visitor/SBThreadLocalVisitorState.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.visitor; /** * Simple thread local storage implementation for helping * search condition visitors to access its state across multiple * visit calls when a given visitor is not created on per-request basis. */ public class SBThreadLocalVisitorState extends ThreadLocalVisitorState<StringBuilder> { }
apache/cxf
1,155
systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/context/CustomContextImpl.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.systests.cdi.base.context; import org.apache.cxf.message.Message; public class CustomContextImpl implements CustomContext { private final Message message; public CustomContextImpl(Message message) { this.message = message; } @Override public Message getMessage() { return message; } }
apache/cxf
1,185
tools/javato/ws/src/test/java/org/apache/xmladapter/Greeter.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.xmladapter; import java.util.Currency; import jakarta.jws.WebParam; import jakarta.jws.WebService; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @WebService public interface Greeter { int sayHi(@WebParam @XmlJavaTypeAdapter(value = org.apache.xmladapter.CurrencyAdapter.class) Currency tickerSymbol); }
apache/deltaspike
1,112
deltaspike/modules/test-control/impl/obsolete/src/test/java/org/apache/deltaspike/test/testcontrol/uc018/TestUpperCaseInterceptor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.testcontrol.uc018; import jakarta.interceptor.InterceptorBinding; import java.lang.annotation.*; @InterceptorBinding @Documented @Inherited @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.TYPE, ElementType.METHOD }) public @interface TestUpperCaseInterceptor { }
apache/directory-server
1,140
server-annotations/src/main/java/org/apache/directory/server/factory/LdapServerFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.directory.server.factory; import org.apache.directory.server.ldap.LdapServer; /** * * TODO LdapServerFactory. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ public interface LdapServerFactory { void init(); LdapServer getLdapServer(); }
apache/directory-server
1,148
ldap-client-test/src/test/java/org/apache/directory/shared/client/api/utils/SASLPrep.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.directory.shared.client.api.utils; /** * This class implement the RFC 4013. It contains methods to prepare * String passwords before the client API can send them to the server. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ public class SASLPrep { }
apache/directory-studio
1,137
plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerStatus.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.directory.studio.ldapservers.model; /** * This enum defines the various statuses of an LDAP Server. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ public enum LdapServerStatus { STARTED, STARTING, STOPPED, STOPPING, UNKNOWN, REPAIRING }
apache/drill
1,170
logical/src/main/java/org/apache/drill/common/logical/data/SourceOperator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.common.logical.data; import java.util.Collections; import java.util.Iterator; /** * An operator that produces data without any parents. (zero input operator) */ public abstract class SourceOperator extends LogicalOperatorBase{ @Override public Iterator<LogicalOperator> iterator() { return Collections.emptyIterator(); } }
apache/drill
1,171
exec/rpc/src/main/java/org/apache/drill/exec/rpc/BaseRpcOutcomeListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.rpc; import io.netty.buffer.ByteBuf; public class BaseRpcOutcomeListener<T> implements RpcOutcomeListener<T> { @Override public void failed(RpcException ex) { } @Override public void success(T value, ByteBuf buffer) { } /** * {@inheritDoc} */ @Override public void interrupted(final InterruptedException ex) { } }
apache/druid
1,155
indexing-service/src/main/java/org/apache/druid/indexing/common/RetryPolicyFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.indexing.common; import com.google.inject.Inject; /** */ public class RetryPolicyFactory { private final RetryPolicyConfig config; @Inject public RetryPolicyFactory(RetryPolicyConfig config) { this.config = config; } public RetryPolicy makeRetryPolicy() { return new RetryPolicy(config); } }
apache/druid
1,159
integration-tests-ex/cases/src/test/java/org/apache/druid/testsEx/indexer/ITIndexerTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.testsEx.indexer; import org.apache.druid.testsEx.categories.BatchIndex; import org.apache.druid.testsEx.config.DruidTestRunner; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; @RunWith(DruidTestRunner.class) @Category(BatchIndex.class) public class ITIndexerTest extends IndexerTest { }
apache/dubbo
1,106
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportprovider/SingleRegistryCenterExportProviderService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.config.integration.single.exportprovider; /** * This interface is used to check if the exported provider works well or not. */ public interface SingleRegistryCenterExportProviderService { /** * The simple method for testing. */ String hello(String name); }
apache/dubbo
1,139
dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/api/SpringControllerService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.config.spring.api; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @RequestMapping("/controller") public class SpringControllerService { @GetMapping("/sayHello") public String sayHello(String say) { return say; } }
apache/dubbo
1,147
dubbo-rpc/dubbo-rpc-triple/src/test/java/org/apache/dubbo/rpc/protocol/tri/support/IGreeterException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.support; public class IGreeterException extends Exception { private String message; public IGreeterException(String message) { super(message); this.message = message; } public IGreeterException(String message, Throwable cause) { super(message, cause); } }
apache/dubbo
1,156
dubbo-common/src/main/java/org/apache/dubbo/common/logger/Level.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.logger; /** * Level */ public enum Level { /** * ALL */ ALL, /** * TRACE */ TRACE, /** * DEBUG */ DEBUG, /** * INFO */ INFO, /** * WARN */ WARN, /** * ERROR */ ERROR, /** * OFF */ OFF }
apache/dubbo
1,160
dubbo-common/src/main/java/org/apache/dubbo/common/status/reporter/FrameworkStatusReporter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.status.reporter; import org.apache.dubbo.common.extension.ExtensionScope; import org.apache.dubbo.common.extension.SPI; import org.apache.dubbo.rpc.model.ScopeModelAware; @SPI(scope = ExtensionScope.APPLICATION) public interface FrameworkStatusReporter extends ScopeModelAware { void report(String type, Object obj); }
apache/dubbo
1,162
dubbo-common/src/test/java/org/apache/dubbo/common/extension/director/FooModuleService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.extension.director; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.Adaptive; import org.apache.dubbo.common.extension.ExtensionScope; import org.apache.dubbo.common.extension.SPI; @SPI(scope = ExtensionScope.MODULE) public interface FooModuleService { @Adaptive void process(URL url); }
apache/eagle
1,115
eagle-security/eagle-security-oozie-web/src/main/java/org/apache/eagle/service/security/oozie/dao/BadOozieMetadataAccessConfigException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eagle.service.security.oozie.dao; public class BadOozieMetadataAccessConfigException extends RuntimeException { public BadOozieMetadataAccessConfigException(Exception ex) { super(ex); } public BadOozieMetadataAccessConfigException(String msg) { super(msg); } }
apache/eagle
1,125
eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/PartitionedEventCollector.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.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. */ package org.apache.eagle.alert.engine; import org.apache.eagle.alert.engine.model.PartitionedEvent; /** * Executed in thread-safe trace. */ public interface PartitionedEventCollector extends Collector<PartitionedEvent> { /** * @param event to be dropped. */ void drop(PartitionedEvent event); }
apache/felix-dev
1,158
gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/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. */ @org.osgi.annotation.bundle.Capability( namespace = "org.apache.felix.gogo", name = "runtime.implementation", version = "1.0.0" ) @org.osgi.annotation.bundle.Requirement( effective = "active", namespace = "org.apache.felix.gogo", name = "shell.implementation", version = "1.0.0" ) package org.apache.felix.gogo.runtime;
apache/flink-statefun
1,138
statefun-sdk-embedded/src/main/java/org/apache/flink/statefun/sdk/state/AppendingBufferAccessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.sdk.state; import java.util.List; import javax.annotation.Nonnull; public interface AppendingBufferAccessor<E> { void append(@Nonnull E element); void appendAll(@Nonnull List<E> elements); void replaceWith(@Nonnull List<E> elements); @Nonnull Iterable<E> view(); void clear(); }
apache/flink
1,121
flink-table/flink-table-code-splitter/src/test/resources/block/expected/TestIfMultipleSingleLineStatementRewrite.java
public class TestIfMultipleSingleLineStatementRewrite { public void myFun1(int[] a, int[] b) throws RuntimeException { if (a[0] == 0) { myFun1_0_0_rewriteGroup2(a, b); myFun1_0_0(a, b); } else { myFun1_0_4(a, b); } } void myFun1_0_0_1_2(int[] a, int[] b) throws RuntimeException { a[21] = 1; a[22] = 1; } void myFun1_0_4(int[] a, int[] b) throws RuntimeException { a[0] = b[0]; a[1] = b[1]; a[2] = b[2]; } void myFun1_0_0_1_3(int[] a, int[] b) throws RuntimeException { a[23] = b[2]; a[24] = b[2]; } void myFun1_0_0_1(int[] a, int[] b) throws RuntimeException { a[11] = b[0]; a[12] = b[0]; } void myFun1_0_0(int[] a, int[] b) throws RuntimeException { a[13] = b[0]; a[14] = b[0]; } void myFun1_0_0_rewriteGroup2(int[] a, int[] b) throws RuntimeException { myFun1_0_0_1(a, b); if (a[2] == 0) { myFun1_0_0_1_2(a, b); } else { myFun1_0_0_1_3(a, b); } } }
apache/flink
1,137
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/BeginStatementSetOperation.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.table.operations; import org.apache.flink.annotation.Internal; /** Operation to describe a BEGIN STATEMENT SET statement. */ @Internal public final class BeginStatementSetOperation implements Operation { @Override public String asSummaryString() { return "BEGIN STATEMENT SET"; } }
apache/flink
1,158
flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/iomanager/BufferFileReader.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.io.disk.iomanager; import org.apache.flink.runtime.io.network.buffer.Buffer; import java.io.IOException; public interface BufferFileReader extends FileIOChannel { void readInto(Buffer buffer) throws IOException; void seekToPosition(long position) throws IOException; boolean hasReachedEndOfFile(); }
apache/flink
1,176
flink-core-api/src/main/java/org/apache/flink/api/connector/dsv2/Source.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.api.connector.dsv2; import org.apache.flink.annotation.Experimental; /** * Source interface for DataStream api v2. * * <p>Note that this interface is just a placeholder because we haven't decided whether to use * FLIP-27 based source or design a new source connector API for DataStream V2. */ @Experimental public interface Source<T> {}
apache/fory
1,179
java/fory-core/src/main/java/org/apache/fory/codegen/ClosureVisitable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fory.codegen; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** An annotation used to mark closure may contain child expressions. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface ClosureVisitable {}
apache/geaflow
1,099
geaflow/geaflow-dsl/geaflow-dsl-connector/geaflow-dsl-connector-api/src/main/java/org/apache/geaflow/dsl/connector/api/util/ConnectorConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.dsl.connector.api.util; public class ConnectorConstants { public static final String START_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss"; public static final String CONNECTOR_FORMAT_JSON = "json"; public static final String CONNECTOR_FORMAT_TEXT = "text"; }
apache/geaflow
1,100
geaflow-console/app/common/service/integration/src/main/java/org/apache/geaflow/console/common/service/integration/engine/analytics/QueryError.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common.service.integration.engine.analytics; import org.apache.geaflow.console.common.util.proxy.ProxyClass; @ProxyClass("org.apache.geaflow.analytics.service.query.QueryError") public interface QueryError { int getCode(); String getName(); }
apache/geaflow
1,105
geaflow-kubernetes-operator/geaflow-kubernetes-operator-core/src/main/java/org/apache/geaflow/kubernetes/operator/core/model/FileModel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.kubernetes.operator.core.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class FileModel { private String name; private String url; private String md5; }
apache/geaflow
1,108
geaflow-console/app/common/service/integration/src/main/java/org/apache/geaflow/console/common/service/integration/engine/FunctionInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common.service.integration.engine; import org.apache.geaflow.console.common.util.proxy.ProxyClass; @ProxyClass("org.apache.geaflow.dsl.common.compile.FunctionInfo") public interface FunctionInfo { String getInstanceName(); String getFunctionName(); }
apache/geaflow
1,124
geaflow/geaflow-dsl/geaflow-dsl-catalog/src/main/java/org/apache/geaflow/dsl/catalog/exception/ObjectNotExistException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.dsl.catalog.exception; import org.apache.geaflow.dsl.common.exception.GeaFlowDSLException; public class ObjectNotExistException extends GeaFlowDSLException { public ObjectNotExistException(String objectName) { super("'" + objectName + "' is not exist in catalog"); } }
apache/geode
1,165
geode-core/src/main/java/org/apache/geode/cache/query/internal/aggregate/AvgDistinct.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.cache.query.internal.aggregate; /** * Computes the average of distinct values for replicated region based queries. */ public class AvgDistinct extends SumDistinct { @Override public Object terminate() { double sum = ((Number) super.terminate()).doubleValue(); double result = sum / distinct.size(); return downCast(result); } }
apache/gobblin
1,156
gobblin-compaction/src/main/java/org/apache/gobblin/compaction/CompactorCreationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.compaction; /** * Throw by {@link CompactorFactory} if there is a problem creating a {@link Compactor}. */ public class CompactorCreationException extends Exception { private static final long serialVersionUID = 1L; public CompactorCreationException(String message, Throwable cause) { super(message, cause); } }
apache/gobblin
1,167
gobblin-test-utils/src/main/java/org/apache/gobblin/test/ConstantTimingType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.test; /** * Every call takes a certain amount of time. */ public class ConstantTimingType implements TimingType { private long timeDurationMillis; public ConstantTimingType(long timeDurationMillis) { this.timeDurationMillis = timeDurationMillis; } public long nextTimeMillis() { return this.timeDurationMillis; } }
apache/grails-core
1,134
grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/cfg/PersistentEntityNamingStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.grails.orm.hibernate.cfg; import org.grails.datastore.mapping.model.PersistentEntity; /** * Allows plugging into to custom naming strategies * * @author Graeme Rocher * @since 5.0 */ public interface PersistentEntityNamingStrategy { String resolveTableName(PersistentEntity entity); }
apache/hadoop-common
1,147
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/PathNotFoundException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.fs; /** * Exception corresponding to Permission denied - ENOENT */ public class PathNotFoundException extends PathIOException { static final long serialVersionUID = 0L; /** @param path for the exception */ public PathNotFoundException(String path) { super(path, "No such file or directory"); } }
apache/hadoop-common
1,153
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLICommand.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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. */ package org.apache.hadoop.cli.util; /** * This interface is to generalize types of test command for upstream projects */ public interface CLICommand { public CommandExecutor getExecutor(String tag) throws IllegalArgumentException; public CLICommandTypes getType(); public String getCmd(); @Override public String toString(); }
apache/hadoop-mapreduce
1,137
src/contrib/gridmix/src/test/system/org/apache/hadoop/mapred/gridmix/test/system/GridMixRunMode.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.mapred.gridmix.test.system; /** * Gridmix run modes. * */ public enum GridMixRunMode { DATA_GENERATION(1), RUN_GRIDMIX(2), DATA_GENERATION_AND_RUN_GRIDMIX(3); private int mode; GridMixRunMode (int mode) { this.mode = mode; } public int getValue() { return mode; } }
apache/hadoop
1,113
hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-blockgen/src/main/java/org/apache/hadoop/tools/dynamometer/blockgenerator/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. */ /** * Tools to help generate block files as input to Dynamometer. */ @InterfaceAudience.Private @InterfaceStability.Unstable package org.apache.hadoop.tools.dynamometer.blockgenerator; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hadoop
1,134
hadoop-cloud-storage-project/hadoop-tos/src/main/java/org/apache/hadoop/fs/tosfs/object/staging/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. */ /** * Classes for hadoop-tos object staging part. */ @InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce", "YARN", "Hive"}) @InterfaceStability.Evolving package org.apache.hadoop.fs.tosfs.object.staging; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hadoop
1,137
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/impl/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Package org.apache.hadoop.yarn.api.records.impl contains classes * which define basic resources. */ @InterfaceAudience.Public @InterfaceStability.Unstable package org.apache.hadoop.yarn.api.records.impl; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hama
1,193
core/src/test/java/org/apache/hama/util/TestNumeric.java
/** * Copyright 2007 The Apache Software Foundation * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hama.util; import junit.framework.TestCase; public class TestNumeric extends TestCase { final static int TEST_INT = 3; final static double TEST_DOUBLE = 0.4; /** * Double conversion test */ public void testDouble() { assertEquals(Bytes.toDouble(Bytes.toBytes(TEST_DOUBLE)), TEST_DOUBLE); } }
apache/harmony
1,136
classlib/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/DuplicateHeapByteBufferTest.java
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.harmony.nio.tests.java.nio; public class DuplicateHeapByteBufferTest extends HeapByteBufferTest { protected void setUp() throws Exception { super.setUp(); buf = buf.duplicate(); baseBuf = buf; } protected void tearDown() throws Exception { super.tearDown(); } }
apache/harmony
1,141
classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/GrannyBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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; /** * @author Maxim V. Berkultsev */ public class GrannyBean { private String text = "GrannyBean"; public String getText() { return text; } public void setText(String text) { this.text = text; } }
apache/harmony
1,151
classlib/modules/awt/src/test/impl/boot/org/apache/harmony/awt/tests/java/awt/JobAttributesTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.harmony.awt.tests.java.awt; import java.awt.JobAttributes; import junit.framework.TestCase; public class JobAttributesTest extends TestCase { public void testConstructor() { // Regression test HARMONY-1913 JobAttributes attr = new JobAttributes(); assertNull(attr.getFileName()); } }
apache/harmony
1,159
classlib/modules/luni/src/main/java/org/apache/harmony/luni/util/ErrorCodeException.java
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.harmony.luni.util; public class ErrorCodeException extends Exception { private static final long serialVersionUID = -8716868971626579265L; private int errorCode; public ErrorCodeException(int errorCode){ this.errorCode = errorCode; } public int getErrorCode(){ return errorCode; } }
apache/harmony
1,163
classlib/modules/rmi/src/main/java/java/rmi/server/RMIServerSocketFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 Mikhail A. Markov */ package java.rmi.server; import java.io.IOException; import java.net.ServerSocket; /** * @com.intel.drl.spec_ref * * @author Mikhail A. Markov */ public interface RMIServerSocketFactory { /** * @com.intel.drl.spec_ref */ public ServerSocket createServerSocket(int port) throws IOException; }
apache/helix
1,179
helix-core/src/main/java/org/apache/helix/ScopedConfigChangeListener.java
package org.apache.helix; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Interface to implement to listen for changes to any specified scope. * * @deprecated * NOTE: This interface definition is moved to {@link org.apache.helix.api.listeners.ScopedConfigChangeListener} */ @Deprecated public interface ScopedConfigChangeListener extends org.apache.helix.api.listeners.ScopedConfigChangeListener { }
apache/helix
1,181
helix-core/src/main/java/org/apache/helix/IdealStateChangeListener.java
package org.apache.helix; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Interface to implement to listen for changes to the ideal state of resources. * * @deprecated * NOTE: This interface definition is moved to {@link org.apache.helix.api.listeners.IdealStateChangeListener} */ @Deprecated public interface IdealStateChangeListener extends org.apache.helix.api.listeners.IdealStateChangeListener { }
apache/hive
1,187
contrib/src/java/org/apache/hadoop/hive/contrib/mr/Output.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.contrib.mr; /** * Collects output. * * It's the responsibility of the caller to ensure the output is in the correct * format (contains the correct number of columns, etc.) */ public interface Output { /** * Add a row to the output. * * @param record * @throws Exception */ void collect(String[] record) throws Exception; }
apache/hive
1,189
common/src/java/org/apache/hadoop/hive/common/MemoryEstimate.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.common; /** * Interface that can be used to provide size estimates based on data structures held in memory for an object instance. */ public interface MemoryEstimate { /** * Returns estimated memory size based {@link org.apache.hadoop.hive.ql.util.JavaDataModel} * * @return estimated memory size in bytes */ long getEstimatedMemorySize(); }
apache/hop
1,141
plugins/transforms/streamlookup/src/main/java/org/apache/hop/pipeline/transforms/streamlookup/KeyValue.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.pipeline.transforms.streamlookup; public class KeyValue { private Object[] key; private Object[] value; public KeyValue(Object[] key, Object[] value) { this.key = key; this.value = value; } public Object[] getKey() { return key; } public Object[] getValue() { return value; } }
apache/hop
1,177
ui/src/main/java/org/apache/hop/ui/workflow/dialog/IWorkflowDialogPlugin.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.ui.workflow.dialog; import org.apache.hop.workflow.WorkflowMeta; import org.eclipse.swt.custom.CTabFolder; import org.eclipse.swt.widgets.Shell; public interface IWorkflowDialogPlugin { void addTab(WorkflowMeta workflowMeta, Shell shell, CTabFolder tabFolder); void getData(WorkflowMeta workflowMeta); void ok(WorkflowMeta workflowMeta); }
apache/hop
1,178
core/src/main/java/org/apache/hop/core/plugins/PluginExtraClassTypes.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.core.plugins; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface PluginExtraClassTypes { Class<?>[] classTypes(); String[] xmlNodeNames() default {""}; }
apache/iceberg
1,165
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/FileRewriteCoordinator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.spark; import org.apache.iceberg.DataFile; public class FileRewriteCoordinator extends BaseFileRewriteCoordinator<DataFile> { private static final FileRewriteCoordinator INSTANCE = new FileRewriteCoordinator(); private FileRewriteCoordinator() {} public static FileRewriteCoordinator get() { return INSTANCE; } }
apache/iceberg
1,165
spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/FileRewriteCoordinator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.spark; import org.apache.iceberg.DataFile; public class FileRewriteCoordinator extends BaseFileRewriteCoordinator<DataFile> { private static final FileRewriteCoordinator INSTANCE = new FileRewriteCoordinator(); private FileRewriteCoordinator() {} public static FileRewriteCoordinator get() { return INSTANCE; } }
apache/iceberg
1,165
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/FileRewriteCoordinator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.spark; import org.apache.iceberg.DataFile; public class FileRewriteCoordinator extends BaseFileRewriteCoordinator<DataFile> { private static final FileRewriteCoordinator INSTANCE = new FileRewriteCoordinator(); private FileRewriteCoordinator() {} public static FileRewriteCoordinator get() { return INSTANCE; } }
apache/ignite
1,131
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/tpch/TpchScale010Test.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.processors.query.calcite.integration.tpch; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; /** */ @RunWith(Parameterized.class) public class TpchScale010Test extends AbstractTpchTest { /** */ @Override protected double scale() { return 0.1; } }
apache/ignite
1,141
modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformReaderClosure.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.processors.platform.utils; import org.apache.ignite.internal.binary.BinaryReaderEx; /** * Reader closure. */ public interface PlatformReaderClosure<T> { /** * Read object from reader. * * @param reader Reader. * @return Object. */ T read(BinaryReaderEx reader); }
apache/ignite
1,153
modules/yardstick/src/main/java/org/apache/ignite/yardstick/io/IgniteIoTestSendAllBenchmark.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.yardstick.io; import java.util.Map; /** * */ public class IgniteIoTestSendAllBenchmark extends IgniteIoTestAbstractBenchmark { /** {@inheritDoc} */ @Override public boolean test(Map<Object, Object> ctx) throws Exception { ignite.sendIoTest(targetNodes, null, false).get(); return true; } }
apache/incubator-gluten
1,158
gluten-core/src/main/java/org/apache/gluten/memory/memtarget/MemoryTarget.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gluten.memory.memtarget; // The naming convention "borrow" and "repay" are for preventing collisions with // other APIs. // // Implementations are not necessary to be thread-safe public interface MemoryTarget { long borrow(long size); long repay(long size); long usedBytes(); <T> T accept(MemoryTargetVisitor<T> visitor); }
apache/incubator-hugegraph-toolchain
1,134
hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/mapper/load/LoadTaskMapper.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS 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.mapper.load; import org.apache.hugegraph.entity.load.LoadTask; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Component; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @Mapper @Component public interface LoadTaskMapper extends BaseMapper<LoadTask> { }
apache/incubator-hugegraph-toolchain
1,140
hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/common/Response.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS 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.common; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor @Builder public class Response { private int status; private Object data; private String message; private Throwable cause; }
apache/incubator-hugegraph
1,136
hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/core/raft/MockStateMachine.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hugegraph.store.core.raft; import com.alipay.sofa.jraft.Iterator; import com.alipay.sofa.jraft.core.StateMachineAdapter; public class MockStateMachine extends StateMachineAdapter { @Override public void onApply(Iterator iter) { while (iter.hasNext()) { iter.next(); } } }
apache/incubator-kie-drools
1,121
drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssue.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.verifier.api.reporting; import java.util.Collections; public class IllegalVerifierStateIssue extends Issue { public IllegalVerifierStateIssue() { super(Severity.ERROR, CheckType.ILLEGAL_VERIFIER_STATE, Collections.EMPTY_SET ); } }
apache/incubator-kie-drools
1,135
drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalChunkExpr.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; import com.github.javaparser.ast.expr.LiteralExpr; public abstract class TemporalChunkExpr extends LiteralExpr { public TemporalChunkExpr() { } public TemporalChunkExpr(TokenRange tokenRange) { super(tokenRange); } }
apache/incubator-kie-drools
1,136
drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/Check.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.verifier.core.checks.base; import org.drools.verifier.api.reporting.Issue; import org.drools.verifier.core.configuration.CheckConfiguration; public interface Check { boolean check(); Issue getIssue(); boolean hasIssues(); boolean isActive(final CheckConfiguration checkConfiguration); }
apache/incubator-kie-kogito-examples
1,111
kogito-quarkus-examples/process-kafka-avro-multi-quarkus/src/main/java/org/acme/travel/TravellerValidationService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.acme.travel; import org.drools.ruleunits.api.*; public class TravellerValidationService implements RuleUnitData { private final SingletonStore<Traveller> traveller = DataSource.createSingleton(); public SingletonStore<Traveller> getTraveller() { return traveller; } }
apache/incubator-kie-kogito-examples
1,111
kogito-quarkus-examples/process-kafka-quickstart-quarkus/src/main/java/org/acme/travel/TravellerValidationService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.acme.travel; import org.drools.ruleunits.api.*; public class TravellerValidationService implements RuleUnitData { private final SingletonStore<Traveller> traveller = DataSource.createSingleton(); public SingletonStore<Traveller> getTraveller() { return traveller; } }
apache/incubator-kie-optaplanner
1,080
optaplanner-quarkus-integration/optaplanner-quarkus-jsonb/integration-test/src/test/java/org/optaplanner/quarkus/jsonb/it/OptaPlannerTestResourceIT.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.optaplanner.quarkus.jsonb.it; import io.quarkus.test.junit.QuarkusIntegrationTest; /** * Test various OptaPlanner operations running in native mode */ @QuarkusIntegrationTest public class OptaPlannerTestResourceIT extends OptaPlannerTestResourceTest { }
apache/incubator-pegasus
1,168
java-client/src/main/java/org/apache/pegasus/client/request/Get.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pegasus.client.request; import java.io.Serializable; public class Get implements Serializable { private static final long serialVersionUID = 5022721155142508979L; public final byte[] hashKey; public final byte[] sortKey; public Get(byte[] hashKey, byte[] sortKey) { this.hashKey = hashKey; this.sortKey = sortKey; } }
apache/incubator-retired-wave
1,136
wave/src/main/java/org/waveprotocol/wave/client/wavepanel/impl/focus/BlipEditStatusListener.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.waveprotocol.wave.client.wavepanel.impl.focus; /** * The listener interface for receiving edit blip focus events. */ public interface BlipEditStatusListener { /** * Sets the blip editing focus. * * @param editing set if the blip is beeing editing or not. */ void setEditing(boolean editing); }
apache/incubator-seata
1,169
tm/src/main/java/org/apache/seata/tm/api/GlobalTransactionRole.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.tm.api; /** * Role of current thread involve in a global transaction. * */ public enum GlobalTransactionRole { /** * The Launcher. */ // The one begins the current global transaction. Launcher, /** * The Participant. */ // The one just joins into a existing global transaction. Participant }
apache/incubator-weex
1,161
android/sdk/src/main/java/org/apache/weex/ui/action/GraphicActionBatchEnd.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.weex.ui.action; import org.apache.weex.WXSDKInstance; public class GraphicActionBatchEnd extends BasicGraphicAction { public GraphicActionBatchEnd(WXSDKInstance instance, String ref) { super(instance, ref); this.mActionType = ActionTypeBatchEnd; } @Override public void executeAction() { } }
apache/inlong
1,134
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/queue/pulsar/PulsarRetentionPolicies.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.manager.pojo.queue.pulsar; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @Builder @NoArgsConstructor @AllArgsConstructor public class PulsarRetentionPolicies { private int retentionTimeInMinutes; private long retentionSizeInMB; }
apache/iotdb
1,137
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollPayload.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.rpc.subscription.payload.poll; import java.io.DataOutputStream; import java.io.IOException; import java.nio.ByteBuffer; public interface SubscriptionPollPayload { void serialize(final DataOutputStream stream) throws IOException; SubscriptionPollPayload deserialize(final ByteBuffer buffer); }
apache/jackrabbit-oak
1,127
oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/composite/CompositeProviderAllReverseTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.security.authorization.composite; /** * Same as {@link CompositeProviderAllTest} * with reverse order of the aggregated providers. */ public class CompositeProviderAllReverseTest extends CompositeProviderAllTest { @Override boolean reverseOrder() { return true; } }
apache/james-project
1,150
protocols/managesieve/src/main/java/org/apache/james/managesieve/api/commands/PutScript.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.james.managesieve.api.commands; import org.apache.james.managesieve.api.Session; /** * @see <a href=http://tools.ietf.org/html/rfc5804#section-2.6>RFC 5804 PUTSCRIPT Command</a> */ public interface PutScript { String putScript(Session session, String name, String content); }
apache/jclouds
1,131
providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/internal/BaseCallerArg0ToIteratorOfListPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.googlecomputeengine.internal; import org.jclouds.googlecomputeengine.options.ListOptions; public abstract class BaseCallerArg0ToIteratorOfListPage<T, I extends BaseCallerArg0ToIteratorOfListPage<T, I>> extends org.jclouds.googlecloud.internal.BaseCallerArg0ToIteratorOfListPage<T, ListOptions, I> { }
apache/jclouds
1,170
apis/cloudstack/src/main/java/org/jclouds/cloudstack/AsyncJobException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.cloudstack; public class AsyncJobException extends RuntimeException { public AsyncJobException() { } public AsyncJobException(String s) { super(s); } public AsyncJobException(String s, Throwable throwable) { super(s, throwable); } public AsyncJobException(Throwable throwable) { super(throwable); } }
apache/jena
1,170
jena-arq/src/main/java/org/apache/jena/sparql/function/library/leviathan/sec.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.sparql.function.library.leviathan; import org.apache.jena.sparql.expr.NodeValue; import org.apache.jena.sparql.function.FunctionBase1; public class sec extends FunctionBase1 { @Override public NodeValue exec(NodeValue v) { // sec x = 1 / cos x return NodeValue.makeDouble(1 / Math.cos(v.getDouble())); } }
apache/jmeter
1,169
src/components/src/test/java/org/apache/jmeter/extractor/TestHtmlExtractorJodd.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jmeter.extractor; import org.apache.jmeter.threads.JMeterContextService; import org.junit.jupiter.api.BeforeEach; public class TestHtmlExtractorJodd extends TestHtmlExtractorJSoup { @BeforeEach public void setUpJodd() { extractor.setExtractor(HtmlExtractor.EXTRACTOR_JODD); jmctx = JMeterContextService.getContext(); } }
apache/johnzon
1,190
johnzon-mapper/src/test/java/org/superbiz/ModelBase.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.superbiz; import java.util.Collection; public abstract class ModelBase<A extends ModelSuperBase.ChildA, B extends ModelSuperBase.ChildB> extends ModelSuperBase<A, B> { private Collection<A> aalist; public Collection<A> getAalist() { return aalist; } public void setAalist(final Collection<A> aalist) { this.aalist = aalist; } }