repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/polygene-java
1,055
libraries/shiro-core/src/main/java/org/apache/polygene/library/shiro/domain/permissions/RoleAssignment.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.shiro.domain.permissions; import org.apache.polygene.api.association.Association; public interface RoleAssignment { Association<Role> role(); Association<RoleAssignee> assignee(); }
apache/polygene-java
1,067
libraries/appbrowser/src/main/java/org/apache/polygene/library/appbrowser/BrowserException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.appbrowser; import org.json.JSONException; public class BrowserException extends RuntimeException { public BrowserException( String message, JSONException exception ) { super( message, exception); } }
apache/polygene-java
1,068
libraries/restlet/src/main/java/org/apache/polygene/library/restlet/ConversionException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.restlet; public class ConversionException extends RuntimeException { public ConversionException( String entityAsText ) { super( "Unable to convert REST entity: " + entityAsText ); } }
apache/pulsar
1,080
pulsar-common/src/main/java/org/apache/pulsar/common/protocol/schema/LatestVersion.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common.protocol.schema; /** * Latest schema version. */ public final class LatestVersion implements SchemaVersion { private static final byte[] EMPTY = new byte[]{}; @Override public byte[] bytes() { return EMPTY; } }
apache/qpid-broker-j
1,031
systests/end-to-end-conversion-tests/src/main/java/org/apache/qpid/systests/end_to_end_conversion/client/VerificationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.systests.end_to_end_conversion.client; public class VerificationException extends RuntimeException { public VerificationException(final String message) { super(message); } }
apache/rocketmq
1,085
common/src/main/java/org/apache/rocketmq/common/thread/ThreadPoolStatusMonitor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.common.thread; import java.util.concurrent.ThreadPoolExecutor; public interface ThreadPoolStatusMonitor { String describe(); double value(ThreadPoolExecutor executor); boolean needPrintJstack(ThreadPoolExecutor executor, double value); }
apache/royale-compiler
1,075
compiler/src/main/java/org/apache/royale/utils/Point.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.royale.utils; /** * A value object for an x and y pair. */ public class Point { public Point() { x = 0.0; y = 0.0; } public Point(double x, double y) { this.x = x; this.y = y; } public double x; public double y; }
apache/seatunnel-web
1,048
seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/request/job/transform/RenameField.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.app.domain.request.job.transform; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = true) public class RenameField extends TransformOption { private String targetName; }
apache/seatunnel
1,032
seatunnel-connectors-v2/connector-typesense/src/main/java/org/apache/seatunnel/connectors/seatunnel/typesense/state/TypesenseSinkState.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.connectors.seatunnel.typesense.state; import java.io.Serializable; public class TypesenseSinkState implements Serializable { private static final long serialVersionUID = -1105735724432131277L; }
apache/servicecomb-java-chassis
1,065
core/src/main/java/org/apache/servicecomb/core/event/InvocationStartSendRequestEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.core.event; import org.apache.servicecomb.core.Invocation; public class InvocationStartSendRequestEvent extends InvocationBaseEvent { public InvocationStartSendRequestEvent(Invocation invocation) { super(invocation); } }
apache/servicecomb-pack
1,050
alpha/alpha-spec-saga-akka/src/main/java/org/apache/servicecomb/pack/alpha/spec/saga/akka/domain/DomainEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.pack.alpha.spec.saga.akka.domain; import java.io.Serializable; import org.apache.servicecomb.pack.alpha.core.fsm.event.base.BaseEvent; public interface DomainEvent extends Serializable { BaseEvent getEvent(); }
apache/servicecomb-pack
1,060
demo/saga-dubbo-demo/service-api/src/main/java/org/apache/servicecomb/pack/demo/dubbo/api/IService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.pack.demo.dubbo.api; import org.apache.servicecomb.pack.demo.dubbo.pub.InvokeContext; public interface IService { Object run(InvokeContext invokeContext) throws Exception; void cancelRun(InvokeContext invokeContext); }
apache/shardingsphere-ui
1,053
shardingsphere-ui-backend/src/main/java/org/apache/shardingsphere/ui/repository/CenterConfigsRepository.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shardingsphere.ui.repository; import org.apache.shardingsphere.ui.common.domain.CenterConfigs; /** * Center configs repository interface. */ public interface CenterConfigsRepository extends ConfigsRepository<CenterConfigs> { }
apache/shiro
1,089
support/quartz/src/main/java/org/apache/shiro/session/mgt/quartz/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. */ /** * <a href="http://www.opensymphony.com/quartz/" target="_top">Quartz</a>-based implementations of * components that help <tt>SessionManager</tt> implementations maintain sessions (timed expiration, orphan cleanup, * etc.). */ package org.apache.shiro.session.mgt.quartz;
apache/sirona
1,099
agent/javaagent/src/test/java/org/apache/sirona/javaagent/AfterFork.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sirona.javaagent; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface AfterFork { }
apache/sirona
1,105
api/src/main/java/org/apache/sirona/configuration/ioc/Created.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sirona.configuration.ioc; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Created { }
apache/sis
1,089
endorsed/src/org.apache.sis.util/main/org/apache/sis/util/resources/Errors_en.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sis.util.resources; /** * Resources in English language. */ public class Errors_en extends Errors { /** * Constructs a new resource bundle loading data from * the resource file of the same name as this class. */ public Errors_en() { } }
apache/storm
1,089
storm-client/src/jvm/org/apache/storm/messaging/netty/KerberosSaslNettyServerState.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package org.apache.storm.messaging.netty; import org.apache.storm.shade.io.netty.util.AttributeKey; final class KerberosSaslNettyServerState { public static final AttributeKey<KerberosSaslNettyServer> KERBOROS_SASL_NETTY_SERVER = AttributeKey.valueOf("kerboros.sasl.netty.server"); }
apache/streampipes
1,062
streampipes-service-discovery/src/main/java/org/apache/streampipes/svcdiscovery/SpServiceDiscovery.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.svcdiscovery; import org.apache.streampipes.svcdiscovery.api.ISpServiceDiscovery; public class SpServiceDiscovery { public static ISpServiceDiscovery getServiceDiscovery() { return new SpServiceDiscoveryCore(); } }
apache/streams
1,047
streams-runtimes/streams-runtime-local/src/test/java/org/apache/streams/test/component/StringToDocumentConverter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.streams.test.component; import org.apache.streams.core.StreamsDatum; /** * Created by rebanks on 2/28/14. */ public class StringToDocumentConverter implements StreamsDatumConverter { @Override public StreamsDatum convert(String s) { return new StreamsDatum(s); } }
apache/synapse
1,072
modules/transports/core/pipe/src/main/java/org/apache/synapse/transport/pipe/PipeConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.synapse.transport.pipe; /** * Utility class defining constants used by the pipe transport. */ public class PipeConstants { private PipeConstants() {} public static final String NAME_KEY = "transport.pipe.name"; }
apache/syncope
1,073
client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/wizards/any/AnyForm.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.client.ui.commons.wizards.any; import org.apache.syncope.client.ui.commons.wizards.ModalPanelBuilder; import org.apache.syncope.common.lib.to.AnyTO; public interface AnyForm<A extends AnyTO> extends ModalPanelBuilder<AnyWrapper<A>> { }
apache/tapestry-5
1,053
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/RenderNotificationDemo.java
// Copyright 2010 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.integration.app1.pages; import org.apache.tapestry5.MarkupWriter; public class RenderNotificationDemo { void onBeginRenderFromItem(MarkupWriter writer) { writer.element("li"); writer.write("before item render"); writer.end(); } void onAfterRender(MarkupWriter writer) { writer.element("li"); writer.write("after item render"); writer.end(); } }
apache/thrift
1,099
lib/java/src/main/java/org/apache/thrift/meta_data/EnumMetaData.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.thrift.meta_data; import org.apache.thrift.TEnum; public class EnumMetaData extends FieldValueMetaData { public final Class<? extends TEnum> enumClass; public EnumMetaData(byte type, Class<? extends TEnum> sClass) { super(type); this.enumClass = sClass; } }
apache/tomcat80
1,121
java/javax/websocket/DeploymentException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.websocket; public class DeploymentException extends Exception { private static final long serialVersionUID = 1L; public DeploymentException(String message) { super(message); } public DeploymentException(String message, Throwable cause) { super(message, cause); } }
apache/tomee
1,026
arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/cmp/sample/MoviesBusiness.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.arquillian.tests.cmp.sample; import jakarta.ejb.EJBObject; import java.rmi.RemoteException; public interface MoviesBusiness extends EJBObject { void doLogic() throws RemoteException; }
apache/unomi
1,086
graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/schema/json/JSONEnumType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.unomi.graphql.schema.json; import java.util.Map; public class JSONEnumType extends JSONType { public JSONEnumType(Map<String, Object> schemaTree, JSONTypeFactory jsonTypeFactory) { super(schemaTree, jsonTypeFactory); setType("enum"); } }
apache/unomi
1,086
graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/schema/json/JSONNullType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.unomi.graphql.schema.json; import java.util.Map; public class JSONNullType extends JSONType { public JSONNullType(Map<String, Object> schemaTree, JSONTypeFactory jsonTypeFactory) { super(schemaTree, jsonTypeFactory); setType("null"); } }
apache/usergrid
1,054
stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/query/tree/NumericLiteral.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. The ASF licenses this file to You * under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. For additional information regarding * copyright in this work, please see the NOTICE file in the top level * directory of this distribution. */ package org.apache.usergrid.persistence.index.query.tree; /** @author tnine */ public interface NumericLiteral { /** Return the value of this numeric literal as a float */ public float getFloatValue(); }
apache/wicket
1,059
wicket-spring/src/test/java/org/apache/wicket/spring/injection/util/InjectableInterface.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.spring.injection.util; public interface InjectableInterface { /** * @return test bean */ Bean getNobean(); /** * @return test bean */ Bean2 getBeanByName(); /** * @return test bean */ Bean getBeanByClass(); }
apache/wicket
1,064
wicket-core-tests/src/test/java/org/apache/wicket/markup/MarkupInheritanceExtension_13.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup; /** */ public class MarkupInheritanceExtension_13 extends MarkupInheritanceBase_13 { private static final long serialVersionUID = 1L; /** * Construct. * */ public MarkupInheritanceExtension_13() { super(); } }
google/depan
1,089
DepanCore/prod/src/com/google/devtools/depan/model/GraphEdgeMatcher.java
/* * Copyright 2015 The Depan Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.devtools.depan.model; import com.google.devtools.depan.graph.api.Relation; import com.google.devtools.depan.graph.basic.AbstractEdgeMatcher; /** * @author <a href="mailto:leeca@pnambic.com">Lee Carver</a> */ public class GraphEdgeMatcher extends AbstractEdgeMatcher<String> { @Override public boolean relationForward(Relation relation) { return false; } @Override public boolean relationReverse(Relation relation) { return false; } }
google/error-prone
1,064
core/src/test/java/com/google/errorprone/refaster/testdata/input/DiamondTemplateExample.java
/* * Copyright 2014 The Error Prone Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.errorprone.refaster.testdata; import java.util.LinkedList; import java.util.List; /** * Test data for {@code DiamondTemplate}. */ public class DiamondTemplateExample { public void example() { List<Integer> explicit = new LinkedList<Integer>(); List<Integer> diamond = new LinkedList<>(); @SuppressWarnings("rawtypes") List<Integer> raw = new LinkedList(); System.out.println(explicit + " " + diamond + " " + raw); } }
google/graphicsfuzz
1,077
generator/src/main/java/com/graphicsfuzz/generator/mutateapi/Expr2ExprMutation.java
/* * Copyright 2019 The GraphicsFuzz Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.graphicsfuzz.generator.mutateapi; import com.graphicsfuzz.common.ast.IAstNode; import com.graphicsfuzz.common.ast.expr.Expr; import java.util.function.Supplier; /** * Captures an opportunity to replace an expression with an expression. */ public class Expr2ExprMutation extends Node2NodeMutation<Expr> { public Expr2ExprMutation(IAstNode parent, Expr original, Supplier<Expr> replacement) { super(parent, original, replacement); } }
google/guice
1,097
examples/guice-demo/src/test/java/com/example/AppTest.java
package com.example; import static org.junit.Assert.assertEquals; import com.google.inject.Guice; import com.google.inject.testing.fieldbinder.Bind; import com.google.inject.testing.fieldbinder.BoundFieldModule; import java.util.ArrayList; import java.util.List; import jakarta.inject.Inject; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** Unit test for simple App. */ @RunWith(JUnit4.class) public final class AppTest { private final List<String> messages = new ArrayList<>(); @Bind @App.Message private final String message = "hello, test"; @Bind private final Printer printer = new Printer() { @Override public void printMessage(String message) { messages.add(message); } }; @Inject private App app; @Before public void setUp() { Guice.createInjector(BoundFieldModule.of(this)).injectMembers(this); } @Test public void run_printsMessage() { app.run(); assertEquals(1, messages.size()); assertEquals(message, messages.get(0)); } }
google/j2objc
1,040
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xml/serializer/utils/SerializerMessages_zh_CN.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * $Id: SerializerMessages_zh_CN.java 468654 2006-10-28 07:09:23Z minchau $ */ package org.apache.xml.serializer.utils; import java.util.ListResourceBundle; public class SerializerMessages_zh_CN extends SerializerMessages_zh { }
google/j2objc
1,086
jre_emul/misc_tests/com/google/j2objc/security/IosSecurityProviderTests.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.j2objc.security; import junit.framework.Test; import junit.framework.TestSuite; /** * iOS security provider unit test suite. */ public class IosSecurityProviderTests extends TestSuite { private static final Class<?>[] smallTestClasses = new Class[] { IosRSAKeyPairGeneratorTest.class, IosRSAKeyTest.class, IosRSASignatureTest.class, IosSecureRandomImplTest.class, IosSHAMessageDigestTest.class }; public static Test suite() { return new TestSuite(smallTestClasses); } }
google/oss-fuzz
1,108
projects/apache-commons-compress/CompressorBZip2Fuzzer.java
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; public class CompressorBZip2Fuzzer extends BaseTests { public static void fuzzerTestOneInput(byte[] data) { try { fuzzCompressorInputStream(new BZip2CompressorInputStream(new ByteArrayInputStream(data))); } catch (IOException ignored) { } } }
google/sagetv
1,059
third_party/MetadataExtractor/java/sage/media/exif/metadata/exif/KodakMakernoteDirectory.java
/* * This is public domain software - that is, you can do whatever you want * with it, and include it software that is licensed under the GNU or the * BSD license, or whatever other licence you choose, including proprietary * closed source licenses. I do ask that you leave this header in tact. * * If you make modifications to this code that you think would benefit the * wider community, please send me a copy and I'll post it on my site. * * If you make use of this code, I'd appreciate hearing about it. * metadata_extractor [at] drewnoakes [dot] com * Latest version of this software kept at * http://drewnoakes.com/ */ package sage.media.exif.metadata.exif; import java.util.HashMap; import sage.media.exif.metadata.Directory; /** * Describes tags specific to Kodak cameras. */ public class KodakMakernoteDirectory extends Directory { protected static final HashMap _tagNameMap = new HashMap(); public String getName() { return "Kodak Makernote"; } protected HashMap getTagNameMap() { return _tagNameMap; } }
googlearchive/gwt-google-apis
1,076
maps/maps/src/com/google/gwt/maps/client/control/SmallZoomControl3D.java
/* * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.maps.client.control; import com.google.gwt.maps.client.impl.ControlImpl; /** * Creates a control with buttons to pan in four directions, and zoom in and * zoom out in a 3D style. */ public final class SmallZoomControl3D extends Control { /** * Creates a control with buttons to pan in four directions, and zoom in and * zoom out in a 3D style. */ public SmallZoomControl3D() { super(ControlImpl.impl.createSmallZoomControl3D()); } }
googlearchive/gwt-google-apis
1,083
search/search/src/com/google/gwt/search/jsio/client/Imported.java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.search.jsio.client; import com.google.gwt.search.jsio.client.impl.MetaDataName; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Target; /** * Allows methods declared in a type annotated with {@link BeanProperties} that * look like bean property setter/getters to be treated as imported methods. */ @Documented @MetaDataName("gwt.imported") @Target(ElementType.METHOD) public @interface Imported { }
hibernate/hibernate-orm
1,095
hibernate-core/src/main/java/org/hibernate/boot/model/package-info.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ /** * This package defines the boot-time metamodel, which is an interpretation * of the domain model (entity classes, embeddable classes, and attributes) * and the mapping of these "domain model parts" to the database. It is * {@linkplain org.hibernate.boot.model.process.spi built incrementally} from * {@linkplain org.hibernate.annotations annotations} and XML-based mappings. * <p> * The interfaces {@link org.hibernate.boot.model.TypeContributor} and * {@link org.hibernate.boot.model.FunctionContributor} allow a program * or library to contribute custom types and type descriptors, and * custom function descriptors, respectively, to Hibernate during the * bootstrap process. * * @implNote Ultimately, as part of the process of creating the * {@link org.hibernate.SessionFactory}, Hibernate * transforms this boot-time metamodel to its runtime * {@linkplain org.hibernate.metamodel.mapping mapping metamodel}. */ package org.hibernate.boot.model;
hibernate/hibernate-search
1,029
mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/TypePatternMatcher.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.search.mapper.pojo.model.typepattern.impl; import org.hibernate.search.mapper.pojo.model.spi.PojoTypeModel; /** * A pattern-matching implementation for generic types. * <p> * For example, such a pattern could be described with the expression {@code Collection<?>}, * which would only match against {@code Collection} and its subclasses. */ public interface TypePatternMatcher { /** * Attempts to match a given type against this pattern, * and return the result as a {@code boolean}. * * @param typeToInspect A type that may, or may not, match the pattern. * @return {@code true} in the event of a match, {@code false} otherwise. */ boolean matches(PojoTypeModel<?> typeToInspect); default TypePatternMatcher negate() { return new NegatingTypePatternMatcher( this ); } default TypePatternMatcher and(TypePatternMatcher other) { return new AndTypePatternMatcher( this, other ); } }
hibernate/hibernate-search
1,037
engine/src/main/java/org/hibernate/search/engine/search/predicate/dsl/impl/MatchNonePredicateFinalStepImpl.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.search.engine.search.predicate.dsl.impl; import org.hibernate.search.engine.search.predicate.SearchPredicate; import org.hibernate.search.engine.search.predicate.dsl.MatchNonePredicateFinalStep; import org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep; import org.hibernate.search.engine.search.predicate.dsl.spi.SearchPredicateDslContext; import org.hibernate.search.engine.search.predicate.spi.MatchNonePredicateBuilder; public final class MatchNonePredicateFinalStepImpl extends AbstractPredicateFinalStep implements MatchNonePredicateFinalStep { private final MatchNonePredicateBuilder matchNoneBuilder; public MatchNonePredicateFinalStepImpl(SearchPredicateDslContext<?> dslContext) { super( dslContext ); this.matchNoneBuilder = dslContext.scope().predicateBuilders().matchNone(); } @Override protected SearchPredicate build() { return matchNoneBuilder.build(); } }
openjdk/jdk8
1,077
jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/xs/SchemaDateTimeException.java
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 1999-2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sun.org.apache.xerces.internal.impl.dv.xs; /** * @xerces.internal * */ public class SchemaDateTimeException extends RuntimeException { /** Serialization version. */ static final long serialVersionUID = -8520832235337769040L; public SchemaDateTimeException () { super(); } public SchemaDateTimeException (String s) { super (s); } }
openjdk/jdk8
1,095
jdk/test/java/rmi/server/RMIClassLoader/loadProxyClasses/NonpublicInterface.java
/* * Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * */ interface NonpublicInterface {}
openjdk/jdk8
1,106
langtools/test/tools/javac/processing/model/element/8009367/p/QQ.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. */ package p; public @interface QQ { Q[] value(); }
openjdk/jdk8
1,112
langtools/test/tools/javac/mixedTarget/CompatibleAbstracts3.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ abstract class CompatibleAbstracts3 implements A, C { }
openjdk/jdk8
1,113
langtools/test/com/sun/javadoc/testClassTree/pkg/ChildClass.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg; public class ChildClass extends ParentClass {}
openjdk/skara
1,142
xml/src/main/java/module-info.java
/* * Copyright (c) 2021, 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. */ module org.openjdk.skara.xml { requires java.xml; exports org.openjdk.skara.xml; }
oracle/coherence
1,070
prj/coherence-cdi/src/main/java/com/oracle/coherence/cdi/CdiInterceptorMetadataResolver.java
/* * Copyright (c) 2020, 2021 Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.cdi; import com.tangosol.net.events.EventInterceptor; import com.tangosol.net.events.InterceptorMetadataResolver; /** * An implementation of {@link com.tangosol.net.events.InterceptorMetadataResolver} * that knows how to extract interceptor metadata from a Weld proxy. * * @author Aleks Seovic 2020.04.03 * @since 20.06 */ @SuppressWarnings("unchecked") public class CdiInterceptorMetadataResolver implements InterceptorMetadataResolver { @Override public Class<? extends EventInterceptor> getInterceptorClass(EventInterceptor eventInterceptor) { Class<? extends EventInterceptor> clazz = eventInterceptor.getClass(); if (clazz.getName().endsWith("WeldClientProxy")) { clazz = (Class<? extends EventInterceptor>) clazz.getSuperclass(); } return clazz; } }
oracle/coherence
1,078
prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Iushr.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.dev.assembler; import java.io.IOException; import java.io.DataInput; import java.io.DataOutput; /** * The IUSHR simple op right-shifts the bits (unsigned) of the second * integer in the stack by the number specified by the first integer in the * stack. * <p><code><pre> * JASM op : IUSHR (0x7c) * JVM byte code(s): IUSHR (0x7c) * Details : * </pre></code> * * @version 0.50, 06/12/98, assembler/dis-assembler * @author Cameron Purdy */ public class Iushr extends Op implements Constants { // ----- constructors --------------------------------------------------- /** * Construct the op. */ public Iushr() { super(IUSHR); } // ----- data members --------------------------------------------------- /** * The name of this class. */ private static final String CLASS = "Iushr"; }
apache/commons-ognl
1,084
src/test/java/org/apache/commons/ognl/test/objects/BaseSyntheticObject.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.ognl.test.objects; import java.util.ArrayList; import java.util.List; /** * Used to test OGNL-136 use of synthetic methods. */ public abstract class BaseSyntheticObject { protected List getList() { return new ArrayList(); } }
apache/cxf
1,077
rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/type/array/BeanWithFlatArray.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.aegis.type.array; /** * Test bean for flat='true' */ public class BeanWithFlatArray { int[] values; public int[] getValues() { return values; } public void setValues(int[] values) { this.values = values; } }
apache/cxf
1,084
systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookNotFoundDetails.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class BookNotFoundDetails { private long id; public long getId() { return id; } public void setId(long id) { this.id = id; } }
apache/cxf
1,085
tools/common/src/test/java/org/apache/cxf/tools/common/toolspec/DummyToolContainer.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.tools.common.toolspec; import org.apache.cxf.tools.common.toolspec.parser.BadUsageException; public class DummyToolContainer extends AbstractToolContainer { public DummyToolContainer(ToolSpec ts) throws BadUsageException { super(ts); } }
apache/deltaspike
1,066
deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/provider/ManualBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.core.api.provider; import jakarta.enterprise.inject.Vetoed; import jakarta.inject.Inject; @Vetoed class ManualBean { @Inject private TestBean testBean; TestBean getTestBean() { return testBean; } }
apache/derby
1,097
java/org.apache.derby.client/org/apache/derby/info/client/DerbyModule.java
/* Derby - Class org.apache.derby.info.client.DerbyModule Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.derby.info.client; import org.apache.derby.shared.api.DerbyModuleAPI; /** * The vacuous provider class which lets * the shared module find all Derby modules. */ public class DerbyModule implements DerbyModuleAPI {}
apache/derby
1,097
java/org.apache.derby.engine/org/apache/derby/info/engine/DerbyModule.java
/* Derby - Class org.apache.derby.info.engine.DerbyModule Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.derby.info.engine; import org.apache.derby.shared.api.DerbyModuleAPI; /** * The vacuous provider class which lets * the shared module find all Derby modules. */ public class DerbyModule implements DerbyModuleAPI {}
apache/directory-kerby
1,077
kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/KrbConstant.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.kerby.kerberos.kerb; public class KrbConstant { public static final int KRB_V5 = 5; public static final String TGS_PRINCIPAL = "krbtgt"; public static final String ANONYMOUS_PRINCIPAL = "WELLKNOWN/ANONYMOUS"; }
apache/dolphinscheduler
1,061
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/OssConnection.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.common.model; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class OssConnection { public String accessKeyId; public String accessKeySecret; public String endPoint; }
apache/doris-manager
1,070
manager/dm-server/src/main/java/org/apache/doris/stack/exceptions/ModelRequestException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exceptions; public class ModelRequestException extends Exception { public static final String MESSAGE = "The model has a request being processed, please wait"; public ModelRequestException() { super(MESSAGE); } }
apache/drill
1,097
exec/jdbc/src/test/java/org/apache/drill/jdbc/impl/DrillConnectionUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.jdbc.impl; import org.apache.drill.exec.store.StoragePluginRegistry; public class DrillConnectionUtils { public static StoragePluginRegistry getStorage(DrillConnectionImpl drillConnection) { return drillConnection.getDrillbit().getContext().getStorage(); } }
apache/dubbo-samples
1,056
test/dubbo-scenario-builder/src/main/java/org/apache/dubbo/scenario/builder/ScenarioRunningScriptGenerator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.scenario.builder; import org.apache.dubbo.scenario.builder.exception.GenerateFailedException; public interface ScenarioRunningScriptGenerator { void generate(IConfiguration configuration) throws GenerateFailedException; }
apache/dubbo
1,077
dubbo-cluster/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,078
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/Constants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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; public interface Constants { String MULTIPLE_CONFIG_CENTER_SERVICE_DISCOVERY_REGISTRY = "multipleConfigCenterServiceDiscoveryRegistry"; String SINGLE_CONFIG_CENTER_EXPORT_PROVIDER = "singleConfigCenterExportProvider"; }
apache/dubbo
1,090
dubbo-common/src/main/java/org/apache/dubbo/rpc/model/ApplicationInitListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.model; import org.apache.dubbo.common.extension.ExtensionScope; import org.apache.dubbo.common.extension.SPI; @SPI(scope = ExtensionScope.APPLICATION) public interface ApplicationInitListener { /** * init the application */ void init(); }
apache/eagle
1,059
eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/ApplicationHealthCheckPublisher.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eagle.app.service; import com.codahale.metrics.health.HealthCheck; import java.util.Map; public interface ApplicationHealthCheckPublisher { void onUnHealthApplication(String type, Map<String, HealthCheck.Result> results); }
apache/eagle
1,067
eagle-core/eagle-app/eagle-app-streamproxy/src/main/java/org/apache/eagle/app/proxy/stream/StreamProxy.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eagle.app.proxy.stream; import org.apache.eagle.metadata.model.StreamDesc; import java.io.IOException; public interface StreamProxy extends StreamProxyProducer { void open(StreamDesc streamDesc); void close() throws IOException; }
apache/felix-dev
1,037
ipojo/runtime/core-it/ipojo-core-factory-test/src/main/java/org/apache/felix/ipojo/runtime/core/services/CheckService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.ipojo.runtime.core.services; import java.util.Properties; public interface CheckService { public static final String foo = "foo"; public boolean check(); public Properties getProps(); }
apache/felix-dev
1,077
scr/src/test/java/org/apache/felix/scr/integration/components/AnyServiceComponentMap.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.scr.integration.components; import java.util.Map; public class AnyServiceComponentMap extends AnyServiceComponent { public AnyServiceComponentMap(Map<String, Object> anyServiceMap) { super(null, null, anyServiceMap); } }
apache/fineract
1,040
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/data/LoanSchedulePlanPeriod.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.loanaccount.loanschedule.data; import java.time.LocalDate; public interface LoanSchedulePlanPeriod { Integer periodNumber(); LocalDate periodFromDate(); LocalDate periodDueDate(); }
apache/fineract
1,049
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/transaction/LoanChargeOffEvent.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.test.messaging.event.loan.transaction; public class LoanChargeOffEvent extends AbstractLoanTransactionEvent { @Override public String getEventName() { return "LoanChargeOffPostBusinessEvent"; } }
apache/flink
1,046
flink-end-to-end-tests/flink-quickstart-test-dummy-dependency/src/main/java/org/apache/flink/quickstarts/test/utils/Utils.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.quickstarts.test.utils; /** Dummy util to test packaging of Flink dependencies in quickstarts. */ public class Utils { public static String prefix(Long message) { return "message #" + message; } }
apache/fluss
1,100
fluss-common/src/main/java/org/apache/fluss/utils/SerializableObject.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.fluss.utils; /** * A simple object that only implements {@link java.io.Serializable}, so it can be used in * serializable classes. */ public class SerializableObject implements java.io.Serializable { private static final long serialVersionUID = -7322636177391854669L; }
apache/geaflow
1,050
geaflow/geaflow-dsl/geaflow-dsl-runtime/src/main/java/org/apache/geaflow/dsl/runtime/function/graph/StepKeyFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.dsl.runtime.function.graph; import org.apache.geaflow.dsl.common.data.Row; import org.apache.geaflow.dsl.common.data.RowKey; public interface StepKeyFunction extends StepFunction { RowKey getKey(Row row); }
apache/geaflow
1,058
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/entity/VertexEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.dal.entity; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Getter; import lombok.Setter; @Getter @Setter @TableName("geaflow_vertex") public class VertexEntity extends DataEntity { }
apache/geaflow
1,059
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/DataEntityMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.dal.mapper; import org.apache.geaflow.console.common.dal.entity.DataEntity; import org.apache.ibatis.annotations.Mapper; @Mapper public interface DataEntityMapper extends GeaflowBaseMapper<DataEntity> { }
apache/geaflow
1,059
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/NameEntityMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.dal.mapper; import org.apache.geaflow.console.common.dal.entity.NameEntity; import org.apache.ibatis.annotations.Mapper; @Mapper public interface NameEntityMapper extends GeaflowBaseMapper<NameEntity> { }
apache/geaflow
1,062
geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/mapper/ReleaseMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.dal.mapper; import org.apache.geaflow.console.common.dal.entity.ReleaseEntity; import org.apache.ibatis.annotations.Mapper; @Mapper public interface ReleaseMapper extends GeaflowBaseMapper<ReleaseEntity> { }
apache/geode
1,080
geode-core/src/main/java/org/apache/geode/internal/cache/backup/IncrementalBackupLocation.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.backup; import java.io.File; import java.io.IOException; import java.util.Map; import org.apache.geode.cache.DiskStore; public interface IncrementalBackupLocation { Map<String, File> getBackedUpOplogs(DiskStore diskStore) throws IOException; }
apache/geode
1,098
geode-core/src/main/java/org/apache/geode/internal/offheap/Releasable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.offheap; /** * Instances that implement this interface must have release called on them before the instance * becomes garbage. * * @since Geode 1.0 */ public interface Releasable { /** * Release any off-heap data owned by this instance. */ void release(); }
apache/giraph
1,063
giraph-block-app/src/main/java/org/apache/giraph/block_app/framework/piece/global_comm/map/MapHandle.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.block_app.framework.piece.global_comm.map; /** * Handle to map of handles underneath * * @param <K> Key type * @param <V> Value type */ public interface MapHandle<K, V> { /** * Get value for key. */ V get(K key); }
apache/gobblin
1,080
gobblin-api/src/main/java/org/apache/gobblin/dataset/HiveToHdfsDatasetResolverFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.dataset; import com.typesafe.config.Config; public class HiveToHdfsDatasetResolverFactory implements DatasetResolverFactory { @Override public DatasetResolver createResolver(Config config) { return HiveToHdfsDatasetResolver.INSTANCE; } }
apache/gobblin
1,082
gobblin-salesforce/src/main/java/org/apache/gobblin/salesforce/HistogramGroup.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.salesforce; import lombok.AllArgsConstructor; import lombok.Getter; @Getter @AllArgsConstructor class HistogramGroup { private final String key; private final int count; @Override public String toString() { return key + ":" + count; } }
apache/gobblin
1,083
gobblin-modules/gobblin-http/src/main/java/org/apache/gobblin/http/StatusType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.http; /** * Different types of response status */ public enum StatusType { // success OK, // something bad happened but safe to continue CONTINUE, // error triggered by client CLIENT_ERROR, // error triggered by server SERVER_ERROR }
apache/gobblin
1,086
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/locks/ListenableJobLock.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.runtime.locks; public interface ListenableJobLock extends JobLock { /** * Sets the job lock event listener. * * @param jobLockEventListener the listener for lock events */ void setEventListener(JobLockEventListener jobLockEventListener); }
apache/hadoop
1,064
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/enums/StatisticTypeEnum.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.azurebfs.enums; /** * Enum for statistic types. */ public enum StatisticTypeEnum { /** * Counter. */ TYPE_COUNTER, /** * Gauge. */ TYPE_GAUGE, /** * Mean. */ TYPE_MEAN }
apache/harmony
1,089
classlib/modules/security/src/main/java/common/java/security/spec/ECField.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package java.security.spec; /** * The base interface for a Finite Field of an Elliptic Curve. */ public interface ECField { /** * Returns the size of the field (in bits). * * @return the size of the field (in bits). */ int getFieldSize(); }
apache/harmony
1,096
classlib/modules/sound/src/main/java/javax/sound/midi/Soundbank.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.sound.midi; public interface Soundbank { String getDescription(); Instrument getInstrument(Patch patch); Instrument[] getInstruments(); String getName(); SoundbankResource[] getResources(); String getVendor(); String getVersion(); }
apache/iceberg
1,108
orc/src/main/java/org/apache/iceberg/orc/OrcBatchReader.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.orc; import org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch; /** Used for implementing ORC batch readers. */ public interface OrcBatchReader<T> { /** Reads a row batch. */ T read(VectorizedRowBatch batch); void setBatchContext(long batchOffsetInFile); }
apache/incubator-brooklyn
1,068
brooklyn-server/test-support/src/main/java/org/apache/brooklyn/test/PerformanceTestUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.test; /** * @deprecated since 0.9.0; see {@link org.apache.brooklyn.test.performance.PerformanceTestUtils}. */ @Deprecated public class PerformanceTestUtils extends org.apache.brooklyn.test.performance.PerformanceTestUtils { }
apache/incubator-datalab
1,061
services/self-service/src/main/java/com/epam/datalab/backendapi/service/ExternalLibraryService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.epam.datalab.backendapi.service; import com.epam.datalab.backendapi.resources.dto.LibraryDTO; @FunctionalInterface public interface ExternalLibraryService { LibraryDTO getLibrary(String groupId, String artifactId, String version); }
apache/incubator-heron
1,073
storm-compatibility/v0.10.2/src/java/backtype/storm/topology/IBasicOutputCollector.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package backtype.storm.topology; import java.util.List; public interface IBasicOutputCollector { List<Integer> emit(String streamId, List<Object> tuple); void emitDirect(int taskId, String streamId, List<Object> tuple); void reportError(Throwable t); }
apache/incubator-hugegraph-computer
1,051
computer/computer-core/src/main/java/org/apache/hugegraph/computer/core/input/GraphFetcher.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package org.apache.hugegraph.computer.core.input; public interface GraphFetcher { InputSplit nextVertexInputSplit(); InputSplit nextEdgeInputSplit(); VertexFetcher vertexFetcher(); EdgeFetcher edgeFetcher(); void close(); }
apache/incubator-kie-drools
1,084
kie-api/src/main/java/org/kie/api/builder/model/QualifierModel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.api.builder.model; import java.util.Map; public interface QualifierModel { String getType(); String getValue(); void setValue(String value); QualifierModel addArgument(String key, String value); Map<String, String> getArguments(); }
apache/incubator-kie-kogito-runtimes
1,043
addons/common/events/rules/src/main/java/org/kie/kogito/eventdriven/rules/EventDrivenQueryExecutor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.eventdriven.rules; import org.kie.kogito.event.DataEvent; public interface EventDrivenQueryExecutor<D> { String getRuleUnitId(); String getQueryName(); Object executeQuery(DataEvent<D> input); }
apache/incubator-kie-kogito-runtimes
1,068
api/kogito-api/src/main/java/org/kie/kogito/process/WorkItemHandlerConfig.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.process; import java.util.Collection; import org.kie.kogito.internal.process.workitem.KogitoWorkItemHandler; public interface WorkItemHandlerConfig { KogitoWorkItemHandler forName(String name); Collection<String> names(); }
apache/incubator-kie-kogito-runtimes
1,072
jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/event/EventFilter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.jbpm.process.core.event; import java.util.function.Function; public interface EventFilter { default boolean isCorrelated() { return false; } boolean acceptsEvent(String type, Object event, Function<String, Object> resolver); }
apache/incubator-kie-optaplanner
1,040
core/optaplanner-core-impl/src/main/java/org/optaplanner/core/api/score/buildin/bendablebigdecimal/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. */ /** * Support for a {@link org.optaplanner.core.api.score.Score} with a configurable number of score levels * and {@link java.math.BigDecimal} score weights. */ package org.optaplanner.core.api.score.buildin.bendablebigdecimal;