repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
openjdk/jtreg
1,195
test/groups/d3/d33/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()); } }
oracle/javavscode
1,138
nbcode/integration/src/org/netbeans/modules/nbcode/integration/LspHtmlViewer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.netbeans.modules.nbcode.integration; import org.netbeans.modules.java.lsp.server.ui.AbstractLspHtmlViewer; import org.netbeans.spi.htmlui.HTMLViewerSpi; import org.openide.util.lookup.ServiceProvider; @ServiceProvider(service = HTMLViewerSpi.class) public final class LspHtmlViewer extends AbstractLspHtmlViewer { }
oracle/json-in-db
1,131
JdbcExamples/src/main/java/movie/RunAll.java
package movie; /** * Runs all the examples at once. */ public class RunAll { public static void main(String[] args) throws Exception { print("Running CreateTable"); CreateTable.main(args); print("Running Insert"); Insert.main(args); print("Running JSONP"); JSONP.main(args); print("Running JSONB"); JSONB.main(args); print("Running Update"); Update.main(args); print("Running UpdateMerge"); UpdateMerge.main(args); print("Running UpdateTransform"); UpdateTransform.main(args); print("Running GetAll"); GetAll.main(args); print("Running Filter"); Filter.main(args); print("Running Filter2"); Filter2.main(args); print("Running BinaryJson"); BinaryJson.main(args); } private static void print(String title) { System.out.println(); System.out.println(title); System.out.println("------------------------"); } }
apache/commons-statistics
1,107
commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/IntStatistic.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.statistics.descriptive; import java.util.function.IntConsumer; /** * Represents a state object for computing a statistic over {@code int} valued input(s). * * @since 1.1 */ public interface IntStatistic extends IntConsumer, StatisticResult { // Composite interface }
apache/commons-validator
1,152
src/test/java/org/apache/commons/validator/ResultPair.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.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.validator; /** * Groups tests and expected results. */ public class ResultPair { public final String item; public final boolean valid; public ResultPair(final String item, final boolean valid) { this.item = item; this.valid = valid; // Whether the individual part of URL is valid. } }
apache/commons-vfs
1,125
commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommitListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.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.vfs2.operations.vcs; /** * The VCS commit listener. * * @since 0.1 */ public interface VcsCommitListener { /** * Handles commit events. * * @param path The path. * @param contentStatus The status; */ void commited(String path, VcsStatus contentStatus); }
apache/cxf
1,125
systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStoreNoAnnotationsInterface.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.systest.jaxrs; import java.util.List; public interface BookStoreNoAnnotationsInterface { Book getBook(Long id) throws BookNotFoundFault; List<Book> getBooks(List<Book> thebooks); void pingBookStore(); ChapterNoAnnotations getBookChapter(Long id) throws BookNotFoundFault; }
apache/cxf
1,128
rt/rs/extensions/providers/src/test/java/org/apache/cxf/jaxrs/resources/ManyTags.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.jaxrs.resources; import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "ManyTags") public class ManyTags { private Tags tags; public ManyTags() { } public void setTags(Tags t) { tags = t; } public Tags getTags() { return tags; } }
apache/cxf
1,135
core/src/main/java/org/apache/cxf/configuration/spring/SimpleBeanDefinitionParser.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.configuration.spring; /** * This bean parser will map all the attributes to properties on the bean. * */ public class SimpleBeanDefinitionParser extends AbstractBeanDefinitionParser { public SimpleBeanDefinitionParser(Class<?> beanClass) { super(); setBeanClass(beanClass); } }
apache/dolphinscheduler
1,103
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/exceptions/CronParseException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.service.exceptions; public class CronParseException extends Exception { public CronParseException(String message) { super(message); } public CronParseException(String message, Throwable throwable) { super(message, throwable); } }
apache/dolphinscheduler
1,108
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/utils/ExceptionUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.utils; import org.springframework.dao.DataAccessResourceFailureException; public class ExceptionUtils { public static boolean isDatabaseConnectedFailedException(Throwable e) { return e instanceof DataAccessResourceFailureException; } }
apache/drill
1,143
exec/java-exec/src/test/java/org/apache/drill/exec/compile/ExampleTemplate.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.compile; public abstract class ExampleTemplate implements ExampleExternalInterface{ static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ExampleTemplate.class); @Override public final String getData() { return this.getInternalData(); } abstract String getInternalData(); }
apache/drill
1,149
exec/rpc/src/main/java/org/apache/drill/exec/rpc/ClientConnection.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.rpc; import javax.security.sasl.SaslClient; public interface ClientConnection extends RemoteConnection, EncryptionContext { // set only once void setSaslClient(SaslClient saslClient); // get only after setting SaslClient getSaslClient(); // dispose the saslClient object void disposeSaslClient(); }
apache/drill
1,152
common/src/main/java/org/apache/drill/exec/util/AssertionUtil.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.util; public class AssertionUtil { public static final boolean ASSERT_ENABLED; static { boolean isAssertEnabled = false; assert isAssertEnabled = true; ASSERT_ENABLED = isAssertEnabled; } public static boolean isAssertionsEnabled(){ return ASSERT_ENABLED; } private AssertionUtil() { } }
apache/druid
1,115
server/src/main/java/org/apache/druid/server/coordinator/balancer/CachingCostBalancerStrategyConfig.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.server.coordinator.balancer; import com.fasterxml.jackson.annotation.JsonProperty; public class CachingCostBalancerStrategyConfig { @JsonProperty private boolean awaitInitialization = false; public boolean isAwaitInitialization() { return awaitInitialization; } }
apache/druid
1,128
processing/src/main/java/org/apache/druid/query/rowsandcols/concrete/FrameRowsAndColumns.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.query.rowsandcols.concrete; import org.apache.druid.frame.Frame; import org.apache.druid.query.rowsandcols.RowsAndColumns; import org.apache.druid.segment.column.RowSignature; public interface FrameRowsAndColumns extends RowsAndColumns { Frame getFrame(); RowSignature getSignature(); }
apache/dubbo-samples
1,059
3-extensions/serialization/dubbo-samples-protobuf-json/protobuf-json-serialization-api/src/main/java/org/apache/dubbo/sample/protobuf/GoogleProtobufService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.sample.protobuf; /** * GoogleProtobufService * Date: 2019-10-03 */ public interface GoogleProtobufService { GoogleProtobufBasic.GooglePBResponseType callGoogleProtobuf(GoogleProtobufBasic.GooglePBRequestType requestType); }
apache/dubbo-spi-extensions
1,077
dubbo-cluster-extensions/dubbo-cluster-router-mesh/src/main/java/org/apache/dubbo/rpc/cluster/router/mesh/util/MeshRuleListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.cluster.router.mesh.util; import java.util.List; import java.util.Map; public interface MeshRuleListener { void onRuleChange(String appName, List<Map<String, Object>> rules); void clearRule(String appName); String ruleSuffix(); }
apache/dubbo
1,094
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/injvm/SingleRegistryCenterInjvmService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.config.integration.single.injvm; /** * This interface is used to check if the exported injvm protocol works well or not. */ public interface SingleRegistryCenterInjvmService { /** * The simple method for testing. */ String hello(String name); }
apache/dubbo
1,128
dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/filter/InvocationInterceptorBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.cluster.filter; import org.apache.dubbo.common.extension.SPI; import org.apache.dubbo.rpc.cluster.ClusterInvoker; @SPI("default") public interface InvocationInterceptorBuilder { <T> ClusterInvoker<T> buildClusterInterceptorChain(final ClusterInvoker<T> invoker, String key, String group); }
apache/dubbo
1,128
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/mock/GreetingLocal3.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.config.mock; import org.apache.dubbo.config.api.Greeting; public class GreetingLocal3 implements Greeting { private Greeting greeting; public GreetingLocal3(Greeting greeting) { this.greeting = greeting; } @Override public String hello() { return null; } }
apache/felix-dev
1,097
dependencymanager/org.apache.felix.dependencymanager.itest/src/org/apache/felix/dm/itest/api/ServiceRaceParallelTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.dm.itest.api; /** * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> */ public class ServiceRaceParallelTest extends ServiceRaceTest { public ServiceRaceParallelTest() { setParallel(); // Configure DM to use a threadpool } }
apache/felix-dev
1,097
dependencymanager/org.apache.felix.dependencymanager.lambda/src/org/apache/felix/dm/lambda/callbacks/SerializableLambda.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.dm.lambda.callbacks; import java.io.Serializable; /** * Base interface for serializable lambdas. Some lambda must be serializable in order to allow to introspect their type and method signatures. */ public interface SerializableLambda extends Serializable { }
apache/fineract
1,106
fineract-core/src/main/java/org/apache/fineract/infrastructure/event/business/domain/AbstractBusinessEvent.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.event.business.domain; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor public abstract class AbstractBusinessEvent<T> implements BusinessEvent<T> { private final T value; @Override public T get() { return value; } }
apache/fineract
1,112
fineract-provider/src/main/java/org/apache/fineract/notification/service/NotificationWritePlatformService.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.notification.service; import java.util.Collection; public interface NotificationWritePlatformService { Long notify(Collection<Long> userIds, String objectType, Long objectId, String action, Long actorId, String notificationContent, boolean isSystemGenerated); }
apache/fineract
1,120
fineract-provider/src/main/java/org/apache/fineract/portfolio/client/domain/ClientChargeRepository.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.client.domain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; public interface ClientChargeRepository extends JpaRepository<ClientCharge, Long>, JpaSpecificationExecutor<ClientCharge> { }
apache/flink
1,100
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/state/StateKeyContext.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.runtime.operators.window.tvf.state; import org.apache.flink.table.data.RowData; /** Context to switch current key in state backend. */ public interface StateKeyContext { /** Sets current state key to given value. */ void setCurrentKey(RowData key); }
apache/geode
1,101
geode-lucene/src/integrationTest/java/org/apache/geode/cache/lucene/NestedObjectSerializerOnGrandSubclassIntegrationTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.cache.lucene; import org.apache.geode.cache.lucene.test.GrandSubCustomer; public class NestedObjectSerializerOnGrandSubclassIntegrationTest extends NestedObjectSeralizerIntegrationTest { protected CustomerFactory getCustomerFactory() { return GrandSubCustomer::new; } }
apache/geode
1,148
geode-core/src/main/java/org/apache/geode/internal/cache/TxEntryFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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; public interface TxEntryFactory { /** * Creates an instance of TXEntry. * * @return the created entry */ TXEntry createEntry(LocalRegion localRegion, KeyInfo key, TXStateInterface tx); TXEntry createEntry(LocalRegion localRegion, KeyInfo key, TXStateInterface tx, boolean rememberReads); }
apache/giraph
1,136
giraph-core/src/main/java/org/apache/giraph/types/ByteWritableToShortUnwrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.ByteWritable; /** * Converts ByteWritables to Shorts */ public class ByteWritableToShortUnwrapper implements WritableUnwrapper<ByteWritable, Short> { @Override public Short unwrap(ByteWritable writableValue) { return (short) writableValue.get(); } }
apache/giraph
1,139
giraph-core/src/main/java/org/apache/giraph/types/ShortToLongWritableWrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.LongWritable; /** * Converts Shorts to LongWritables */ public class ShortToLongWritableWrapper implements WritableWrapper<LongWritable, Short> { @Override public void wrap(Short javaValue, LongWritable writableValue) { writableValue.set(javaValue); } }
apache/giraph
1,141
giraph-core/src/main/java/org/apache/giraph/types/ByteToIntWritableWrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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 Bytes to IntWritables */ public class ByteToIntWritableWrapper implements WritableWrapper<IntWritable, Byte> { @Override public void wrap(Byte javaValue, IntWritable writableValue) { writableValue.set(javaValue.intValue()); } }
apache/gobblin
1,098
gobblin-modules/gobblin-metadata/src/main/java/org/apache/gobblin/metadata/provider/DatasetAwareMetadataProviderFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.metadata.provider; import com.typesafe.config.Config; /** * A factory that creates {@link DatasetAwareMetadataProvider} from {@link Config}. */ interface DatasetAwareMetadataProviderFactory { DatasetAwareMetadataProvider createMetadataProvider(Config config); }
apache/gobblin
1,138
gobblin-api/src/main/java/org/apache/gobblin/fork/CopyNotSupportedException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.fork; /** * A type of {@link java.lang.Exception}s thrown when copying is not supported. * * @author Yinan Li */ public class CopyNotSupportedException extends Exception { private static final long serialVersionUID = 1L; public CopyNotSupportedException(String message) { super(message); } }
apache/groovy
1,141
src/main/java/org/codehaus/groovy/transform/tailrec/VariableReplacedListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.codehaus.groovy.transform.tailrec; import org.codehaus.groovy.ast.expr.VariableExpression; public interface VariableReplacedListener { VariableReplacedListener NULL = (oldVar, newVar) -> { //do nothing }; void variableReplaced(VariableExpression oldVar, VariableExpression newVar); }
apache/hadoop-common
1,043
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/api/protocolrecords/GetDelegationTokenResponse.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.yarn.api.records.Token; public interface GetDelegationTokenResponse { void setDelegationToken(Token clientDToken); Token getDelegationToken(); }
apache/hadoop-common
1,101
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/SubView.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.yarn.webapp; import org.apache.hadoop.classification.InterfaceAudience; /** * Interface for SubView to avoid top-level inclusion */ @InterfaceAudience.LimitedPrivate({"YARN", "MapReduce"}) public interface SubView { /** * render the sub-view */ void renderPartial(); }
apache/hadoop
1,110
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextCreateMkdir.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.fs; import org.junit.jupiter.api.BeforeEach; public class TestLocalFSFileContextCreateMkdir extends FileContextCreateMkdirBaseTest { @Override @BeforeEach public void setUp() throws Exception { fc = FileContext.getLocalFSFileContext(); super.setUp(); } }
apache/harmony
1,135
classlib/modules/swing/src/main/java/common/javax/swing/event/AncestorListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Sergey Burlak */ package javax.swing.event; import java.util.EventListener; public interface AncestorListener extends EventListener { public void ancestorAdded(final AncestorEvent e); public void ancestorMoved(final AncestorEvent e); public void ancestorRemoved(final AncestorEvent e); }
apache/harmony
1,144
classlib/modules/swing/src/main/java/common/javax/swing/tree/TreeNode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Anton Avtamonov */ package javax.swing.tree; import java.util.Enumeration; public interface TreeNode { TreeNode getChildAt(int childIndex); int getChildCount(); TreeNode getParent(); int getIndex(TreeNode node); boolean getAllowsChildren(); boolean isLeaf(); Enumeration children(); }
apache/hbase
1,132
hbase-logging/src/test/java/org/apache/hadoop/hbase/logging/HBaseTestOutputStreamManager.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.logging; public class HBaseTestOutputStreamManager extends org.apache.logging.log4j.core.appender.OutputStreamManager { public HBaseTestOutputStreamManager(Target target, org.apache.logging.log4j.core.Layout<?> layout) { super(target.output(), target.name(), layout, true); } }
apache/hbase
1,137
hbase-annotations/src/test/java/org/apache/hadoop/hbase/testclassification/ZKTests.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.testclassification; /** * For tests which test the general logic of zookeeper related tools, such as * {@code RecoverableZooKeeper}, not for tests which depend on ZooKeeper. */ public interface ZKTests { public static final String TAG = "org.apache.hadoop.hbase.testclassification.ZKTests"; }
apache/hudi
1,126
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/TableFormatCompletionAction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.common.table.timeline; /** * Functional Interface for executing table format actions. */ @FunctionalInterface public interface TableFormatCompletionAction { /** * Execute the table format action with the given completed instant. */ void execute(HoodieInstant completedInstant); }
apache/ignite-3
1,100
modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/sql/planner/ItSqlPlannerReplCommandTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.cli.commands.sql.planner; /** * Tests for {@link SqlPlannerReplCommand}. */ public class ItSqlPlannerReplCommandTest extends ItSqlPlannerCommandTest { @Override protected Class<?> getCommandClass() { return SqlPlannerReplCommand.class; } }
apache/ignite-3
1,112
modules/runner/src/integrationTest/java/org/apache/ignite/internal/network/ItEmbeddedIgniteClusterTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.network; import org.apache.ignite.Ignite; /** * Tests for {@link org.apache.ignite.network.IgniteCluster} API. */ public class ItEmbeddedIgniteClusterTest extends ItAbstractIgniteClusterTest { @Override protected Ignite ignite() { return node(0); } }
apache/ignite-extensions
1,120
modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/dataset/feature/extractor/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * <!-- Package description. --> * Package for upstream object vectorizations. This package contains {@link org.apache.ignite.ml.dataset.feature.extractor.Vectorizer} * implementations allowing extract feature and label values from upstream object. */ package org.apache.ignite.ml.dataset.feature.extractor;
apache/ignite
1,121
modules/web/src/test/java/org/apache/ignite/internal/websession/WebSessionTransactionalV1SelfTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.websession; /** * Tests web sessions with TRANSACTIONAL cache in compatibility mode. */ public class WebSessionTransactionalV1SelfTest extends WebSessionTransactionalSelfTest { /** {@inheritDoc} */ @Override protected boolean keepBinary() { return false; } }
apache/ignite
1,135
modules/numa-allocator/src/main/java/org/apache/ignite/mem/NumaAllocationStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.mem; /** * Basic interface for allocating memory on NUMA nodes with different policies using {@code libnuma}. */ public interface NumaAllocationStrategy { /** * @param size Size of allocated memory. * * @return Pointer to memory. */ public long allocateMemory(long size); }
apache/incubator-datalab
1,125
services/billing-aws/src/test/java/com/epam/datalab/module/AdapterConsoleTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES 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.module; import org.junit.Test; import static junit.framework.TestCase.assertEquals; public class AdapterConsoleTest { @Test public void config() { AdapterConsole adapter = new AdapterConsole(); assertEquals(ModuleName.ADAPTER_CONSOLE, adapter.getType()); } }
apache/incubator-datalab
1,135
services/datalab-model/src/main/java/com/epam/datalab/dto/SharedWith.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.epam.datalab.dto; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Data; import java.util.TreeSet; @Data @JsonIgnoreProperties(ignoreUnknown = true) public class SharedWith { private TreeSet<String> users = new TreeSet<>(); private TreeSet<String> groups = new TreeSet<>(); }
apache/incubator-heron
1,147
heron/api/src/java/org/apache/heron/api/utils/Slf4jUtils.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.heron.api.utils; import org.slf4j.bridge.SLF4JBridgeHandler; public final class Slf4jUtils { private Slf4jUtils() { } public static void installSLF4JBridge() { if (!SLF4JBridgeHandler.isInstalled()) { SLF4JBridgeHandler.removeHandlersForRootLogger(); SLF4JBridgeHandler.install(); } } }
apache/incubator-kie-drools
1,125
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/FEELDateFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.feel.runtime; import java.time.LocalDate; import java.time.temporal.TemporalAccessor; public interface FEELDateFunction extends FEELFunction { TemporalAccessor DEFAULT_VALUE = LocalDate.of(1970, 1, 1); @Override default Object defaultValue() { return DEFAULT_VALUE; } }
apache/incubator-kie-kogito-apps
1,079
jobs-service/jobs-service-infinispan/src/test/java/org/kie/kogito/jobs/service/resource/KeycloakInfinispanJobServiceTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.resource; import io.quarkus.test.junit.QuarkusTest; import io.quarkus.test.junit.TestProfile; @QuarkusTest @TestProfile(KeycloakQuarkusTestProfile.class) class KeycloakInfinispanJobServiceTest extends BaseKeycloakJobServiceTest { }
apache/incubator-kie-kogito-apps
1,104
jitexecutor/jitexecutor-runner/src/test/java/org/kie/kogito/jitexecutor/runner/JITDMNResourceIT.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.jitexecutor.runner; import org.kie.kogito.jitexecutor.dmn.api.JITDMNResourceTest; import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest public class JITDMNResourceIT extends JITDMNResourceTest { // Execute the same tests but in native mode. }
apache/incubator-kie-kogito-apps
1,104
jitexecutor/jitexecutor-runner/src/test/java/org/kie/kogito/jitexecutor/runner/MultipleModelsIT.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.jitexecutor.runner; import org.kie.kogito.jitexecutor.dmn.api.MultipleModelsTest; import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest public class MultipleModelsIT extends MultipleModelsTest { // Execute the same tests but in native mode. }
apache/incubator-kie-kogito-apps
1,104
jitexecutor/jitexecutor-runner/src/test/java/org/kie/kogito/jitexecutor/runner/SchemaResourceIT.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.jitexecutor.runner; import org.kie.kogito.jitexecutor.dmn.api.SchemaResourceTest; import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest public class SchemaResourceIT extends SchemaResourceTest { // Execute the same tests but in native mode. }
apache/incubator-kie-kogito-runtimes
1,093
api/kogito-api-incubation-predictions/src/main/java/org/kie/kogito/incubation/predictions/PredictionIds.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.incubation.predictions; import org.kie.kogito.incubation.common.ComponentRoot; public class PredictionIds implements ComponentRoot { public LocalPredictionId get(String fileName, String name) { return new LocalPredictionId(fileName, name); } }
apache/incubator-kie-kogito-runtimes
1,107
api/kogito-api/src/main/java/org/kie/kogito/usertask/events/UserTaskVariableEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.usertask.events; public interface UserTaskVariableEvent extends UserTaskEvent { enum VariableEventType { INPUT, OUTPUT } String getVariableName(); Object getOldValue(); Object getNewValue(); VariableEventType getVariableType(); }
apache/incubator-kie-optaplanner
1,112
core/optaplanner-core-impl/src/main/java/org/optaplanner/core/config/phase/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. */ @XmlSchema( namespace = SolverConfig.XML_NAMESPACE, elementFormDefault = XmlNsForm.QUALIFIED) package org.optaplanner.core.config.phase; import jakarta.xml.bind.annotation.XmlNsForm; import jakarta.xml.bind.annotation.XmlSchema; import org.optaplanner.core.config.solver.SolverConfig;
apache/incubator-myriad
1,116
myriad-scheduler/src/main/java/org/apache/myriad/scheduler/event/RegisteredEventFactory.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.myriad.scheduler.event; import com.lmax.disruptor.EventFactory; /** * mesos register event factory */ public class RegisteredEventFactory implements EventFactory<RegisteredEvent> { @Override public RegisteredEvent newInstance() { return new RegisteredEvent(); } }
apache/incubator-nemo
1,130
common/src/main/java/org/apache/nemo/common/partitioner/DedicatedKeyPerElement.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.nemo.common.partitioner; import java.lang.annotation.*; /** * Declares that all of the designated keys for each element in a {@link Partitioner} is dedicated for the element. */ @Target({ElementType.TYPE}) @Documented @Retention(RetentionPolicy.RUNTIME) public @interface DedicatedKeyPerElement { }
apache/incubator-retired-wave
1,125
wave/src/main/java/org/waveprotocol/wave/model/document/parser/ItemType.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.waveprotocol.wave.model.document.parser; /** * Supported item types from the XmlParser */ public enum ItemType { /** Start tag, including attributes */ START_ELEMENT, /** End tag */ END_ELEMENT, /** Non-empty text data */ TEXT, /** Processing instruction */ PROCESSING_INSTRUCTION, }
apache/inlong
1,116
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/constant/SnapshotModeConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.agent.constant; /** * Constants of job fetcher snapshot mode */ public class SnapshotModeConstants { public static final String INITIAL = "initial"; public static final String EARLIEST_OFFSET = "never"; public static final String SPECIFIC_OFFSETS = "schema_only_recovery"; }
apache/inlong
1,137
inlong-sdk/sort-sdk/src/main/java/org/apache/inlong/sdk/sort/api/Configurable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.sdk.sort.api; import org.apache.inlong.sdk.sort.entity.InLongTopic; /** * Interface that enable components the ability to be configured by {@link InLongTopic} */ public interface Configurable { /** * Configure by topic * @param topic Topic info. */ void configure(InLongTopic topic); }
apache/iotdb-web-workbench
1,133
backend/src/main/java/org/apache/iotdb/admin/model/dto/QueryInfoDTO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.admin.model.dto; import org.apache.iotdb.admin.model.vo.QueryDataStrVO; import lombok.Data; import java.util.List; @Data public class QueryInfoDTO { private Long latestRunningTime; private Integer totalCount; private Integer totalPage; List<QueryDataStrVO> filteredQueryDataStrVOSList; }
apache/iotdb-web-workbench
1,135
backend/src/main/java/org/apache/iotdb/admin/model/vo/RecordVO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.admin.model.vo; import lombok.Data; import java.io.Serializable; import java.util.Date; import java.util.List; import java.util.Map; @Data public class RecordVO implements Serializable { private List<Date> timeList; private List<String> valueList; private Map<String, Integer> textCount; }
apache/iotdb
1,111
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/trigger/exception/TriggerExecutionException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.commons.trigger.exception; public class TriggerExecutionException extends RuntimeException { public TriggerExecutionException(String message) { super(message); } public TriggerExecutionException(String message, Throwable cause) { super(message, cause); } }
apache/iotdb
1,119
iotdb-core/metrics/core/src/main/java/org/apache/iotdb/metrics/core/type/IoTDBTimerMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.metrics.core.type; import javax.management.ObjectName; public interface IoTDBTimerMBean { ObjectName objectName(); long getCount(); double getSum(); double getMax(); double getMean(); int getSize(); double get50thPercentile(); double get99thPercentile(); }
apache/jclouds
1,127
apis/atmos/src/test/java/org/jclouds/atmos/blobstore/integration/AtmosContainerLiveTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.blobstore.integration; import org.jclouds.blobstore.integration.internal.BaseContainerLiveTest; import org.testng.annotations.Test; @Test(groups = { "live" }) public class AtmosContainerLiveTest extends BaseContainerLiveTest { public AtmosContainerLiveTest() { provider = "atmos"; } }
apache/jclouds
1,131
providers/profitbricks/src/main/java/org/jclouds/profitbricks/domain/ProvisioningState.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.profitbricks.domain; import com.google.common.base.Enums; public enum ProvisioningState { INACTIVE, INPROCESS, AVAILABLE, DELETED, ERROR, UNRECOGNIZED; public static ProvisioningState fromValue(String value) { return Enums.getIfPresent(ProvisioningState.class, value).or(UNRECOGNIZED); } }
apache/jena
1,141
jena-arq/src/main/java/org/apache/jena/sparql/function/library/leviathan/ten.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.sparql.function.library.leviathan; import org.apache.jena.sparql.expr.NodeValue; import org.apache.jena.sparql.function.FunctionBase1; public class ten extends FunctionBase1 { @Override public NodeValue exec(NodeValue v) { return NodeValue.makeDouble(Math.pow(10d, v.getDouble())); } }
apache/jena
1,154
jena-arq/src/main/java/org/apache/jena/atlas/event/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.jena.atlas.event; import org.apache.jena.sparql.util.Symbol ; public class EventType extends Symbol { public EventType(Class<?> cls, String label) { this(cls.getName()+"."+label) ; } public EventType(String label) { super(label) ; } @Override public String toString() { return "event:"+getSymbol() ; } }
apache/kafka
1,139
clients/src/main/java/org/apache/kafka/common/errors/InvalidVoterKeyException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.common.errors; public class InvalidVoterKeyException extends ApiException { private static final long serialVersionUID = 1; public InvalidVoterKeyException(String s) { super(s); } public InvalidVoterKeyException(String message, Throwable cause) { super(message, cause); } }
apache/kafka
1,155
streams/src/test/java/org/apache/kafka/test/MockInitializer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.test; import org.apache.kafka.streams.kstream.Initializer; public class MockInitializer { private static class StringInit implements Initializer<String> { @Override public String apply() { return "0"; } } public static final Initializer<String> STRING_INIT = new StringInit(); }
apache/karaf
1,135
shell/console/src/main/java/org/apache/felix/gogo/commands/basic/ActionPreparator.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.gogo.commands.basic; import java.util.List; import org.apache.felix.gogo.commands.Action; import org.apache.felix.service.command.CommandSession; @Deprecated public interface ActionPreparator { boolean prepare(Action action, CommandSession session, List<Object> arguments) throws Exception; }
apache/kylin
1,122
src/common-service/src/main/java/org/apache/kylin/rest/response/OpenReloadTableResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.response; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; @Data public class OpenReloadTableResponse { @JsonProperty("sampling_id") private String samplingId; @JsonProperty("job_ids") private List<String> jobIds; }
apache/linkis
1,077
linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-authentication/src/test/java/org/apache/linkis/gateway/authentication/Scan.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.authentication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.mybatis.spring.annotation.MapperScan; @EnableAutoConfiguration @MapperScan("org.apache.linkis.gateway.authentication") public class Scan {}
apache/linkis
1,081
linkis-public-enhancements/linkis-datasource/linkis-datasource-manager/server/src/test/java/org/apache/linkis/datasourcemanager/core/Scan.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.datasourcemanager.core; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.mybatis.spring.annotation.MapperScan; @EnableAutoConfiguration @MapperScan("org.apache.linkis.datasourcemanager.core.dao") public class Scan {}
apache/logging-log4j2
1,133
log4j-mongodb/src/main/java/org/apache/logging/log4j/mongodb/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. */ /** * The classes in this package contain the MongoDB provider for the NoSQL * Appender. */ @Export @Open("org.apache.logging.log4j.core") @Version("2.25.0") package org.apache.logging.log4j.mongodb; import aQute.bnd.annotation.jpms.Open; import org.osgi.annotation.bundle.Export; import org.osgi.annotation.versioning.Version;
apache/manifoldcf
1,133
connectors/filenet/build-stub/src/main/java/com/filenet/api/security/Permission.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.security; import com.filenet.api.core.*; import com.filenet.api.constants.SecurityPrincipalType; /** Stub interface to allow the connector to build fully. */ public interface Permission extends EngineObject, DependentObject { public String get_GranteeName(); public SecurityPrincipalType get_GranteeType(); }
apache/maven-surefire
1,101
surefire-its/src/test/resources/surefire-1055-parallelTestCount/src/test/java/foo/Methods3Test.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package foo; import org.junit.Test; public class Methods3Test { @Test public void first() { SleepUtil.sleep(); } @Test public void second() { SleepUtil.sleep(); } @Test public void third() { SleepUtil.sleep(); } }
apache/maven
1,060
its/core-it-suite/src/test/resources/mng-5640-lifecycleParticipant-afterSession/buildfailure-utfail/src/test/java/org/apache/maven/its/mng5640/FailingTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.its.mng5640; import junit.framework.TestCase; /** * Always failing UT. */ public class FailingTest extends TestCase { /** * Rigourous Test :-) */ public void testApp() { assertTrue(false); } }
apache/mina-sshd
1,133
sshd-sources/tomcat-apr-5.5.23-sources/org/apache/tomcat/jni/Lock.java
package org.apache.tomcat.jni; public class Lock { public static final int APR_LOCK_FCNTL = 0; public static final int APR_LOCK_FLOCK = 1; public static final int APR_LOCK_SYSVSEM = 2; public static final int APR_LOCK_PROC_PTHREAD = 3; public static final int APR_LOCK_POSIXSEM = 4; public static final int APR_LOCK_DEFAULT = 5; public static native long create(String paramString, int paramInt, long paramLong) throws Error; public static native long childInit(String paramString, long paramLong) throws Error; public static native int lock(long paramLong); public static native int trylock(long paramLong); public static native int unlock(long paramLong); public static native int destroy(long paramLong); public static native String lockfile(long paramLong); public static native String name(long paramLong); public static native String defname(); } /* Location: C:\Users\lgoldstein\.m2\repository\tomcat\tomcat-apr\5.5.23\tomcat-apr-5.5.23.jar!\org\apache\tomcat\jni\Lock.class * Java compiler version: 2 (46.0) * JD-Core Version: 0.7.1 */
apache/nifi-minifi
1,120
minifi-c2/minifi-c2-api/src/main/java/org/apache/nifi/minifi/c2/api/InvalidParameterException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.minifi.c2.api; public class InvalidParameterException extends ConfigurationProviderException { public InvalidParameterException(String message) { super(message); } public InvalidParameterException(String message, Throwable cause) { super(message, cause); } }
apache/nifi
1,101
nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/groups/NoOpBatchCounts.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.groups; import java.util.Collections; import java.util.Map; public class NoOpBatchCounts implements BatchCounts { @Override public void reset() { } @Override public Map<String, Integer> captureCounts() { return Collections.emptyMap(); } }
apache/nifi
1,104
nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/events/SystemBulletin.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.events; import org.apache.nifi.reporting.Bulletin; import org.apache.nifi.reporting.ComponentType; /** * */ public class SystemBulletin extends Bulletin { SystemBulletin(final long id) { super(id); setSourceType(ComponentType.FLOW_CONTROLLER); } }
apache/nifi
1,150
nifi-framework-api/src/main/java/org/apache/nifi/web/ContentAccess.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.web; /** * Provides access to content within NiFi. * */ public interface ContentAccess { /** * Gets the content for the specified claim. * * @param request the context of the request * @return the downloadable content */ DownloadableContent getContent(ContentRequestContext request); }
apache/nutch
1,114
src/plugin/indexer-cloudsearch/src/java/org/apache/nutch/indexwriter/cloudsearch/CloudSearchConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nutch.indexwriter.cloudsearch; public interface CloudSearchConstants { public static final String ENDPOINT = "endpoint"; public static final String REGION = "region"; public static final String BATCH_DUMP = "batch.dump"; public static final String MAX_DOCS_BATCH = "batch.maxSize"; }
apache/openjpa
1,111
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.persistence.delimited.identifiers; import jakarta.persistence.DiscriminatorValue; import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Pontiac") public class Pontiac2 extends Car2 { public Pontiac2() {} public Pontiac2(int id) { super(id); } }
apache/openmeetings
1,107
openmeetings-web/src/main/java/org/apache/openmeetings/web/user/dashboard/StartWidgetDescriptor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License") + you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openmeetings.web.user.dashboard; public class StartWidgetDescriptor extends OmWidgetDescriptor { private static final long serialVersionUID = 1L; public StartWidgetDescriptor() { super("widget.start.title", "widget.start.desc", "om.widget.start", StartWidget.class); } }
apache/opennlp
1,119
opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/langdetect/ProbingLanguageDetectionResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package opennlp.tools.langdetect; /** * A data container encapsulating language detection results. * * @param languages The {@link Language languages} detected. * @param length The length in codepoints of text processed. */ public record ProbingLanguageDetectionResult(Language[] languages, int length) { }
apache/plc4x
1,109
plc4j/transports/serial/src/main/java/org/apache/plc4x/java/transport/serial/SerialChannelOptionsParity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.plc4x.java.transport.serial; public enum SerialChannelOptionsParity { NO_PARITY(0), ODD_PARITY(1), EVEN_PARITY(2), MARK_PARITY(3), SPACE_PARITY(4); public final int value; SerialChannelOptionsParity(int value) { this.value = value; } }
apache/polaris
1,144
polaris-core/src/main/java/org/apache/polaris/core/context/RealmContext.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.polaris.core.context; /** * Represents the elements of a REST request associated with routing to independent and isolated * "universes". This may include properties such as region, deployment environment (e.g. dev, qa, * prod), and/or account. */ public interface RealmContext { String getRealmIdentifier(); }
apache/polygene-java
1,120
libraries/http/src/main/java/org/apache/polygene/library/http/UnitOfWorkFilterService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.library.http; import javax.servlet.Filter; import org.apache.polygene.api.mixin.Mixins; /** * JAVADOC */ // START SNIPPET: filterservice @Mixins( UnitOfWorkFilter.class ) public interface UnitOfWorkFilterService extends Filter { } // END SNIPPET: filterservice
apache/polygene-java
1,124
core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonSerialization.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.polygene.serialization.javaxjson; import org.apache.polygene.api.mixin.Mixins; import org.apache.polygene.spi.serialization.JsonSerialization; @Mixins( { JavaxJsonSerializer.class, JavaxJsonDeserializer.class } ) public interface JavaxJsonSerialization extends JsonSerialization { }
apache/pulsar
1,108
tests/integration/src/test/java/org/apache/pulsar/tests/integration/functions/go/PulsarFunctionsGoProcessTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.tests.integration.functions.go; import org.apache.pulsar.tests.integration.topologies.FunctionRuntimeType; public class PulsarFunctionsGoProcessTest extends PulsarFunctionsGoTest { PulsarFunctionsGoProcessTest() { super(FunctionRuntimeType.PROCESS); } }
apache/pulsar
1,121
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/plugin/InvalidEntryFilterException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.broker.service.plugin; public class InvalidEntryFilterException extends Exception { public InvalidEntryFilterException(String message) { super(message); } public InvalidEntryFilterException(String message, Throwable cause) { super(message, cause); } }
apache/pulsar
1,130
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/schema/SchemaStorageFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.broker.service.schema; import org.apache.pulsar.broker.PulsarService; import org.apache.pulsar.common.protocol.schema.SchemaStorage; import org.jspecify.annotations.NonNull; public interface SchemaStorageFactory { @NonNull SchemaStorage create(PulsarService pulsar) throws Exception; }
apache/pulsar
1,143
pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/RedirectData.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pulsar.broker.lookup; public class RedirectData { private final String redirectLookupAddress; public RedirectData(String redirectLookupAddress) { this.redirectLookupAddress = redirectLookupAddress; } public String getRedirectLookupAddress() { return redirectLookupAddress; } }
apache/reef
1,109
lang/java/reef-bridge-proto-java/src/main/java/org/apache/reef/bridge/driver/service/DriverClientException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.reef.bridge.driver.service; import org.apache.reef.annotations.Unstable; /** * An exception thrown by the driver client. */ @Unstable public final class DriverClientException extends Exception { public DriverClientException(final String message) { super(message); } }