repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
openjdk/jdk8
1,160
langtools/test/tools/javac/diags/examples/ElseWithoutIf.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.else.without.if class ElseWithoutIf { void m() { else { } } }
openjdk/jdk8
1,160
langtools/test/tools/javac/diags/examples/InheritFromFinal.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.inherit.from.final final class Base { } class InheritFromFinal extends Base { }
openjdk/jdk8
1,165
langtools/test/tools/javac/generics/classreader/HMember.java
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public interface HMember extends java.lang.Comparable<HMember> { public abstract int compareTo(HMember o); }
openjdk/jtreg
1,181
test/multirun/b1/b/test/q/Test.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 */ public class Test { public static void main(String... args) { System.err.println("passed"); } }
openjdk/jtreg
1,181
test/multirun/b2/b/test/r/Test.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 */ public class Test { public static void main(String... args) { System.err.println("passed"); } }
openjdk/jtreg
1,195
test/groups/d2/Test.java
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /** * @test */ public class Test { public static void main(String... args) { System.err.println(System.getProperties()); } }
openjdk/jtreg
1,196
test/groups2/Test1.java
/* * Copyright (c) 2022, 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 */ public class Test1 { public static void main(String... args) { System.err.println(System.getProperties()); } }
openjdk/jtreg
1,196
test/groups2/Test2.java
/* * Copyright (c) 2022, 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 */ public class Test2 { public static void main(String... args) { System.err.println(System.getProperties()); } }
openjdk/jtreg
1,196
test/groups2/Test3.java
/* * Copyright (c) 2022, 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 */ public class Test3 { public static void main(String... args) { System.err.println(System.getProperties()); } }
oracle-devrel/springai-rag-db23ai
1,157
src/main/java/com/example/model/MessageDTO.java
// Copyright (c) 2024, Oracle and/or its affiliates. // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ // ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, // FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, // AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES // DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, // MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING // THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT // ANY REVIEW. USE AT YOUR OWN RISK. package com.example.model; public class MessageDTO { private String message; // Getter and Setter public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }
oracle/coherence
1,112
prj/coherence-core/src/main/java/com/oracle/coherence/common/collections/Stack.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.common.collections; /** * Stack describes a classic LIFO collection. * * @param <V> the type of the values that will be stored in the Stack * * @author mf 2012.03.22 */ public interface Stack<V> { /** * Push an element onto the stack. * * @param element the element */ public void push(V element); /** * Pop an element off of the stack. * * @return the element, or null if empty */ public V pop(); /** * Return but don't remove the top element of the stack. * * @return the element, or null if empty */ public V peek(); /** * Return true iff stack is empty. * * @return true iff stack is empty */ public boolean isEmpty(); /** * Return the number of elements in the stack. * * @return the number of elements in the stack */ public int size(); }
oracle/coherence
1,121
prj/coherence-core/src/main/java/com/tangosol/dev/assembler/If_icmpne.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.dev.assembler; import java.io.IOException; import java.io.DataInput; import java.io.DataOutput; /** * The IF_ICMPNE op branches to the label if the top two integers on the stack * are not equal. * <p><code><pre> * JASM op : IF_ICMPNE (0xa0) * JVM byte code(s): IF_ICMPNE (0xa0) * Details : * </pre></code> * * @version 0.50, 06/14/98, assembler/dis-assembler * @author Cameron Purdy */ public class If_icmpne extends OpBranch implements Constants { // ----- constructors --------------------------------------------------- /** * Construct the op. * * @param label the label to branch to */ public If_icmpne(Label label) { super(IF_ICMPNE, label); } // ----- data members --------------------------------------------------- /** * The name of this class. */ private static final String CLASS = "If_icmpne"; }
oracle/coherence
1,124
prj/coherence-core/src/main/java/com/tangosol/internal/net/queue/NamedMapQueue.java
/* * Copyright (c) 2000, 2024, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package com.tangosol.internal.net.queue; import com.tangosol.net.NamedMap; import com.tangosol.net.NamedQueue; /** * A {@link NamedQueue} implementation that wraps a {@link NamedMap}. * * @param <E> the type of elements held in this queue */ public interface NamedMapQueue<K, E> extends NamedQueue<E> { /** * Return the {@link NamedMap} containing the queue content. * * @return the {@link NamedMap} containing the queue content */ public NamedMap<K, E> getNamedMap(); public K createKey(long id); // ----- constants ------------------------------------------------------ /** * The maximum size for a queue. * <p> * A queue is stored in a single partition and partition size is limited to 2GB per cache * (or max int value of 2147483647 bytes). * This max size is about 147MB under 2GB. */ public static final long MAX_QUEUE_SIZE = 2000000000; }
oracle/coherence
1,130
prj/coherence-core/src/main/java/com/tangosol/util/stream/RemotePipeline.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.util.stream; import com.tangosol.util.InvocableMap; import java.io.Serializable; /** * A serializable pipeline of intermediate stream operations. * * @author as 2014.10.01 * @since 12.2.1 */ public interface RemotePipeline<S_OUT> extends Serializable { /** * Return whether this pipeline should be executed in parallel. * * @return <code>true</code> if this pipeline should be executed in parallel, * <code>false</code> otherwise */ public boolean isParallel(); /** * Evaluate this pipeline against the specified stream of InvocableMap.Entry * objects. * * @param stream the stream to evaluate pipeline against * @param <K> key type * @param <V> value type * * @return transformed stream */ public <K, V> S_OUT evaluate(java.util.stream.Stream<? extends InvocableMap.Entry<? extends K, ? extends V>> stream); }
oracle/nosql
1,143
kvmain/src/main/java/com/sleepycat/je/rep/utilint/LongMinZeroStat.java
/*- * Copyright (C) 2002, 2025, Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package com.sleepycat.je.rep.utilint; import com.sleepycat.je.utilint.LongMinStat; import com.sleepycat.je.utilint.StatDefinition; import com.sleepycat.je.utilint.StatGroup; /** * For stats where the min value in the range is zero, so that sums, averages, * etc. based on positive ranges just work. */ public class LongMinZeroStat extends LongMinStat { private static final long serialVersionUID = 1L; public LongMinZeroStat(StatGroup group, StatDefinition definition) { super(group, definition); } @Override public Long get() { Long value = super.get(); return (value == Long.MAX_VALUE) ? 0 : value; } }
apache/commons-text
1,134
src/test/java/org/apache/commons/text/lookup/BiStringLookupTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache license, Version 2.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.text.lookup; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** * Tests {@link BiStringLookup}. */ class BiStringLookupTest { @Test void testDefaultMethod() { Assertions.assertEquals("a", ((BiStringLookup<Object>) key -> key).lookup("a", "b")); } }
apache/ctakes
1,121
ctakes-examples/src/main/java/org/apache/ctakes/examples/cc/ApacheConSentenceWriter.java
package org.apache.ctakes.examples.cc; import org.apache.ctakes.core.cc.AbstractJCasFileWriter; import org.apache.ctakes.typesystem.type.textspan.Sentence; import org.apache.uima.fit.util.JCasUtil; import org.apache.uima.jcas.JCas; import java.io.*; import java.util.Collection; /** * */ public class ApacheConSentenceWriter extends AbstractJCasFileWriter { /** * Writes some document metadata and discovered event information. */ @Override public void writeFile( JCas jCas, String outputDir, String documentId, String fileName ) throws IOException { File file = new File( outputDir, fileName + "_Sentences.txt" ); try ( Writer writer = new BufferedWriter( new FileWriter( file ) ) ) { Collection<Sentence> sentences = JCasUtil.select( jCas, Sentence.class ); for ( Sentence sentence : sentences ) { writer.write( sentence.getCoveredText() + "\n" ); writer.write( "-------------------------------------------------------------------\n" ); } } } }
apache/cxf
1,096
rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/AuthorizationCodeResponseFilter.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.rs.security.oauth2.provider; import org.apache.cxf.rs.security.oauth2.common.Client; import org.apache.cxf.rs.security.oauth2.common.UserSubject; public interface AuthorizationCodeResponseFilter { String process(Client client, String code, UserSubject endUser); }
apache/cxf
1,097
distribution/src/main/release/samples/jax_rs/tracing_micrometer/src/main/java/demo/jaxrs/tracing/GoogleBooksApi.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package demo.jaxrs.tracing; import feign.Headers; import feign.Param; import feign.RequestLine; import feign.Response; public interface GoogleBooksApi { @RequestLine("GET /books/v1/volumes?q={q}") @Headers("Accept: application/json") Response search(@Param("q") String query); }
apache/cxf
1,117
rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/inheritance/intf/GrandChildImpl.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.aegis.inheritance.intf; public class GrandChildImpl implements IGrandChild { public String getChildName() { return "child"; } public String getParentName() { return "parent"; } public String getGrandChildName() { return "grandchild"; } }
apache/cxf
1,127
services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ProcessedClaimCollection.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.sts.claims; /** * This holds a collection of Claims that have been processed by a ClaimsHandler implementation */ public class ProcessedClaimCollection extends java.util.ArrayList<ProcessedClaim> { /** * */ private static final long serialVersionUID = -4630183900697336428L; }
apache/cxf
1,148
rt/databinding/jaxb/src/test/java/SampleClassInDefaultPackage.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ //CHECKSTYLE:OFF import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class SampleClassInDefaultPackage { private String attribute = "test"; public String getAttribute() { return attribute; } public void setAttribute(String attribute) { this.attribute = attribute; } } //CHECKSTYLE:ON
apache/dolphinscheduler
1,082
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/engine/executor/LogicTaskExecutorRepository.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.server.master.engine.executor; import org.apache.dolphinscheduler.task.executor.TaskExecutorRepository; import org.springframework.stereotype.Component; @Component public class LogicTaskExecutorRepository extends TaskExecutorRepository { }
apache/doris-manager
1,075
manager/general/src/main/java/org/apache/doris/stack/exception/DorisConnectionException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class DorisConnectionException extends Exception { public static final String MESSAGE = "引擎连接信息错误,请检查后重新输入. 错误信息为:"; public DorisConnectionException(String errorInfo) { super(MESSAGE + errorInfo); } }
apache/dubbo-samples
1,117
online_bontique_demo/common/src/main/java/org/apache/dubbo/shop/common/pojo/OrderItem.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.shop.common.pojo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; @Data @AllArgsConstructor @NoArgsConstructor public class OrderItem implements Serializable { private CartItem item; private Money cost; }
apache/dubbo
1,115
dubbo-metrics/dubbo-metrics-api/src/main/java/org/apache/dubbo/metrics/listener/MetricsLifeListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.metrics.listener; import org.apache.dubbo.metrics.event.TimeCounterEvent; /** * Metrics Listener. */ public interface MetricsLifeListener<E extends TimeCounterEvent> extends MetricsListener<E> { default void onEventFinish(E event) {} default void onEventError(E event) {} }
apache/dubbo
1,143
dubbo-common/src/main/java/org/apache/dubbo/common/timer/TimerTask.java
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS 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.timer; import java.util.concurrent.TimeUnit; /** * A task which is executed after the delay specified with * {@link Timer#newTimeout(TimerTask, long, TimeUnit)} (TimerTask, long, TimeUnit)}. */ public interface TimerTask { /** * Executed after the delay specified with * {@link Timer#newTimeout(TimerTask, long, TimeUnit)}. * * @param timeout a handle which is associated with this task */ void run(Timeout timeout) throws Exception; }
apache/eagle
1,101
eagle-core/eagle-metadata/eagle-metadata-base/src/main/java/org/apache/eagle/metadata/service/ApplicationDescService.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.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.metadata.service; import org.apache.eagle.metadata.model.ApplicationDesc; import java.util.Collection; public interface ApplicationDescService { Collection<ApplicationDesc> getApplicationDescs(); ApplicationDesc getApplicationDescByType(String appType); }
apache/fineract
1,104
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/productmix/data/ProductMixRequest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.portfolio.loanproduct.productmix.data; import java.io.Serial; import java.io.Serializable; import java.util.List; public record ProductMixRequest(List<Long> restrictedProducts) implements Serializable { @Serial private static final long serialVersionUID = 1L; }
apache/fineract
1,120
fineract-core/src/main/java/org/apache/fineract/infrastructure/core/filters/BatchFilterChain.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.core.filters; import jakarta.ws.rs.core.UriInfo; import org.apache.fineract.batch.domain.BatchRequest; import org.apache.fineract.batch.domain.BatchResponse; public interface BatchFilterChain { BatchResponse serviceCall(BatchRequest batchRequest, UriInfo uriInfo); }
apache/flink
1,104
flink-table/flink-sql-gateway-api/src/main/java/org/apache/flink/table/gateway/api/results/FetchOrientation.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.gateway.api.results; import org.apache.flink.annotation.PublicEvolving; /** Orientation to fetch results. */ @PublicEvolving public enum FetchOrientation { /** Fetch the next results. */ FETCH_NEXT, /** Fetch the prior results. */ FETCH_PRIOR; }
apache/flink
1,112
flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/utils/OutputTestProgram.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.webmonitor.handlers.utils; /** Simple test program that prints to stdout/stderr. */ public class OutputTestProgram { public static void main(String[] args) throws Exception { System.out.println("hello out!"); System.err.println("hello err!"); } }
apache/flink
1,118
flink-formats/flink-json/src/test/java/org/apache/flink/formats/json/JsonFileCompactionITCase.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.formats.json; import org.apache.flink.table.planner.runtime.stream.sql.FileCompactionITCaseBase; /** Compaction it case for json. */ public class JsonFileCompactionITCase extends FileCompactionITCaseBase { @Override protected String format() { return "json"; } }
apache/geaflow
1,098
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/entity/SystemConfigEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.dal.entity; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Getter; import lombok.Setter; @Getter @Setter @TableName("geaflow_system_config") public class SystemConfigEntity extends NameEntity { private String value; }
apache/geaflow
1,099
geaflow/geaflow-core/geaflow-engine/geaflow-cluster/src/main/java/org/apache/geaflow/cluster/protocol/IEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cluster.protocol; import java.io.Serializable; /** * An interface that defined the data/control flow of the cycle scheduling. */ public interface IEvent extends Serializable { /** * Return the type of event. */ EventType getEventType(); }
apache/geaflow
1,101
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/entity/UserLevelEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.dal.entity; import com.baomidou.mybatisplus.annotation.TableField; import lombok.Getter; import lombok.Setter; @Getter @Setter public abstract class UserLevelEntity extends NameEntity { @TableField("`system`") protected boolean system; }
apache/geaflow
1,104
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/model/StatementSearch.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.dal.model; import lombok.Getter; import lombok.Setter; import org.apache.geaflow.console.common.util.type.GeaflowStatementStatus; @Getter @Setter public class StatementSearch extends IdSearch { GeaflowStatementStatus status; String jobId; }
apache/geode
1,100
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/colocation/SingleThreadColocationLoggerConstructor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.internal.cache.partitioned.colocation; import org.apache.geode.internal.cache.PartitionedRegion; @FunctionalInterface interface SingleThreadColocationLoggerConstructor { SingleThreadColocationLogger create(PartitionedRegion region, long delayMillis, long intervalMillis); }
apache/geode
1,142
geode-core/src/main/java/org/apache/geode/internal/admin/ApplicationVM.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.internal.admin; /** * Represents one application vm (as opposed to a GemFire system manager) connected to a GemFire * distributed system */ public interface ApplicationVM extends GemFireVM { /** * Returns whether or not this "application" VM is a dedicated cache server. */ boolean isDedicatedCacheServer(); }
apache/giraph
1,132
giraph-core/src/main/java/org/apache/giraph/types/FloatWritableToFloatUnwrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.types; import org.apache.hadoop.io.FloatWritable; /** * Converts FloatWritables to Floats */ public class FloatWritableToFloatUnwrapper implements WritableUnwrapper<FloatWritable, Float> { @Override public Float unwrap(FloatWritable writableValue) { return writableValue.get(); } }
apache/giraph
1,135
giraph-core/src/main/java/org/apache/giraph/types/ShortToIntWritableWrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.types; import org.apache.hadoop.io.IntWritable; /** * Converts IntWritables to Shorts */ public class ShortToIntWritableWrapper implements WritableWrapper<IntWritable, Short> { @Override public void wrap(Short javaValue, IntWritable writableValue) { writableValue.set(javaValue); } }
apache/giraph
1,145
giraph-core/src/main/java/org/apache/giraph/conf/BulkConfigurator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.conf; /** * Function that modifies configuration. * * Allows for multi-option configuration to be specified in a common classes. */ public interface BulkConfigurator { /** * Modify given configuration. * * @param conf Configuration to configure */ void configure(GiraphConfiguration conf); }
apache/grails-core
1,117
grails-databinding-core/src/main/groovy/grails/databinding/TypedStructuredBindingEditor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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 grails.databinding; /** * * @since 3.0 * @see StructuredBindingEditor */ public interface TypedStructuredBindingEditor<T> extends StructuredBindingEditor<T> { /** * * @return the type that this editor is used for binding to */ Class<T> getTargetType(); }
apache/grails-core
1,129
grails-shell-cli/src/main/groovy/org/grails/cli/command/NoArgumentsException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.cli.command; import org.springframework.boot.cli.command.CommandException; /** * Exception used to indicate that no arguments were specified. * * @author Phillip Webb */ class NoArgumentsException extends CommandException { private static final long serialVersionUID = 1L; }
apache/groovy
1,170
src/test/groovy/groovy/JavaClass.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package groovy; public class JavaClass { public static class StaticInner { int getResult () { return 239; } static long getIt () { return 30; } public static class Inner2 {} } class NonStaticInner { } static final StaticInner CONST = new StaticInner(); }
apache/hadoop-common
1,130
hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/fi/PipelineTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.fi; import org.apache.hadoop.hdfs.protocol.DatanodeID; import org.apache.hadoop.hdfs.protocol.LocatedBlock; /** A pipeline contains a list of datanodes. */ public interface PipelineTest { public Pipeline initPipeline(LocatedBlock lb); public Pipeline getPipelineForDatanode(DatanodeID id); }
apache/hadoop
1,055
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/api/protocolrecords/KillTaskRequest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.mapreduce.v2.api.protocolrecords; import org.apache.hadoop.mapreduce.v2.api.records.TaskId; public interface KillTaskRequest { public abstract TaskId getTaskId(); public abstract void setTaskId(TaskId taskId); }
apache/hadoop
1,132
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/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. */ /** * Implementation classes private to the S3A store. * Do not use outside of the hadoop-aws module. */ @InterfaceAudience.Private @InterfaceStability.Unstable package org.apache.hadoop.fs.s3a.impl; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hive
1,086
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java
/** * Autogenerated by Thrift Compiler (0.16.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)") public enum LockType implements org.apache.thrift.TEnum { SHARED_READ(1), SHARED_WRITE(2), EXCLUSIVE(3), EXCL_WRITE(4); private final int value; private LockType(int value) { this.value = value; } /** * Get the integer value of this enum value, as defined in the Thrift IDL. */ public int getValue() { return value; } /** * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ @org.apache.thrift.annotation.Nullable public static LockType findByValue(int value) { switch (value) { case 1: return SHARED_READ; case 2: return SHARED_WRITE; case 3: return EXCLUSIVE; case 4: return EXCL_WRITE; default: return null; } } }
apache/hudi
1,130
hudi-common/src/main/java/org/apache/hudi/exception/HoodieMetadataIndexException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.hudi.exception; /** * Exception for Hudi index. */ public class HoodieMetadataIndexException extends HoodieException { public HoodieMetadataIndexException(String message) { super(message); } public HoodieMetadataIndexException(String message, Throwable t) { super(message, t); } }
apache/ignite-3
1,117
modules/eventlog/src/main/java/org/apache/ignite/internal/eventlog/config/schema/ValidEventType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.eventlog.config.schema; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) @interface ValidEventType { }
apache/ignite-3
1,133
modules/raft/src/main/java/org/apache/ignite/raft/jraft/util/timer/TimerTask.java
/* * Copyright 2014 The Netty Project * * The Netty Project licenses this file to you under the Apache License, version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.raft.jraft.util.timer; /** * A task which is executed after the delay specified with Timer#newTimeout(TimerTask, long, TimeUnit). * * Forked from <a href="https://github.com/netty/netty">Netty</a>. */ public interface TimerTask { /** * Executed after the delay specified with Timer#newTimeout(TimerTask, long, TimeUnit). * * @param timeout a handle which is associated with this task */ void run(final Timeout timeout) throws Exception; }
apache/ignite-extensions
1,095
modules/hibernate-ext/hibernate/src/main/java/org/apache/ignite/cache/hibernate/HibernateExceptionConverter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.cache.hibernate; /** * Converts Ignite errors into Hibernate runtime exceptions. */ public interface HibernateExceptionConverter { /** * @param e Exception. * @return Converted exception. */ public RuntimeException convert(Exception e); }
apache/ignite
1,112
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/version/GridCacheVersionAware.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.cache.version; /** * Interface implemented by classes that holds version related information. */ public interface GridCacheVersionAware { /** * Gets version. * * @return Cache entry version. */ public GridCacheVersion version(); }
apache/ignite
1,140
modules/commons/src/main/java/org/apache/ignite/lang/IgniteInClosure.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.lang; import java.io.Serializable; /** * Closure with one in-parameter and void return type. * * @param <E> Type of closure argument. */ public interface IgniteInClosure<E> extends Serializable { /** * Closure body. * * @param e Closure argument. */ public void apply(E e); }
apache/incubator-brooklyn
1,106
brooklyn-library/software/osgi/src/main/java/org/apache/brooklyn/entity/osgi/karaf/KarafDriver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.entity.osgi.karaf; import java.io.File; import org.apache.brooklyn.entity.java.JavaSoftwareProcessDriver; public interface KarafDriver extends JavaSoftwareProcessDriver { public String getRunDir(); public int copyResource(File src, String destination); }
apache/incubator-crail
1,130
client/src/main/java/org/apache/crail/utils/AtomicIntegerModulo.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.crail.utils; import java.util.concurrent.atomic.AtomicInteger; public class AtomicIntegerModulo { private AtomicInteger counter; public AtomicIntegerModulo(){ this.counter = new AtomicInteger(0); } public int getAndIncrement() { return counter.getAndIncrement() & Integer.MAX_VALUE; } }
apache/incubator-datalab
1,118
services/self-service/src/main/java/com/epam/datalab/backendapi/annotation/Project.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.epam.datalab.backendapi.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) public @interface Project { }
apache/incubator-hugegraph
1,108
hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/job/computer/Computer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.job.computer; import java.util.Map; import org.apache.hugegraph.job.Job; public interface Computer { String name(); String category(); Object call(Job<Object> job, Map<String, Object> parameters); void checkParameters(Map<String, Object> parameters); }
apache/incubator-kie-drools
1,101
drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersOutputMarshaller.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.serialization.protobuf; import org.drools.core.marshalling.MarshallerWriteContext; import org.drools.core.time.JobContext; public interface TimersOutputMarshaller { ProtobufMessages.Timers.Timer serialize( JobContext jobCtx, MarshallerWriteContext outputCtx ); }
apache/incubator-kie-drools
1,106
kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieDataFieldException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.pmml.api.exceptions; public class KieDataFieldException extends KiePMMLInternalException { public KieDataFieldException(String message, Throwable cause) { super(message, cause); } public KieDataFieldException(String message) { super(message); } }
apache/incubator-kie-drools
1,113
drools-model/drools-canonical-model/src/main/java/org/drools/model/DroolsEntryPoint.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.model; public interface DroolsEntryPoint { void insert(Object object); void insert(Object object, boolean dynamic); void update(Object object, String... modifiedProperties); void update(Object object, BitMask modifiedProperties); void delete(Object object); }
apache/incubator-kie-drools
1,116
drools-drl/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ForallDescrBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.drl.ast.dsl; import org.drools.drl.ast.descr.ForallDescr; /** * A descriptor builder for Forall */ public interface ForallDescrBuilder<P extends DescrBuilder<?, ?>> extends PatternContainerDescrBuilder<ForallDescrBuilder<P>,ForallDescr>, DescrBuilder<P, ForallDescr> { }
apache/incubator-kie-drools
1,117
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionDefinition.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.api; import java.util.List; public interface FunctionDefinition extends Expression { List<InformationItem> getFormalParameter(); Expression getExpression(); void setExpression(Expression value); FunctionKind getKind(); void setKind(FunctionKind value); }
apache/incubator-kie-drools
1,136
drools-mvel/src/main/java/org/drools/mvel/UnsafeMVELEvaluator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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; import org.drools.base.util.MVELExecutor; import org.drools.mvel.util.RawMVELEvaluator; import org.mvel2.util.Soundex; public class UnsafeMVELEvaluator extends RawMVELEvaluator implements MVELExecutor { @Override public String soundex( String s ) { return Soundex.soundex(s); } }
apache/incubator-kie-kogito-apps
1,085
jobs-service/jobs-service-common/src/main/java/org/kie/kogito/jobs/service/management/MessagingChangeEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.jobs.service.management; public class MessagingChangeEvent { private final boolean enabled; public MessagingChangeEvent(boolean enabled) { this.enabled = enabled; } public boolean isEnabled() { return enabled; } }
apache/incubator-kie-kogito-runtimes
1,115
jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/core/node/SubProcessFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.jbpm.workflow.core.node; import org.kie.api.runtime.process.ProcessContext; import org.kie.kogito.process.ProcessInstance; public interface SubProcessFactory<T> { T bind(ProcessContext ctx); ProcessInstance<T> createInstance(T model); void unbind(ProcessContext ctx, T model); }
apache/incubator-kie-tools
1,105
examples/process-event-driven/travelers/src/main/java/org/acme/travel/TravelerValidationService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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 TravelerValidationService implements RuleUnitData { private final SingletonStore<Traveler> traveler = DataSource.createSingleton(); public SingletonStore<Traveler> getTraveler() { return traveler; } }
apache/incubator-retired-slider
1,103
slider-core/src/main/java/org/apache/slider/server/appmaster/operations/AbstractRMOperation.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.slider.server.appmaster.operations; public abstract class AbstractRMOperation { /** * Execute the operation * @param asyncRMClient client * @param handler handler to perform the execution */ public abstract void execute(RMOperationHandlerActions handler); }
apache/incubator-tuweni
1,141
junit/src/test/java/org/apache/tuweni/junit/VertxExtensionTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ package org.apache.tuweni.junit; import static org.junit.jupiter.api.Assertions.assertNotNull; import io.vertx.core.Vertx; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @ExtendWith(VertxExtension.class) class VertxExtensionTest { @Test void test(@VertxInstance Vertx vertx) { assertNotNull(vertx); } }
apache/incubator-wayang
1,105
wayang-ml4all/src/main/java/org/apache/wayang/ml4all/abstraction/plan/wrappers/LogicalOperatorWrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wayang.ml4all.abstraction.plan.wrappers; import org.apache.wayang.core.function.FunctionDescriptor; public abstract class LogicalOperatorWrapper<R, V> implements FunctionDescriptor.SerializableFunction<V, R> { public void initialise() { } public void finalise() { } }
apache/inlong
1,096
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/controller/group/result/OffsetQueryRes.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.tubemq.manager.controller.group.result; import lombok.Data; import java.util.List; @Data public class OffsetQueryRes { private boolean result; private int errCode; private String errMsg; private List<GroupOffsetRes> dataSet; private int totalCnt; }
apache/jackrabbit
1,126
jackrabbit-core/src/test/java/org/apache/jackrabbit/core/state/DefaultISMLockingTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jackrabbit.core.state; /** * <code>DefaultISMLockingTest</code> executes the test cases implemented in * {@link AbstractISMLockingTest}. */ public class DefaultISMLockingTest extends AbstractISMLockingTest { public ISMLocking createISMLocking() { return new DefaultISMLocking(); } }
apache/james-project
1,130
mailbox/api/src/test/java/org/apache/james/mailbox/model/SearchQueryTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.mailbox.model; import org.junit.jupiter.api.Test; import nl.jqno.equalsverifier.EqualsVerifier; class SearchQueryTest { @Test void searchQueryShouldRespectBeanContract() { EqualsVerifier.forClass(SearchQuery.class) .verify(); } }
apache/jclouds
1,115
providers/azureblob/src/test/java/org/jclouds/azureblob/blobstore/integration/AzureBlobLiveTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.azureblob.blobstore.integration; import org.jclouds.blobstore.integration.internal.BaseBlobLiveTest; import org.testng.annotations.Test; @Test(groups = { "live" }) public class AzureBlobLiveTest extends BaseBlobLiveTest { public AzureBlobLiveTest() { provider = "azureblob"; } }
apache/jclouds
1,126
providers/dynect/src/test/java/org/jclouds/dynect/v3/internal/BaseDynECTApiLiveTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.dynect.v3.internal; import org.jclouds.apis.BaseApiLiveTest; import org.jclouds.dynect.v3.DynECTApi; import org.testng.annotations.Test; @Test(groups = "live") public class BaseDynECTApiLiveTest extends BaseApiLiveTest<DynECTApi> { public BaseDynECTApiLiveTest() { provider = "dynect"; } }
apache/jclouds
1,146
apis/atmos/src/test/java/org/jclouds/atmos/AtmosApiMetadataTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.atmos; import org.jclouds.blobstore.internal.BaseBlobStoreApiMetadataTest; import org.testng.annotations.Test; @Test(groups = "unit", testName = "AtmosApiMetadataTest") public class AtmosApiMetadataTest extends BaseBlobStoreApiMetadataTest { public AtmosApiMetadataTest() { super(new AtmosApiMetadata()); } }
apache/jclouds
1,149
apis/byon/src/test/java/org/jclouds/byon/BYONApiMetadataTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.byon; import org.jclouds.compute.internal.BaseComputeServiceApiMetadataTest; import org.testng.annotations.Test; @Test(groups = "unit", testName = "BYONApiMetadataTest") public class BYONApiMetadataTest extends BaseComputeServiceApiMetadataTest { public BYONApiMetadataTest() { super(new BYONApiMetadata()); } }
apache/jena
1,142
jena-arq/src/test/java/org/apache/jena/sparql/modify/TestUpdateGraphMem.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.modify; import org.apache.jena.sparql.core.DatasetGraph; import org.apache.jena.sparql.core.DatasetGraphFactory; public class TestUpdateGraphMem extends AbstractTestUpdateGraph { @Override protected DatasetGraph getEmptyDatasetGraph() { return DatasetGraphFactory.create(); } }
apache/jena
1,152
jena-iri/src/main/java/org/apache/jena/iri/impl/GroupAction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.iri.impl; import java.util.regex.Matcher; public abstract class GroupAction { public static final GroupAction NoAction = new GroupAction() { @Override public void check(Matcher m, Parser parser, int range) { } }; abstract public void check(Matcher m, Parser parser, int range); }
apache/kafka
1,145
server/src/main/java/org/apache/kafka/server/ReplicaState.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.server; /** * Represents the state of a replica. */ public enum ReplicaState { TRUNCATING { @Override public String toString() { return "Truncating"; } }, FETCHING { @Override public String toString() { return "Fetching"; } } }
apache/kafka
1,154
server/src/main/java/org/apache/kafka/server/ActionQueue.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.server; /** * The action queue is used to collect actions which need to be executed later. */ public interface ActionQueue { /** * Add action to this queue. * @param action action */ void add(Runnable action); /** * Try to complete all delayed actions. */ void tryCompleteActions(); }
apache/kylin
1,135
src/common-service/src/test/java/org/apache/kylin/rest/cache/CacheConstantTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.rest.cache; import org.apache.kylin.common.Singletons; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; class CacheConstantTest { @Test void test() { Assertions.assertThrows(RuntimeException.class, () -> Singletons.getInstance(CacheConstant.class)); } }
apache/linkis
1,059
linkis-spring-cloud-services/linkis-service-gateway/linkis-spring-cloud-gateway/src/main/java/org/apache/linkis/gateway/springcloud/LinkisGatewayApplication.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.gateway.springcloud; import org.apache.linkis.LinkisBaseServerApp; public class LinkisGatewayApplication { public static void main(String[] args) throws ReflectiveOperationException { LinkisBaseServerApp.main(args); } }
apache/linkis
1,093
linkis-engineconn-plugins/nebula/src/main/java/org/apache/linkis/engineplugin/nebula/exception/NebulaStateInvalidException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.engineplugin.nebula.exception; import org.apache.linkis.common.exception.ErrorException; public class NebulaStateInvalidException extends ErrorException { public NebulaStateInvalidException(int errorCode, String message) { super(errorCode, message); } }
apache/linkis
1,093
linkis-engineconn-plugins/presto/src/main/java/org/apache/linkis/engineplugin/presto/exception/PrestoStateInvalidException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.engineplugin.presto.exception; import org.apache.linkis.common.exception.ErrorException; public class PrestoStateInvalidException extends ErrorException { public PrestoStateInvalidException(int errorCode, String message) { super(errorCode, message); } }
apache/linkis
1,094
linkis-engineconn-plugins/doris/src/main/java/org/apache/linkis/engineplugin/doris/exception/DorisStreamLoadFileException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.engineplugin.doris.exception; import org.apache.linkis.common.exception.ErrorException; public class DorisStreamLoadFileException extends ErrorException { public DorisStreamLoadFileException(int errorCode, String message) { super(errorCode, message); } }
apache/linkis
1,109
linkis-commons/linkis-protocol/src/main/java/org/apache/linkis/protocol/query/cache/FailedToWriteCache.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.protocol.query.cache; public class FailedToWriteCache implements ResponseWriteCache { private String errorMessage; public FailedToWriteCache(String errorMessage) { this.errorMessage = errorMessage; } public String getErrorMessage() { return errorMessage; } }
apache/logging-log4j2
1,136
log4j-api-java9/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.logging.log4j.util; /** * This is a dummy class and is only here to allow module-info.java to compile. It will not * be copied into the log4j-api module. */ public final class LoaderUtil { public static ClassLoader getThreadContextClassLoader() { return LoaderUtil.class.getClassLoader(); } }
apache/lucene
1,145
lucene/core/src/java/org/apache/lucene/util/ThreadInterruptedException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.lucene.util; /** * Thrown by lucene on detecting that Thread.interrupt() had been called. Unlike Java's * InterruptedException, this exception is not checked.. */ public final class ThreadInterruptedException extends RuntimeException { public ThreadInterruptedException(InterruptedException ie) { super(ie); } }
apache/manifoldcf
1,128
connectors/filenet/build-stub/src/main/java/com/filenet/api/meta/ClassDescription.java
/* $Id$ */ /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.filenet.api.meta; import com.filenet.api.collection.PropertyDescriptionList; import com.filenet.api.core.IndependentObject; /** Stub interface to allow the connector to build fully. */ public interface ClassDescription extends Metadata, IndependentObject { public PropertyDescriptionList get_PropertyDescriptions(); }
apache/maven-compiler-plugin
1,092
src/it/MCOMPILER-395-processorpath-exclude-deps/annotation-user/src/main/java/mcompiler395/SimpleAnnotation.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package mcompiler395; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE) @Retention(RetentionPolicy.SOURCE) public @interface SimpleAnnotation {}
apache/maven-compiler-plugin
1,140
src/it/MCOMPILER-366/src/main/java/org/maven/test/Main.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.maven.test; import org.codehaus.plexus.resource.ResourceManager; import org.codehaus.plexus.util.StringUtils; public class Main { /** * @param args */ public static void main(String[] args) { System.out.println(StringUtils.concatenate(args)); ResourceManager manager = null; } }
apache/mina-sshd
1,119
sshd-core/src/main/java/org/apache/sshd/common/kex/extension/KexExtensionHandlerManager.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.sshd.common.kex.extension; /** * TODO Add javadoc * * @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> */ public interface KexExtensionHandlerManager { KexExtensionHandler getKexExtensionHandler(); void setKexExtensionHandler(KexExtensionHandler handler); }
apache/mina-sshd
1,133
sshd-sftp/src/main/java/org/apache/sshd/sftp/server/DefaultUserPrincipal.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.sshd.sftp.server; import java.nio.file.attribute.UserPrincipal; /** * @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> */ public class DefaultUserPrincipal extends PrincipalBase implements UserPrincipal { public DefaultUserPrincipal(String name) { super(name); } }
apache/myfaces
1,144
api/src/main/java/jakarta/faces/view/facelets/TagHandlerDelegate.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package jakarta.faces.view.facelets; import java.io.IOException; import jakarta.faces.component.UIComponent; /** * @since 2.0 */ public abstract class TagHandlerDelegate { public abstract void apply(FaceletContext ctx, UIComponent comp) throws IOException; public abstract MetaRuleset createMetaRuleset(Class type); }
apache/nifi
1,077
nifi-extension-bundles/nifi-standard-services/nifi-oauth2-provider-api/src/main/java/org/apache/nifi/oauth2/AccessTokenAcquisitionException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.oauth2; public class AccessTokenAcquisitionException extends Exception { public AccessTokenAcquisitionException(String message) { super(message); } public AccessTokenAcquisitionException(Throwable t) { super(t); } }
apache/oodt
1,129
resource/src/main/java/org/apache/oodt/cas/resource/batchmgr/AvroRpcBatchMgrFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.oodt.cas.resource.batchmgr; import org.apache.oodt.cas.resource.monitor.Monitor; public class AvroRpcBatchMgrFactory implements BatchmgrFactory { private Monitor mon = null; public AvroRpcBatchMgrFactory(){} public Batchmgr createBatchmgr() { return new AvroRpcBatchMgr(); } }
apache/openjpa
1,130
openjpa-kernel/src/main/java/org/apache/openjpa/datacache/TypesChangedListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.datacache; /** * An entity that wishes to be notified when types change. * * @author Abe White * @since 0.3.0 */ public interface TypesChangedListener { /** * Notification that instances of persistent types have changed. */ void onTypesChanged(TypesChangedEvent event); }
apache/openmeetings
1,122
openmeetings-service/src/main/java/org/apache/jackrabbit/webdav/observation/EventType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.webdav.observation; import org.apache.jackrabbit.webdav.xml.Namespace; import org.apache.jackrabbit.webdav.xml.XmlSerializable; /** * <code>EventType</code>... */ public interface EventType extends XmlSerializable { public String getName(); public Namespace getNamespace(); }