repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/trafodion
1,098
dcs/src/main/java/org/trafodion/dcs/servermt/serverHandler/PendingRequest.java
/** * @@@ START COPYRIGHT @@@ * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * @@@ END COPYRIGHT @@@ */ package org.trafodion.dcs.servermt.serverHandler; import java.nio.*; import java.nio.channels.*; import java.nio.channels.spi.*; class PendingRequest { SelectionKey key; public PendingRequest(SelectionKey key) { this.key = key; } }
apache/wicket
1,084
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/autolink/sub/BasePage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.html.autolink.sub; import org.apache.wicket.markup.html.WebPage; /** * */ public class BasePage extends WebPage { private static final long serialVersionUID = 1L; /** * Creates a new instance of BasePanel * */ BasePage() { } }
apache/wicket
1,101
wicket-examples/src/main/java/org/apache/wicket/examples/authentication1/Home.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.examples.authentication1; import org.apache.wicket.examples.WicketExamplePage; /** * Simple home page, which requires authentication * * @author Jonathan Locke */ public class Home extends WicketExamplePage implements AuthenticatedWebPage { // Nothing in here. }
apache/xmlgraphics-fop
1,115
fop/examples/plan/src/org/apache/fop/plan/PlanDrawer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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$ */ package org.apache.fop.plan; import java.util.HashMap; import org.w3c.dom.Document; /** * This interface defines how a plan drawer is converted. */ public interface PlanDrawer { Document createDocument(EventList data, float w, float h, HashMap hints); }
google/bindiff
1,097
java/zylib/src/main/java/com/google/security/zynamics/zylib/io/DirectoryChooser.java
// Copyright 2011-2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.zylib.io; import com.google.security.zynamics.zylib.gui.CFileChooser; import java.io.File; import javax.swing.JFileChooser; public class DirectoryChooser extends CFileChooser { private static final long serialVersionUID = 5354437749644373707L; public DirectoryChooser(final String title) { setCurrentDirectory(new File(".")); setDialogTitle(title); setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); setAcceptAllFileFilterUsed(false); } }
google/binnavi
1,076
src/main/java/com/google/security/zynamics/binnavi/API/disassembly/TagListenerAdapter.java
// Copyright 2011-2016 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. package com.google.security.zynamics.binnavi.API.disassembly; /// Adapter class for tag listeners /** * Adapter class that can be used by objects that want to listen on tags * but only need to process few events. */ public class TagListenerAdapter implements ITagListener { @Override public void changedDescription(final Tag tag, final String description) { // Adapter method } @Override public void changedName(final Tag tag, final String name) { // Adapter method } }
google/binnavi
1,087
src/main/java/com/google/security/zynamics/binnavi/models/Bookmarks/memory/IBookmarkListener.java
// Copyright 2011-2016 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. package com.google.security.zynamics.binnavi.models.Bookmarks.memory; /** * This interface must be implemented by all classes that want to be notified about changes in * memory bookmarks. */ public interface IBookmarkListener { /** * Invoked after the description of a bookmark changed. * * @param bookmark The bookmark whose description changed. * @param description The new description of the bookmark. */ void changedDescription(CBookmark bookmark, String description); }
google/binnavi
1,087
src/main/java/com/google/security/zynamics/zylib/gui/zygraph/IFineGrainedSloppyGraph2DView.java
// Copyright 2011-2016 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. package com.google.security.zynamics.zylib.gui.zygraph; public interface IFineGrainedSloppyGraph2DView { public boolean drawEdges(); public boolean isEdgeSloppyPaintMode(); public boolean isNodeSloppyPaintMode(); public void setEdgeSloppyThreshold(double edgeSloppyThreshold); public void setMinEdgesForSloppyEdgeHiding(int minEdges); public void setNodeSloppyThreshold(double nodeSloppyThreshold); public void setSloppyEdgeHidingThreshold(double sloppyEdgeHidingThreshold); }
google/blockly-android
1,085
blocklydemo/src/main/java/com/google/blockly/android/demo/SimpleFragmentHostActivity.java
/* * Copyright 2017 Google Inc. All Rights Reserved. * 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.blockly.android.demo; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; /** * Host activity for the {@link SimpleFragment} demo. */ public class SimpleFragmentHostActivity extends AppCompatActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.simple_fragment); } }
google/closure-compiler
1,094
src/com/google/javascript/jscomp/parsing/parser/trees/CallExpressionTree.java
/* * Copyright 2011 The Closure Compiler 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.javascript.jscomp.parsing.parser.trees; import com.google.javascript.jscomp.parsing.parser.util.SourceRange; public class CallExpressionTree extends ParseTree { public final ParseTree operand; public final ArgumentListTree arguments; public CallExpressionTree(SourceRange location, ParseTree operand, ArgumentListTree arguments) { super(ParseTreeType.CALL_EXPRESSION, location); this.operand = operand; this.arguments = arguments; } }
google/ExoPlayer
1,106
library/common/src/main/java/com/google/android/exoplayer2/util/Effect.java
/* * Copyright 2022 The Android Open Source Project * * 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.android.exoplayer2.util; /** * Marker interface for a video frame effect. * * @deprecated com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which * contains the same ExoPlayer code). See <a * href="https://developer.android.com/guide/topics/media/media3/getting-started/migration-guide">the * migration guide</a> for more details, including a script to help with the migration. */ @Deprecated public interface Effect {}
google/guava
1,112
android/guava-tests/test/com/google/common/base/PackageSanityTests.java
/* * Copyright (C) 2012 The Guava 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.common.base; import com.google.common.annotations.GwtIncompatible; import com.google.common.testing.AbstractPackageSanityTests; import org.jspecify.annotations.NullUnmarked; /** Basic sanity tests for classes in {@code common.base}. */ @GwtIncompatible @NullUnmarked public class PackageSanityTests extends AbstractPackageSanityTests { public PackageSanityTests() { // package private classes like FunctionalEquivalence are tested through the public API. publicApiOnly(); } }
google/guava
1,115
android/guava/src/com/google/common/annotations/J2ktIncompatible.java
/* * Copyright (C) 2009 The Guava 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.common.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * The presence of this annotation on an API indicates that the method may <em>not</em> be used with * J2kt. * * @since 32.0.0 */ @Retention(RetentionPolicy.CLASS) @Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) @GwtCompatible public @interface J2ktIncompatible {}
google/guice
1,127
core/src/com/google/inject/spi/InjectionListener.java
/* * Copyright (C) 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.inject.spi; /** * Listens for injections into instances of type {@code I}. Useful for performing further * injections, post-injection initialization, and more. * * @author crazybob@google.com (Bob Lee) * @author jessewilson@google.com (Jesse Wilson) * @since 2.0 */ public interface InjectionListener<I> { /** * Invoked by Guice after it injects the fields and methods of instance. * * @param injectee instance that Guice injected dependencies into */ void afterInjection(I injectee); }
google/j2cl
1,116
tools/javatests/com/google/j2cl/tools/rta/bridges/Parent.java
/* * Copyright 2023 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.j2cl.tools.rta.bridges; import jsinterop.annotations.JsMethod; public class Parent<T> { public void calledSpecializedParameters(T t) {} public void notCalledSpecializedParameters(T t) {} public Object calledSpecializedReturn() { return null; } public Object notCalledSpecializedReturn() { return null; } @JsMethod public static void main() { Parent<String> p = new Child(); p.calledSpecializedParameters(null); var unused = p.calledSpecializedReturn(); } }
google/oss-fuzz
1,123
projects/apache-commons-validator/CreditCardValidatorFuzzer.java
// Copyright 2024 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 com.code_intelligence.jazzer.api.FuzzedDataProvider; import org.apache.commons.validator.routines.CreditCardValidator; public class CreditCardValidatorFuzzer { public static void fuzzerTestOneInput(FuzzedDataProvider data) { CreditCardValidator validator = new CreditCardValidator(data.consumeLong()); validator.isValid(data.consumeRemainingAsString()); validator.validate(data.consumeRemainingAsString()); } }
google/rejoiner
1,112
rejoiner/src/main/java/com/google/api/graphql/rejoiner/Query.java
// Copyright 2017 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.api.graphql.rejoiner; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** Annotation that marks fields to be included in the root query object. */ @Retention(RetentionPolicy.RUNTIME) public @interface Query { /** Name of the Query, only used when annotating a method. */ String value() default ""; /** * Full service name (including package) to be able to find appropriate metadata in generated * descriptor set. */ String fullName() default ""; }
googleads/googleads-java-lib
1,046
modules/ads_lib_appengine/src/test/java/com/google/api/ads/common/lib/soap/jaxws/testing/mocks/CampaignServiceInterface.java
// Copyright 2012 Google Inc. All Rights Reserved. // // 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.api.ads.common.lib.soap.jaxws.testing.mocks; import com.google.api.ads.common.lib.soap.jaxws.JaxWsHandler; import javax.xml.ws.BindingProvider; /** * Mock of a JAX-WS web service interface. Used to test * {@link JaxWsHandler#createSoapClient(com.google.api.ads.common.lib.soap.SoapServiceDescriptor)}. */ public interface CampaignServiceInterface extends BindingProvider { public String getTestMessage(); }
googlearchive/gwt-google-apis
1,095
gadgets/gadgets/src/com/google/gwt/gadgets/client/NeedsSetPrefs.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.gadgets.client; import com.google.gwt.gadgets.client.GadgetFeature.FeatureName; /** * Indicates that a Gadget intends to save preferences data. */ @FeatureName("setprefs") public interface NeedsSetPrefs { /** * Entry point that gets called back to handle set preferences feature * initialization. * * @param feature an instance of the feature to use to invoke feature specific * methods. */ void initializeFeature(SetPrefsFeature feature); }
googlemaps/google-maps-services-java
1,088
src/main/java/com/google/maps/errors/MaxElementsExceededException.java
/* * Copyright 2014 Google Inc. All rights reserved. * * * 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.maps.errors; /** * Indicates that the product of origins and destinations exceeds the per-query limit. * * @see <a href="https://developers.google.com/maps/documentation/distance-matrix/usage-limits"> * Limits</a> */ public class MaxElementsExceededException extends ApiException { private static final long serialVersionUID = 5926526363472768479L; public MaxElementsExceededException(String errorMessage) { super(errorMessage); } }
hibernate/hibernate-ogm
1,033
core/src/test/java/org/hibernate/ogm/backendtck/embeddable/AccountWithPhone.java
/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.backendtck.embeddable; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.Id; /** * @author Davide D'Alto */ @Entity public class AccountWithPhone { @Id private String id; @Embedded private PhoneNumber phoneNumber; private String name; protected AccountWithPhone() { } public AccountWithPhone(String id, String name) { this.id = id; this.name = name; } public String getId() { return id; } public void setId(String id) { this.id = id; } public PhoneNumber getPhoneNumber() { return phoneNumber; } public void setPhoneNumber(PhoneNumber list) { this.phoneNumber = list; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
hibernate/hibernate-ogm
1,077
core/src/main/java/org/hibernate/ogm/dialect/batch/spi/GroupingByEntityDialect.java
/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.dialect.batch.spi; import org.hibernate.ogm.dialect.spi.GridDialect; import org.hibernate.ogm.dialect.spi.TupleContext; import org.hibernate.ogm.model.key.spi.EntityKey; /** * A {@link GridDialect} that can group operations for a given entity. * * @author Guillaume Smet */ public interface GroupingByEntityDialect extends GridDialect { /** * Execute all the changes collected in the {@link OperationsQueue}. * * @param operationsQueue the operations queue */ void executeBatch(OperationsQueue operationsQueue); /** * Flush all the pending operations. * * @param entityKey the {@link EntityKey} of the entity which is the origin of this operation * @param tupleContext the {@link TupleContext} */ void flushPendingOperations(EntityKey entityKey, TupleContext tupleContext); }
hibernate/hibernate-ogm
1,086
core/src/main/java/org/hibernate/ogm/type/impl/LongType.java
/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.type.impl; import org.hibernate.MappingException; import org.hibernate.engine.spi.Mapping; import org.hibernate.ogm.type.descriptor.impl.PassThroughGridTypeDescriptor; import org.hibernate.type.descriptor.java.LongTypeDescriptor; /** * Represents a Long type * * @author Emmanuel Bernard */ public class LongType extends AbstractGenericBasicType<Long> { public static final LongType INSTANCE = new LongType(); public LongType() { super( PassThroughGridTypeDescriptor.INSTANCE, LongTypeDescriptor.INSTANCE ); } @Override public String getName() { return "long"; } @Override public String[] getRegistrationKeys() { return new String[] { getName(), long.class.getName(), Long.class.getName() }; } @Override public int getColumnSpan(Mapping mapping) throws MappingException { return 1; } }
hibernate/hibernate-orm
1,037
hibernate-testing/src/main/java/org/hibernate/testing/cache/StrategyRegistrationProviderImpl.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.testing.cache; import org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl; import org.hibernate.boot.registry.selector.StrategyRegistration; import org.hibernate.boot.registry.selector.StrategyRegistrationProvider; import org.hibernate.cache.spi.RegionFactory; import static java.util.Collections.singletonList; /** * Makes the JCache RegionFactory available to the Hibernate * {@link org.hibernate.boot.registry.selector.spi.StrategySelector} service * under a number of keys. Prefer to use * * @author Steve Ebersole */ public class StrategyRegistrationProviderImpl implements StrategyRegistrationProvider { @Override public Iterable<StrategyRegistration<?>> getStrategyRegistrations() { return singletonList( new SimpleStrategyRegistrationImpl<>( RegionFactory.class, CachingRegionFactory.class, "testing", CachingRegionFactory.class.getName() ) ); } }
hibernate/hibernate-orm
1,039
hibernate-core/src/main/java/org/hibernate/type/internal/UserTypeVersionJavaTypeWrapper.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.type.internal; import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.type.CustomType; import org.hibernate.type.descriptor.java.VersionJavaType; import org.hibernate.usertype.UserVersionType; /** * * @author Christian Beikov */ public class UserTypeVersionJavaTypeWrapper<J> extends UserTypeJavaTypeWrapper<J> implements VersionJavaType<J> { public UserTypeVersionJavaTypeWrapper(UserVersionType<J> userType, CustomType<J> customType) { super( userType, customType ); } @Override public J seed( Long length, Integer precision, Integer scale, SharedSessionContractImplementor session) { return ( (UserVersionType<J>) userType ).seed( session ); } @Override public J next( J current, Long length, Integer precision, Integer scale, SharedSessionContractImplementor session) { return ( (UserVersionType<J>) userType ).next( current, session ); } }
hibernate/hibernate-orm
1,039
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetomany/PoliticalParty.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.annotations.onetomany; import java.util.HashSet; import java.util.Set; import jakarta.persistence.CascadeType; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Id; import jakarta.persistence.OneToMany; /** * @author Emmanuel Bernard */ @Entity public class PoliticalParty { private String name; private Set<Politician> politicians = new HashSet<Politician>(); @Id @Column(columnDefinition = "VARCHAR(60)") public String getName() { return name; } public void setName(String name) { this.name = name; } @OneToMany(mappedBy = "party", cascade = CascadeType.ALL) public Set<Politician> getPoliticians() { return politicians; } public void setPoliticians(Set<Politician> politicians) { this.politicians = politicians; } public void addPolitician(Politician politician) { politicians.add( politician ); politician.setParty( this ); } }
hibernate/hibernate-orm
1,043
hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/RelationalValueSource.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.boot.model.source.spi; /** * Unifying interface for {@link ColumnSource} and {@link DerivedValueSource}. * * @author Steve Ebersole * * @see ColumnSource * @see DerivedValueSource */ public interface RelationalValueSource { /** * @return returns the name of the table that contains this value. */ String getContainingTableName(); /** * Retrieve the nature of this relational value. Is it a column? Or is it a derived value (formula)? * * @return The nature. */ Nature getNature(); enum Nature { COLUMN( ColumnSource.class ), DERIVED( DerivedValueSource.class ); private final Class<? extends RelationalValueSource> specificContractClass; Nature(Class<? extends RelationalValueSource> specificContractClass) { this.specificContractClass = specificContractClass; } public Class<? extends RelationalValueSource> getSpecificContractClass() { return specificContractClass; } } }
hibernate/hibernate-orm
1,050
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/naturalid/D.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.annotations.naturalid; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.Version; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; /** * @author Guenther Demetz */ @Entity @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) public class D { @Id @GeneratedValue(strategy = GenerationType.TABLE) public long oid; @Version private int version; @jakarta.persistence.ManyToOne(fetch = FetchType.LAZY) private A a = null; @jakarta.persistence.OneToOne(mappedBy = "singleD") private A singleA = null; public A getA() { return a; } public void setA(A a) { this.a = a; } public A getSingleA() { return singleA; } public void setSingleA(A singleA) { this.singleA = singleA; } }
hibernate/hibernate-search
1,028
documentation/src/test/java/org/hibernate/search/documentation/mapper/orm/binding/projectionbinder/multi/Book.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.search.documentation.mapper.orm.binding.projectionbinder.multi; import java.util.ArrayList; import java.util.List; import jakarta.persistence.ElementCollection; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; import jakarta.persistence.OrderColumn; import org.hibernate.search.engine.backend.types.Projectable; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.KeywordField; @Entity @Indexed public class Book { @Id @GeneratedValue private Integer id; @ElementCollection @KeywordField(projectable = Projectable.YES) @OrderColumn private List<String> tags = new ArrayList<>(); public Integer getId() { return id; } public List<String> getTags() { return tags; } public void setTags(List<String> tags) { this.tags = tags; } }
hibernate/hibernate-shards
1,098
src/main/java/org/hibernate/shards/id/ShardEncodingIdentifierGenerator.java
/** * Copyright (C) 2007 Google Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library 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 * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ package org.hibernate.shards.id; import org.hibernate.id.IdentifierGenerator; import org.hibernate.shards.ShardId; import java.io.Serializable; /** * @author Tomislav Nad */ public interface ShardEncodingIdentifierGenerator extends IdentifierGenerator { ShardId extractShardId(Serializable identifier); }
openjdk/jdk8
1,129
langtools/test/tools/javac/HiddenAbstractMethod/two/Child.java
/* * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package two; public class Child extends one.Parent { void method() {} }
openjdk/jdk8
1,141
langtools/test/tools/javac/6302184/T6302184.java
/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /** * This is a test that uses ISO 8859 encoding. */ class T6302184 { int = 1; }
openjdk/jdk8
1,141
langtools/test/tools/javadoc/badSuper/p/B.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 p; public class B extends I { // should be "implements" } interface I { }
openjdk/jdk8
1,149
langtools/test/tools/javac/6402516/A.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p; public class A { public int publ; protected int prot; private int priv; }
openjdk/jtreg
1,132
test/modlibs/buildAction/usermods/BuildUserModPackage.java
/* * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @library /libs/usermods * @build um4/um4_p1.um4_q1.um4_r1.* */
openjdk/jtreg
1,155
test/rerun/testng/TestNGTest.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. */ import org.testng.annotations.*; public class TestNGTest { @Test public void test() { } }
openjdk/jtreg
1,161
test/6527624/B/GoodB.java
/* * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @key Any1 Any3 */ public class GoodB { public static void main(String[] args) { } }
openjdk/skara
1,156
proxy/src/main/java/module-info.java
/* * Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ module org.openjdk.skara.proxy { requires java.logging; exports org.openjdk.skara.proxy; }
oracle-devrel/springai-rag-db23ai
1,110
src/test/java/com/example/demoai/DemoaiApplicationTests.java
// Copyright (c) 2024, Oracle and/or its affiliates. // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ // ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, // FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, // AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES // DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, // MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING // THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT // ANY REVIEW. USE AT YOUR OWN RISK. package com.example.demoai; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class DemoaiApplicationTests { @Test void contextLoads() { } }
oracle/coherence
1,058
prj/coherence-core-components/src/main/java/com/tangosol/coherence/component/net/extend/proxy/GrpcExtendProxy.java
/* * Copyright (c) 2000, 2025, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package com.tangosol.coherence.component.net.extend.proxy; import com.google.protobuf.Message; import com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.grpcAcceptor.GrpcChannel; import com.tangosol.net.messaging.Channel; /** * A gRPC extend proxy. * * @author Jonathan Knight 2025.01.25 */ public interface GrpcExtendProxy<Resp extends Message> extends Channel.Receiver { /** * Return the {@link GrpcChannel} used by this proxy. * * @return the {@link GrpcChannel} used by this proxy */ @SuppressWarnings("unchecked") default GrpcChannel<Resp> getGrpcChannel() { return (GrpcChannel<Resp>) getChannel(); } /** * Return the {@link Channel} used by this proxy. * * @return the {@link Channel} used by this proxy */ Channel getChannel(); }
oracle/nosql
1,113
kvmain/src/main/java/oracle/kv/impl/measurement/ConciseStats.java
/*- * Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package oracle.kv.impl.measurement; /** * Interface implemented by an object which can format data to be recorded in * the .stat file. */ public interface ConciseStats { /** * Returns the start time for the collection period. * * @return the start time for the collection period */ long getStart(); /** * Returns the end time for the collection period. * * @return the end time for the collection period */ long getEnd(); /** * Returns a string formatted for the .stat log file. * * @return a formatted string */ String getFormattedStats(); }
apache/commons-ognl
1,101
src/test/java/org/apache/commons/ognl/test/objects/SearchCriteria.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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; /** * Test for OGNL-131. */ public class SearchCriteria { String _displayName; public SearchCriteria( String name ) { _displayName = name; } public String getDisplayName() { return _displayName; } }
apache/crunch
1,121
crunch-core/src/main/java/org/apache/crunch/io/MapReduceTarget.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.crunch.io; import org.apache.crunch.Target; import org.apache.crunch.types.PType; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.Job; public interface MapReduceTarget extends Target { void configureForMapReduce(Job job, PType<?> ptype, Path outputPath, String name); }
apache/ctakes
1,058
ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/AbstractConceptFactory.java
package org.apache.ctakes.dictionary.lookup2.concept; import java.util.Collection; import java.util.HashMap; import java.util.Map; /** * Author: SPF * Affiliation: CHIP-NLP * Date: 9/4/2014 */ abstract public class AbstractConceptFactory implements ConceptFactory { final private String _name; public AbstractConceptFactory( final String name ) { _name = name; } /** * {@inheritDoc} */ @Override public String getName() { return _name; } /** * Only creates non-empty concepts; Cuis for which additional info does not exist don't create concepts * {@inheritDoc} */ @Override public Map<Long, Concept> createConcepts( final Collection<Long> cuiCodes ) { final Map<Long, Concept> conceptMap = new HashMap<>( cuiCodes.size() ); for ( Long cuiCode : cuiCodes ) { final Concept concept = createConcept( cuiCode ); if ( concept != null && !concept.isEmpty() ) { conceptMap.put( cuiCode, concept ); } } return conceptMap; } }
apache/ctakes
1,100
ctakes-lvg/src/main/java/org/apache/ctakes/lvg/resource/LvgCmdApiResource.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * */ package org.apache.ctakes.lvg.resource; import gov.nih.nlm.nls.lvg.Api.LvgCmdApi; import gov.nih.nlm.nls.lvg.Api.LvgLexItemApi; /** * @author Mayo Clinic * */ public interface LvgCmdApiResource { public LvgCmdApi getLvg(); public LvgLexItemApi getLvgLex(); }
apache/cxf
1,107
rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/spring/NamespaceHandler.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.ws.addressing.spring; import org.springframework.beans.factory.xml.NamespaceHandlerSupport; public class NamespaceHandler extends NamespaceHandlerSupport { public void init() { registerBeanDefinitionParser("addressing", new AddressingBeanDefinitionParser()); } }
apache/directory-studio
1,053
tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/AttributeTypeEditorBot.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.directory.studio.test.integration.ui.bots; public class AttributeTypeEditorBot extends BaseSchemaEditorBot { public AttributeTypeEditorBot( String title ) { super( title ); } }
apache/dolphinscheduler
1,082
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/SessionDao.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.dao.repository; import org.apache.dolphinscheduler.dao.entity.Session; import java.util.List; public interface SessionDao extends IDao<Session> { void deleteByUserId(Integer userId); List<Session> queryByUserId(Integer userId); }
apache/doris-manager
1,052
manager/general/src/main/java/org/apache/doris/stack/exception/DorisSpaceDuplicatedException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class DorisSpaceDuplicatedException extends Exception { public static final String MESSAGE = "Doris集群已经绑定了空间,请重新输入"; public DorisSpaceDuplicatedException() { super(MESSAGE); } }
apache/doris-manager
1,085
manager/resource-common/src/main/java/org/apache/doris/stack/control/ModelControlLevel.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.control; /** * @Description:Doris manager controlled model level * TODO:You can add more */ public enum ModelControlLevel { RESOURCE_CLUSTER, RESOURCE_CLUSTER_NODE, DORIS_CLUSTER, DORIS_CLUSTER_MODULE, DORIS_CLUSTER_INSTANCE; }
apache/drill
1,089
logical/src/main/java/org/apache/drill/common/expression/visitors/ExpressionValidationError.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.common.expression.visitors; public class ExpressionValidationError { String message; public ExpressionValidationError(String message) { this.message = message; } @Override public String toString() { return message; } }
apache/drill
1,100
exec/java-exec/src/test/resources/org/apache/drill/CompileClassWithArraysAssignment.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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; import org.apache.drill.exec.expr.holders.NullableBigIntHolder; public class CompileClassWithArraysAssignment { public static void doSomething() { NullableBigIntHolder[] inputs = new NullableBigIntHolder[ 3 ] ; inputs[ 0 ] = new NullableBigIntHolder(); } }
apache/druid
1,101
processing/src/test/java/org/apache/druid/collections/StableLimitingSorterTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.collections; import nl.jqno.equalsverifier.EqualsVerifier; import org.junit.Test; public class StableLimitingSorterTest { @Test public void testEquals() { EqualsVerifier.forClass(StableLimitingSorter.NumberedElement.class).usingGetClass().verify(); } }
apache/dubbo-go-samples
1,061
java_interop/non-protobuf-dubbo/java-client/src/main/java/org/apache/dubbo/hessian2/api/GreetResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.hessian2.api; public class GreetResponse implements java.io.Serializable { private String greeting; public String getGreeting() { return greeting; } public void setGreeting(String greeting) { this.greeting = greeting; } }
apache/dubbo-go-samples
1,061
java_interop/non-protobuf-dubbo/java-server/src/main/java/org/apache/dubbo/hessian2/api/GreetResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.hessian2.api; public class GreetResponse implements java.io.Serializable { private String greeting; public String getGreeting() { return greeting; } public void setGreeting(String greeting) { this.greeting = greeting; } }
apache/dubbo-samples
1,054
3-extensions/protocol/dubbo-samples-port-unification/src/main/java/org/apache/dubbo/samples/provider/GreetingServiceImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.samples.provider; import org.apache.dubbo.samples.api.GreetingService; public class GreetingServiceImpl implements GreetingService { @Override public String sayHi(String name) { return "hi, " + name; } }
apache/dubbo-spi-extensions
1,054
dubbo-rpc-extensions/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/exception/PathNoFoundException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.protocol.rest.exception; /** * response code : 404 path no found exception */ public class PathNoFoundException extends RestException { public PathNoFoundException(String message) { super(message); } }
apache/dubbo
1,090
dubbo-common/src/test/java/org/apache/dubbo/common/extension/director/impl/TestFrameworkProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.extension.director.impl; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.director.FooFrameworkProvider; public class TestFrameworkProvider implements FooFrameworkProvider { @Override public void process(URL url) {} }
apache/dubbo
1,109
dubbo-common/src/main/java/org/apache/dubbo/common/status/StatusChecker.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.status; import org.apache.dubbo.common.extension.ExtensionScope; import org.apache.dubbo.common.extension.SPI; @SPI(scope = ExtensionScope.APPLICATION) public interface StatusChecker { /** * check status * * @return status */ Status check(); }
apache/eagle
1,066
eagle-core/eagle-app/eagle-app-streamproxy/src/main/java/org/apache/eagle/app/proxy/stream/StreamMetadataUpdateService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.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.util.Map; public interface StreamMetadataUpdateService extends Runnable { Map<String, StreamDesc> getStreamDescSnapshot(); void shutdown(); }
apache/felix-dev
1,037
ipojo/runtime/composite-it/ipojo-composite-import-export-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,039
ipojo/runtime/core-it/ipojo-core-service-dependency-test/src/main/java/org/apache/felix/ipojo/runtime/core/test/components/inner/C2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.test.components.inner; import org.apache.felix.ipojo.runtime.core.test.services.Call; public class C2 { private Call c1; public String authenticate() { return c1.callMe(); } }
apache/fineract
1,063
fineract-core/src/main/java/org/apache/fineract/infrastructure/event/external/exception/AcknowledgementTimeoutException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.event.external.exception; public class AcknowledgementTimeoutException extends RuntimeException { public AcknowledgementTimeoutException(String message, Throwable cause) { super(message, cause); } }
apache/flink
1,107
flink-runtime/src/main/java/org/apache/flink/runtime/state/RestoreOperation.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.state; /** * Interface for restore operation. * * @param <R> Generic type of the restore result. */ public interface RestoreOperation<R> { /** Restores state that was previously snapshot-ed from the provided state handles. */ R restore() throws Exception; }
apache/flink
1,110
flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/Sorter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.operators.sort; import org.apache.flink.runtime.operators.util.CloseableInputProvider; /** * The SortMerger interface representing the public interface to all specific Sort-Merge * implementations. */ public interface Sorter<E> extends CloseableInputProvider<E> {}
apache/freemarker
1,088
freemarker-test-utils/src/main/java/freemarker/ext/beans/DefaultObjectWrapperDesc2003020.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package freemarker.ext.beans; import freemarker.template.Configuration; public class DefaultObjectWrapperDesc2003020 extends DefaultObjectWrapperWithSortedMethods { public DefaultObjectWrapperDesc2003020() { super(Configuration.VERSION_2_3_20, true); } }
apache/freemarker
1,088
freemarker-test-utils/src/main/java/freemarker/ext/beans/DefaultObjectWrapperDesc2003021.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package freemarker.ext.beans; import freemarker.template.Configuration; public class DefaultObjectWrapperDesc2003021 extends DefaultObjectWrapperWithSortedMethods { public DefaultObjectWrapperDesc2003021() { super(Configuration.VERSION_2_3_21, true); } }
apache/freemarker
1,088
freemarker-test-utils/src/main/java/freemarker/ext/beans/DefaultObjectWrapperDesc2003022.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package freemarker.ext.beans; import freemarker.template.Configuration; public class DefaultObjectWrapperDesc2003022 extends DefaultObjectWrapperWithSortedMethods { public DefaultObjectWrapperDesc2003022() { super(Configuration.VERSION_2_3_22, true); } }
apache/freemarker
1,097
freemarker-core/src/test/java/freemarker/template/NullConfigurationTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package freemarker.template; import java.io.IOException; import java.io.StringReader; import org.junit.Test; public class NullConfigurationTest { @Test public void testTemplateNPEBug() throws IOException { new Template("legacy", new StringReader("foo")); } }
apache/geaflow
1,068
geaflow-console/app/core/model/src/main/java/org/apache/geaflow/console/core/model/config/GeaflowSystemConfig.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.core.model.config; import lombok.Getter; import lombok.Setter; import org.apache.geaflow.console.core.model.GeaflowName; @Getter @Setter public class GeaflowSystemConfig extends GeaflowName { private String value; }
apache/geaflow
1,088
geaflow/geaflow-model/src/main/java/org/apache/geaflow/model/traversal/ITraversalRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.model.traversal; import java.io.Serializable; import org.apache.geaflow.model.traversal.TraversalType.RequestType; public interface ITraversalRequest<K> extends Serializable { long getRequestId(); K getVId(); RequestType getType(); }
apache/gobblin
1,095
gobblin-service/src/main/java/org/apache/gobblin/service/monitoring/GitDiffListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.service.monitoring; import org.eclipse.jgit.diff.DiffEntry; /** * Listener for {@link GitMonitoringService} to apply changes detected from Git. */ public interface GitDiffListener { void addChange(DiffEntry change); void removeChange(DiffEntry change); }
apache/gobblin
1,113
gobblin-api/src/main/java/gobblin/configuration/ImmutableWorkUnitState.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package gobblin.configuration; /*** * Shim layer for org.apache.gobblin.configuration.ImmutableWorkUnitState */ public class ImmutableWorkUnitState extends org.apache.gobblin.configuration.ImmutableWorkUnitState { public ImmutableWorkUnitState(WorkUnitState workUnitState) { super(workUnitState); } }
apache/groovy
1,071
subprojects/groovy-groovydoc/src/test/resources/org/codehaus/groovy/tools/groovydoc/testfiles/MultiCatchExample.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.codehaus.groovy.tools.groovydoc.testfiles; public class MultiCatchExample { /** * foo has a multi-catch exception inside */ void foo() { try { } catch(NumberFormatException | NullPointerException e) {} } }
apache/hadoop-common
1,077
hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/nfs/nfs3/request/FSINFO3Request.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.nfs.nfs3.request; import java.io.IOException; import org.apache.hadoop.oncrpc.XDR; /** * FSINFO3 Request */ public class FSINFO3Request extends RequestWithHandle { public FSINFO3Request(XDR xdr) throws IOException { super(xdr); } }
apache/hadoop-common
1,077
hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/nfs/nfs3/request/FSSTAT3Request.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.nfs.nfs3.request; import java.io.IOException; import org.apache.hadoop.oncrpc.XDR; /** * FSSTAT3 Request */ public class FSSTAT3Request extends RequestWithHandle { public FSSTAT3Request(XDR xdr) throws IOException { super(xdr); } }
apache/hadoop-common
1,090
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcScheduler.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.ipc; /** * Implement this interface to be used for RPC scheduling in the fair call queues. */ public interface RpcScheduler { /** * Returns priority level greater than zero as a hint for scheduling. */ int getPriorityLevel(Schedulable obj); }
apache/hama
1,121
core/src/main/java/org/apache/hama/monitor/MonitorListener.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hama.monitor; import org.apache.hama.monitor.Monitor.Result; /** * MonitorListener passes the result for notification. */ public interface MonitorListener { /** * When an event is triggered, the task passes the result to notify the * monitor. */ void notify(Result result); }
apache/harmony
1,072
classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/MockFoo2Parent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.harmony.beans.tests.support.mock; /** * test for DefaultPersistenceDelegate */ public class MockFoo2Parent { private int i = 0; public void set(int i) { this.i = i; } public int get() { return this.i; } }
apache/harmony
1,103
classlib/modules/awt/src/main/java/common/java/awt/event/ContainerAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Michael Danilov */ package java.awt.event; public abstract class ContainerAdapter implements ContainerListener { public ContainerAdapter() { } public void componentAdded(ContainerEvent e) { } public void componentRemoved(ContainerEvent e) { } }
apache/harmony
1,117
classlib/modules/rmi/src/main/java/java/rmi/activation/Activator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.rmi.activation; import java.rmi.MarshalledObject; import java.rmi.Remote; import java.rmi.RemoteException; public interface Activator extends Remote { MarshalledObject activate(ActivationID id, boolean force) throws ActivationException, UnknownObjectException, RemoteException; }
apache/harmony
1,121
classlib/modules/x-net/src/main/java/javax/net/ssl/KeyManager.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.net.ssl; /** * This is the interface to implement in order to mark a class as a JSSE key * managers so that key managers can be easily grouped. The key managers are * responsible for handling the keys used to authenticate the local side to its * peer, */ public interface KeyManager { }
apache/hop
1,064
plugins/transforms/rowsfromresult/src/main/java/org/apache/hop/pipeline/transforms/recordsfromstream/RecordsFromStreamData.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.pipeline.transforms.recordsfromstream; import org.apache.hop.pipeline.transforms.rowsfromresult.RowsFromResultData; public class RecordsFromStreamData extends RowsFromResultData { public RecordsFromStreamData() { super(); } }
apache/iceberg
1,127
api/src/main/java/org/apache/iceberg/PartitionScanTask.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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; /** A scan task for data within a particular partition */ public interface PartitionScanTask extends ScanTask { /** Returns the spec of the partition for this scan task */ PartitionSpec spec(); /** Returns the value of the partition for this scan task */ StructLike partition(); }
apache/iggy
1,100
foreign/java/java-sdk/src/main/java/org/apache/iggy/client/blocking/IggyClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iggy.client.blocking; public class IggyClient { private final IggyBaseClient baseClient; public IggyClient(IggyBaseClient baseClient) { this.baseClient = baseClient; } public IggyBaseClient getBaseClient() { return baseClient; } }
apache/ignite-3
1,072
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/configuration/DataRegionConfiguration.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.pagememory.configuration; /** Common interface for volatile and persistent regions. */ public interface DataRegionConfiguration { /** Page size in bytes. */ int pageSize(); /** Data region's name. */ String name(); }
apache/ignite
1,086
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/dml/DmlArgument.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.processors.query.h2.dml; /** * DML argument */ public interface DmlArgument { /** * Get argument from parameter list. * * @param params Query input parameters. * @return value. */ Object get(Object[] params); }
apache/ignite
1,103
modules/core/src/main/java/org/apache/ignite/internal/util/GridIntIterator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.util; /** * Iterator over integer primitives. */ public interface GridIntIterator { /** * @return {@code true} if the iteration has more elements. */ public boolean hasNext(); /** * @return Next int. */ public int next(); }
apache/impala
1,103
fe/src/main/java/org/apache/impala/catalog/MetastoreClientInstantiationException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.impala.catalog; /** * Exception thrown in the constructor of MetaStoreClient when we fail to initialize it. */ public class MetastoreClientInstantiationException extends RuntimeException { public MetastoreClientInstantiationException(Throwable cause) { super(cause); } }
apache/incubator-baremaps
1,092
baremaps-core/src/main/java/org/apache/baremaps/geocoder/GeocoderConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.baremaps.geocoder; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; /** * Constants used by the geocoder. */ public class GeocoderConstants { public static final Analyzer ANALYZER = new StandardAnalyzer(); }
apache/incubator-brooklyn
1,064
brooklyn-library/software/monitoring/src/main/java/org/apache/brooklyn/entity/monitoring/monit/MonitDriver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.entity.monitoring.monit; import org.apache.brooklyn.entity.software.base.SoftwareProcessDriver; public interface MonitDriver extends SoftwareProcessDriver { String getStatusCmd(); String getExpandedInstallDir(); }
apache/incubator-datalab
1,079
services/self-service/src/main/java/com/epam/datalab/backendapi/resources/dto/LibraryDTO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES 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.resources.dto; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @Getter @AllArgsConstructor @NoArgsConstructor public class LibraryDTO { private String name; private String version; }
apache/incubator-heron
1,098
heron/common/src/java/org/apache/heron/common/utils/misc/ThreadNames.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.heron.common.utils.misc; public final class ThreadNames { /** * Thread Name Constants */ public static final String THREAD_EXECUTOR_NAME = "ExecutorThread"; public static final String THREAD_GATEWAY_NAME = "GatewayThread"; private ThreadNames() { } }
apache/incubator-kie-drools
1,093
drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.traits.core.factmodel; import java.io.Serializable; public interface TripleFactory extends Serializable { Triple newTriple( Object subject, String predicate, Object object ); Triple newTriple( Object subject, Object predicate, Object object); }
apache/incubator-kie-kogito-runtimes
1,047
quarkus/addons/token-exchange/runtime/src/main/java/org/kie/kogito/addons/quarkus/token/exchange/cache/TokenCRUD.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.addons.quarkus.token.exchange.cache; import io.quarkus.oidc.client.Tokens; public interface TokenCRUD { public void storeToken(String cacheKey, Tokens tokens); public void deleteToken(String cacheKey); }
apache/incubator-kie-optaplanner
1,039
core/optaplanner-constraint-streams-bavet/src/main/java/org/optaplanner/constraint/streams/bavet/common/LeftTupleLifecycle.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.optaplanner.constraint.streams.bavet.common; public interface LeftTupleLifecycle<Tuple_ extends Tuple> { void insertLeft(Tuple_ tuple); void updateLeft(Tuple_ tuple); void retractLeft(Tuple_ tuple); }
apache/incubator-myriad
1,073
myriad-scheduler/src/main/java/org/apache/myriad/configuration/MyriadBadConfigurationException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.myriad.configuration; /** * Myriad specific exception */ @SuppressWarnings("serial") public class MyriadBadConfigurationException extends Exception { public MyriadBadConfigurationException(String message) { super(message); } }
apache/incubator-retired-edgent
1,089
connectors/iot/src/main/java/org/apache/edgent/connectors/iot/Events.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.edgent.connectors.iot; /** * Device event identifiers used by Edgent. * * @see IotDevice#RESERVED_ID_PREFIX */ public interface Events { /** * An IotProvider has started. * Event data is an empty JSON object */ String IOT_START = IotDevice.RESERVED_ID_PREFIX + "IotStart"; }
apache/incubator-tez
1,093
tez-dag/src/main/java/org/apache/tez/dag/app/rm/container/AMContainerEventLaunched.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package org.apache.tez.dag.app.rm.container; import org.apache.hadoop.yarn.api.records.ContainerId; public class AMContainerEventLaunched extends AMContainerEvent { public AMContainerEventLaunched(ContainerId containerId) { super(containerId, AMContainerEventType.C_LAUNCHED); } }
apache/incubator-tuweni
1,106
crypto/src/main/java/org/apache/tuweni/crypto/sodium/SodiumException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ package org.apache.tuweni.crypto.sodium; /** * An exception that is thrown when an error occurs using the native sodium library. */ public final class SodiumException extends RuntimeException { /** * @param message The exception message. */ public SodiumException(String message) { super(message); } }