repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
googleapis/java-bigtable-hbase | 1,080 | bigtable-hbase-1.x-parent/bigtable-hbase-1.x-hadoop/src/main/java/com/google/cloud/bigtable/hbase/MavenPlaceholderHadoop1x.java | /*
* Copyright 2015 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.cloud.bigtable.hbase;
/**
* This class is here to force generation of source javadoc jars so that the maven release process
* doesn't complain. The shading plugin generated a shaded jar of bigtable-hbase, but it doesn't
* generate javadoc or source files; this class is here as a hack and better methods should be
* employed.
*
* @author sduskis
* @version $Id: $Id
*/
public final class MavenPlaceholderHadoop1x {
private MavenPlaceholderHadoop1x() {}
}
|
googleapis/java-bigtable-hbase | 1,080 | bigtable-hbase-1.x-parent/bigtable-hbase-1.x-shaded/src/main/java/com/google/cloud/bigtable/hbase/MavenPlaceholderShaded1x.java | /*
* Copyright 2015 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.cloud.bigtable.hbase;
/**
* This class is here to force generation of source javadoc jars so that the maven release process
* doesn't complain. The shading plugin generated a shaded jar of bigtable-hbase, but it doesn't
* generate javadoc or source files; this class is here as a hack and better methods should be
* employed.
*
* @author sduskis
* @version $Id: $Id
*/
public final class MavenPlaceholderShaded1x {
private MavenPlaceholderShaded1x() {}
}
|
googleapis/java-bigtable-hbase | 1,080 | bigtable-hbase-2.x-parent/bigtable-hbase-2.x-hadoop/src/main/java/com/google/cloud/bigtable/hbase/MavenPlaceholderHadoop2x.java | /*
* Copyright 2015 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.cloud.bigtable.hbase;
/**
* This class is here to force generation of source javadoc jars so that the maven release process
* doesn't complain. The shading plugin generated a shaded jar of bigtable-hbase, but it doesn't
* generate javadoc or source files; this class is here as a hack and better methods should be
* employed.
*
* @author sduskis
* @version $Id: $Id
*/
public final class MavenPlaceholderHadoop2x {
private MavenPlaceholderHadoop2x() {}
}
|
googleapis/java-bigtable-hbase | 1,080 | bigtable-hbase-2.x-parent/bigtable-hbase-2.x-shaded/src/main/java/com/google/cloud/bigtable/hbase/MavenPlaceholderShaded2x.java | /*
* Copyright 2015 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.cloud.bigtable.hbase;
/**
* This class is here to force generation of source javadoc jars so that the maven release process
* doesn't complain. The shading plugin generated a shaded jar of bigtable-hbase, but it doesn't
* generate javadoc or source files; this class is here as a hack and better methods should be
* employed.
*
* @author sduskis
* @version $Id: $Id
*/
public final class MavenPlaceholderShaded2x {
private MavenPlaceholderShaded2x() {}
}
|
googlearchive/android-nearby | 1,097 | connections/walkietalkie/app/src/main/java/com/google/location/nearby/apps/walkietalkie/AudioBuffer.java | package com.google.location.nearby.apps.walkietalkie;
/**
* A buffer that grabs the smallest supported sample rate for {@link android.media.AudioTrack} and
* {@link android.media.AudioRecord}.
*/
public abstract class AudioBuffer {
private static final int[] POSSIBLE_SAMPLE_RATES =
new int[] {8000, 11025, 16000, 22050, 44100, 48000};
final int size;
final int sampleRate;
final byte[] data;
protected AudioBuffer() {
int size = -1;
int sampleRate = -1;
// Iterate over all possible sample rates, and try to find the shortest one. The shorter
// it is, the faster it'll stream.
for (int rate : POSSIBLE_SAMPLE_RATES) {
sampleRate = rate;
size = getMinBufferSize(sampleRate);
if (validSize(size)) {
break;
}
}
// If none of them were good, then just pick 1kb
if (!validSize(size)) {
size = 1024;
}
this.size = size;
this.sampleRate = sampleRate;
data = new byte[size];
}
protected abstract boolean validSize(int size);
protected abstract int getMinBufferSize(int sampleRate);
}
|
googlearchive/gwt-google-apis | 1,128 | gadgets/gadgets/src/com/google/gwt/gadgets/client/NeedsGoogleAnalytics.java | /*
* Copyright 2010 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 requires the Google Analytics feature.
*/
@FeatureName("com.google.gadgets.analytics")
public interface NeedsGoogleAnalytics {
/**
* Entry point that gets called back to handle analytics feature
* initialization.
*
* @param feature an instance of the feature to use to invoke feature specific
* methods.
*/
void initializeFeature(GoogleAnalyticsFeature feature);
}
|
googlesamples/io2014-codelabs | 1,058 | mobile-backend-starter/begin/mobile-backend-starter-android-client-core/src/main/java/com/google/cloud/backend/volleyutil/BitmapLruCache.java | package com.google.cloud.backend.volleyutil;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader;
/**
* LRU cache for Bitmap used for caches for ImageLoader (Volley).
*
*/
public class BitmapLruCache extends LruCache<String, Bitmap> implements ImageLoader.ImageCache {
public BitmapLruCache() {
this(getDefaultLruCacheSize());
}
public BitmapLruCache(int sizeInKiloBytes) {
super(sizeInKiloBytes);
}
@Override
protected int sizeOf(String key, Bitmap value) {
return value.getRowBytes() * value.getHeight() / 1024;
}
@Override
public Bitmap getBitmap(String url) {
return get(url);
}
@Override
public void putBitmap(String url, Bitmap bitmap) {
put(url, bitmap);
}
public static int getDefaultLruCacheSize() {
final int maxMemory =
(int) (Runtime.getRuntime().maxMemory() / 1024);
final int cacheSize = maxMemory / 8;
return cacheSize;
}
} |
hibernate/hibernate-orm | 1,028 | hibernate-core/src/test/java/org/hibernate/orm/test/mapping/converted/converter/caching/PostalArea.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.mapping.converted.converter.caching;
import org.hibernate.annotations.Immutable;
/**
* @author Steve Ebersole
*/
@Immutable
public enum PostalArea {
_78729( "78729", "North Austin", "Austin", State.TX );
private final String zipCode;
private final String name;
private final String cityName;
private final State state;
PostalArea(
String zipCode,
String name,
String cityName,
State state) {
this.zipCode = zipCode;
this.name = name;
this.cityName = cityName;
this.state = state;
}
public static PostalArea fromZipCode(String zipCode) {
if ( _78729.zipCode.equals( zipCode ) ) {
return _78729;
}
throw new IllegalArgumentException( "Unknown zip code" );
}
public String getZipCode() {
return zipCode;
}
public String getName() {
return name;
}
public String getCityName() {
return cityName;
}
public State getState() {
return state;
}
}
|
hibernate/hibernate-orm | 1,074 | hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/uuid/random2/Book.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.mapping.identifier.uuid.random2;
import java.util.UUID;
import org.hibernate.annotations.UuidGenerator;
import jakarta.persistence.Basic;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import static org.hibernate.annotations.UuidGenerator.Style.RANDOM;
/**
* @author Steve Ebersole
*/
//tag::example-identifiers-generators-uuid-implicit[]
@Entity
public class Book {
@Id
@GeneratedValue
@UuidGenerator(style = RANDOM)
private UUID id;
@Basic
private String name;
//end::example-identifiers-generators-uuid-implicit[]
protected Book() {
// for Hibernate use
}
public Book(String name) {
this.name = name;
}
public UUID getId() {
return id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
//tag::example-identifiers-generators-uuid-implicit[]
}
//end::example-identifiers-generators-uuid-implicit[]
|
hibernate/hibernate-orm | 1,082 | hibernate-jfr/src/main/java/org/hibernate/event/jfr/internal/CacheGetEvent.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.event.jfr.internal;
import org.hibernate.event.monitor.spi.DiagnosticEvent;
import org.hibernate.internal.build.AllowNonPortable;
import jdk.jfr.Category;
import jdk.jfr.Description;
import jdk.jfr.Event;
import jdk.jfr.Label;
import jdk.jfr.Name;
import jdk.jfr.StackTrace;
@Name( CacheGetEvent.NAME )
@Label( "Cache Get Executed" )
@Category( "Hibernate ORM" )
@Description( "Cache Get Executed" )
@StackTrace
@AllowNonPortable
public class CacheGetEvent extends Event implements DiagnosticEvent {
public static final String NAME = "org.hibernate.orm.CacheGet";
@Label( "Session Identifier" )
public String sessionIdentifier;
@Label( "Entity Name" )
public String entityName;
@Label( "Collection Name" )
public String collectionName;
@Label( "Used Natural Id" )
public boolean isNaturalId;
@Label( "Region Name" )
public String regionName;
@Label("Cache Hit")
public boolean hit;
@Override
public String toString() {
return NAME ;
}
}
|
hibernate/hibernate-orm | 1,083 | hibernate-core/src/test/java/org/hibernate/orm/test/hbm/version/GeneratedVersionBindingTest.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.hbm.version;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.BootstrapServiceRegistry;
import org.hibernate.boot.registry.BootstrapServiceRegistryBuilder;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.testing.junit4.BaseUnitTestCase;
import org.hibernate.testing.util.ServiceRegistryUtil;
import org.junit.Test;
/**
* @author Steve Ebersole
*/
public class GeneratedVersionBindingTest extends BaseUnitTestCase {
@Test
public void testIt() {
MetadataSources metadataSources = new MetadataSources( ServiceRegistryUtil.serviceRegistry() )
.addResource( "org/hibernate/orm/test/hbm/version/Mappings.hbm.xml" );
try {
metadataSources.buildMetadata();
}
finally {
ServiceRegistry metaServiceRegistry = metadataSources.getServiceRegistry();
if(metaServiceRegistry instanceof BootstrapServiceRegistry ) {
BootstrapServiceRegistryBuilder.destroy( metaServiceRegistry );
}
}
}
}
|
hibernate/hibernate-orm | 1,090 | hibernate-core/src/main/java/org/hibernate/loader/internal/LoadAccessContext.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.loader.internal;
import org.hibernate.Incubating;
import org.hibernate.Internal;
import org.hibernate.LockOptions;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.event.spi.LoadEvent;
import org.hibernate.event.spi.LoadEventListener;
/**
* Context for loader-access objects.
*/
@Incubating
@Internal
public interface LoadAccessContext {
/**
* The session from which the load originates
*/
SessionImplementor getSession();
/**
* Callback to check whether the session is "active"
*/
void checkOpenOrWaitingForAutoClose();
/**
* Callback to pulse the transaction coordinator
*/
void pulseTransactionCoordinator();
void delayedAfterCompletion();
/**
* Efficiently fire a {@link LoadEvent} with the given type
* and return the resulting entity instance or proxy.
*
* @since 7.0
*/
Object load(
LoadEventListener.LoadType loadType,
Object id, String entityName,
LockOptions lockOptions, Boolean readOnly);
}
|
hibernate/hibernate-orm | 1,107 | hibernate-core/src/test/java/org/hibernate/orm/test/bulkid/LocalTemporaryTableMutationStrategyIdTest.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.bulkid;
import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy;
import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableMutationStrategy;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.testing.orm.junit.DialectFeatureChecks;
import org.hibernate.testing.orm.junit.RequiresDialectFeature;
@RequiresDialectFeature(feature = DialectFeatureChecks.SupportsLocalTemporaryTable.class)
public class LocalTemporaryTableMutationStrategyIdTest extends AbstractMutationStrategyIdTest {
@Override
protected Class<? extends SqmMultiTableMutationStrategy> getMultiTableMutationStrategyClass() {
return LocalTemporaryTableMutationStrategy.class;
}
@Override
protected Class<? extends SqmMultiTableInsertStrategy> getMultiTableInsertStrategyClass() {
return LocalTemporaryTableInsertStrategy.class;
}
}
|
hibernate/hibernate-shards | 1,143 | src/main/java/org/hibernate/shards/query/SetFirstResultEvent.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.query;
import org.hibernate.Query;
/**
* @author Maulik Shah
*/
public class SetFirstResultEvent implements QueryEvent {
private final int firstResult;
public SetFirstResultEvent(int firstResult) {
this.firstResult = firstResult;
}
public void onEvent(Query query) {
query.setFirstResult(firstResult);
}
}
|
hibernate/hibernate-tools | 1,124 | jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/SessionFactoryWrapper.java | /*
* Hibernate Tools, Tooling for your Hibernate Projects
*
* Copyright 2024-2025 Red Hat, 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 org.hibernate.tool.orm.jbt.api.wrp;
import java.util.Map;
public interface SessionFactoryWrapper extends Wrapper {
void close();
Map<String, ClassMetadataWrapper> getAllClassMetadata();
Map<String, CollectionMetadataWrapper> getAllCollectionMetadata();
SessionWrapper openSession();
ClassMetadataWrapper getClassMetadata(String s);
ClassMetadataWrapper getClassMetadata(Class<?> c);
CollectionMetadataWrapper getCollectionMetadata(String s);
}
|
hibernate/hibernate-validator | 1,030 | annotation-processor/src/test/java/org/hibernate/validator/ap/testmodel/FieldLevelValidationUsingBuiltInConstraints.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.validator.ap.testmodel;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import jakarta.validation.constraints.Size;
public class FieldLevelValidationUsingBuiltInConstraints {
@Size(min = 10)
public String string;
@Size(min = 10)
public Collection collection1;
@Size(min = 10)
public Collection<?> collection2;
@Size(min = 10)
public Collection<String> stringCollection;
/**
* Allowed, as List extends Collection.
*/
@Size(min = 10)
public List list1;
@Size(min = 10)
public List<?> list2;
@Size(min = 10)
public List<String> stringList;
/**
* Not allowed (unsupported type).
*/
@Size(min = 10)
public Date date;
/**
* Not allowed (static field).
*/
@Size(min = 10)
public static String staticString;
@Size(min = 10)
public Object[] objectArray;
@Size(min = 10)
public Integer[] integerArray;
@Size(min = 10)
public int[] intArray;
}
|
hibernate/query-validator | 1,162 | src/test/source/test/Person.java | package test;
import jakarta.persistence.Id;
import jakarta.persistence.Entity;
import jakarta.persistence.Basic;
import jakarta.persistence.Access;
import jakarta.persistence.ElementCollection;
import jakarta.persistence.OneToMany;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToOne;
import jakarta.persistence.NamedQuery;
import jakarta.persistence.NamedQueries;
import java.util.Set;
import java.util.Date;
import java.util.List;
import static jakarta.persistence.AccessType.PROPERTY;
@Entity
@NamedQueries({
@NamedQuery(name="ok", query="from Person p where p.id=1"),
@NamedQuery(name="broke", query="from Person p where p.x=1")
})
public class Person {
@Id long id;
public String name;
@Basic(optional=false)
public Sex sex;
public Date dob;
@OneToOne
public Address address;
@OneToMany(targetEntity = Address.class)
public Set<Address> pastAddresses;
@ElementCollection
public List<String> notes;
@Access(PROPERTY)
public String getWhatever() { return "thing"; };
@ElementCollection
public Set<Email> emails;
@ManyToOne
public Person emergencyContact;
}
|
openjdk/jdk8 | 1,139 | langtools/test/tools/javac/diags/examples/NotDefPublicCantAccess/NotDefPublicCantAccess.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.not.def.public.cant.access
class X {
Object o = new p.C();
}
|
openjdk/jdk8 | 1,163 | langtools/test/tools/javac/diags/examples/IncorrectReceiverType.java | /*
* Copyright (c) 2012, 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.
*/
// key: compiler.err.incorrect.receiver.type
class IncorrectReceiverType {
void m(Object this) {}
}
|
openjdk/jdk8 | 1,168 | langtools/test/com/sun/javadoc/testAbstractMethod/pkg/A.java | /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg;
public interface A {
public void method1();
public default void defaultMethod() { }
}
|
openjdk/jdk8 | 1,168 | langtools/test/com/sun/javadoc/testAbstractMethod/pkg/B.java | /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg;
public abstract class B {
public abstract void method1();
public void method2() { }
}
|
openjdk/jdk8 | 1,168 | langtools/test/com/sun/javadoc/testInterface/pkg/Child.java | /*
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg;
public class Child<T> extends Parent<T> {
public int method() {
return 1;
}
}
|
openjdk/jdk8 | 1,168 | langtools/test/tools/javac/diags/examples/ProcessorNotFound.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.proc.processor.not.found
// options: -processor Unknown.Processor
class ProcessorNotFound { }
|
openjdk/jdk8 | 1,171 | langtools/test/tools/javac/diags/examples/CantResolve.java | /*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.cant.resolve
class CantResolve {
Object o = new Object() {
int i = f;
};
}
|
openjdk/jdk8 | 1,174 | langtools/test/tools/javac/ClassCycle/ClassCycle3b.java | /*
* Copyright (c) 2001, 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.
*/
/*
* Auxiliary source file for ClassCycle3a.
*/
class ClassCycle3b extends ClassCycle3a {
class T1 extends T2 {}
}
|
openjdk/jdk8 | 1,183 | langtools/test/tools/javac/binaryCompat/T3.java | /*
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class T3 extends T2 {
public static void main(String[] args) {
f();
if (!ok) throw new Error();
}
}
|
openjdk/jtreg | 1,191 | test/skip/jtreg/SkippedException.java | /*
* Copyright (c) 2018, 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 jtreg;
public class SkippedException extends RuntimeException {
public SkippedException(String s) {
super(s);
}
}
|
openjdk/jtreg | 1,202 | test/6527624/Bad.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 A-only
*/
public class Bad {
public static void main(String[] args) {
throw new Error("should not happen");
}
}
|
oracle/coherence | 1,128 | prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Tableswitch.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.dev.assembler;
import java.io.IOException;
import java.io.DataInput;
import java.io.DataOutput;
/**
* The TABLESWITCH op is a bounded jump table with a default jump.
* <p><code><pre>
* JASM op : TABLESWITCH (0xaa)
* JVM byte code(s): TABLESWITCH (0xaa)
* Details :
* </pre></code>
*
* @version 0.50, 06/17/98, assembler/dis-assembler
* @author Cameron Purdy
*/
public class Tableswitch extends OpSwitch implements Constants
{
// ----- constructors ---------------------------------------------------
/**
* Construct the op.
*
* @param label the default label to branch to if no cases match
*/
public Tableswitch(Label label)
{
super(TABLESWITCH, label);
}
// ----- data members ---------------------------------------------------
/**
* The name of this class.
*/
private static final String CLASS = "Tableswitch";
}
|
oracle/microservices-datadriven | 1,111 | Oracle_CQRS/src/main/java/org/example/oracle/cqrs/command/commands/CreateAccountCommand.java | package org.example.oracle.cqrs.command.commands;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.example.oracle.cqrs.common.enums.AccountStatus;
import org.example.oracle.cqrs.common.events.AccountCreatedEvent;
import org.example.oracle.cqrs.common.events.BaseEvent;
import java.util.UUID;
@Getter
@NoArgsConstructor
public class CreateAccountCommand extends BaseCommand<String> {
private double initialBalance;
private String currency;
private String accountId ;
public CreateAccountCommand(String id, double initialBalance, String currency, String accountId) {
super(id);
this.initialBalance = initialBalance;
this.currency = currency;
this.accountId = accountId;
}
@Override
public BaseEvent createEvent() {
System.out.println("Handling create: " + this);
if (this.getInitialBalance() < 0)
throw new IllegalArgumentException("Initial balance is negative");
return new AccountCreatedEvent(UUID.randomUUID().toString(), initialBalance, currency, AccountStatus.CREATED, accountId);
}
}
|
apache/commons-imaging | 1,150 | src/main/java/org/apache/commons/imaging/formats/pnm/PnmWriter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.imaging.formats.pnm;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.commons.imaging.ImagingException;
interface PnmWriter {
void writeImage(BufferedImage src, OutputStream os, PnmImagingParameters params) throws ImagingException, IOException;
}
|
apache/ctakes | 1,129 | ctakes-examples/src/main/java/org/apache/ctakes/examples/cc/ApacheConParagraphWriter.java | package org.apache.ctakes.examples.cc;
import org.apache.ctakes.core.cc.AbstractJCasFileWriter;
import org.apache.ctakes.typesystem.type.textspan.Paragraph;
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;
import java.io.*;
import java.util.Collection;
/**
*
*/
public class ApacheConParagraphWriter extends AbstractJCasFileWriter {
/**
* Writes some document metadata and discovered event information.
*/
@Override
public void writeFile( JCas jCas,
String outputDir,
String documentId,
String fileName ) throws IOException {
File file = new File( outputDir, fileName + "_Paragraphs.txt" );
try ( Writer writer = new BufferedWriter( new FileWriter( file ) ) ) {
Collection<Paragraph> paragraphs = JCasUtil.select( jCas, Paragraph.class );
for ( Paragraph paragraph : paragraphs ) {
writer.write( paragraph.getCoveredText() + "\n" );
writer.write( "-------------------------------------------------------------------" );
}
}
}
}
|
apache/curator | 1,141 | curator-x-async/src/main/java/org/apache/curator/x/async/api/ExistsOption.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.curator.x.async.api;
/**
* Options to use when checking for ZNode existence
*/
public enum ExistsOption {
/**
* see {@link CreateOption#createParentsIfNeeded}
*/
createParentsIfNeeded,
/**
* see {@link CreateOption#createParentsAsContainers}
*/
createParentsAsContainers
}
|
apache/cxf | 1,142 | systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/IRestService.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.systest.jaxrs;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.QueryParam;
@SuppressWarnings("all")
@Path("books")
public interface IRestService<T extends Book> {
@GET
T getById(@QueryParam("id") Long id);
@POST
Long postEntity(T instance);
}
|
apache/cxf | 1,144 | core/src/main/java/org/apache/cxf/common/xmlschema/XmlSchemaInvalidOperation.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common.xmlschema;
/**
* Very simple exception class used to detect internal errors.
*/
public class XmlSchemaInvalidOperation extends RuntimeException {
private static final long serialVersionUID = 7007258111909011558L;
public XmlSchemaInvalidOperation(String message) {
super(message);
}
}
|
apache/dolphinscheduler | 1,100 | dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/dto/resources/DeleteDataTransferResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.api.dto.resources;
import org.apache.dolphinscheduler.api.utils.Result;
import java.util.List;
import lombok.Data;
@Data
public class DeleteDataTransferResponse extends Result {
private List<String> successList;
private List<String> failedList;
}
|
apache/doris-manager | 1,100 | manager/general/src/main/java/org/apache/doris/stack/exception/AuthorizationException.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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;
/**
* @Description:User's cookie authentication failed exception
*/
public class AuthorizationException extends Exception {
public static final String MESSAGE = "用户认证失败,请重新登陆";
public AuthorizationException() {
super(MESSAGE);
}
}
|
apache/drill | 1,142 | exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/MagicString.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.drill.exec.store.dfs;
public class MagicString {
private long offset;
private byte[] bytes;
public MagicString(long offset, byte[] bytes) {
super();
this.offset = offset;
this.bytes = bytes;
}
public long getOffset() {
return offset;
}
public byte[] getBytes() {
return bytes;
}
}
|
apache/druid | 1,073 | extensions-core/datasketches/src/main/java/org/apache/druid/query/aggregation/datasketches/tuple/sql/ArrayOfDoublesSketchSetUnionOperatorConversion.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.query.aggregation.datasketches.tuple.sql;
public class ArrayOfDoublesSketchSetUnionOperatorConversion extends ArrayOfDoublesSketchSetBaseOperatorConversion
{
@Override
public String getSetOperationName()
{
return "UNION";
}
}
|
apache/druid | 1,129 | multi-stage-query/src/main/java/org/apache/druid/msq/indexing/error/MSQWarningReportPublisher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.msq.indexing.error;
/**
* Provides an interface for a worker to publish warnings to an external source.
* For example, the worker uses this interface to send warnings to the controller.
*/
public interface MSQWarningReportPublisher
{
void publishException(int stageNumber, Throwable e);
}
|
apache/druid | 1,132 | sql/src/main/java/org/apache/druid/sql/calcite/aggregation/builtin/SumZeroSqlAggregator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.sql.calcite.aggregation.builtin;
import org.apache.calcite.sql.SqlAggFunction;
import org.apache.calcite.sql.fun.SqlStdOperatorTable;
public class SumZeroSqlAggregator extends SumSqlAggregator
{
@Override
public SqlAggFunction calciteFunction()
{
return SqlStdOperatorTable.SUM0;
}
}
|
apache/druid | 1,150 | server/src/main/java/org/apache/druid/guice/ServerTypeConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.guice;
import org.apache.druid.server.coordination.ServerType;
/**
*/
public class ServerTypeConfig
{
private final ServerType serverType;
public ServerTypeConfig(
ServerType serverType
)
{
this.serverType = serverType;
}
public ServerType getServerType()
{
return serverType;
}
}
|
apache/dubbo-spi-extensions | 1,112 | dubbo-cross-thread-extensions/src/main/java/org/apache/dubbo/crossthread/toolkit/DubboCrossThread.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.crossthread.toolkit;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface DubboCrossThread {
}
|
apache/dubbo | 1,096 | dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/injvm/MultipleRegistryCenterInjvmService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.config.integration.multiple.injvm;
/**
* This interface is used to check if the exported injvm protocol works well or not.
*/
public interface MultipleRegistryCenterInjvmService {
/**
* The simple method for testing.
*/
String hello(String name);
}
|
apache/empire-db | 1,116 | empire-db-examples/empire-db-example-vue/src/main/java/org/apache/empire/rest/app/TextResolver.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.empire.rest.app;
import java.util.Locale;
public interface TextResolver
{
public static String MSG_KEY_INDICATOR = "!";
Locale getLocale();
String resolveKey(String key);
String resolveText(String text);
String getExceptionMessage(Exception e);
}
|
apache/eventmesh | 1,109 | eventmesh-admin-server/src/main/java/org/apache/eventmesh/admin/server/web/db/service/EventMeshJobInfoService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.admin.server.web.db.service;
import org.apache.eventmesh.admin.server.web.db.entity.EventMeshJobInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* event_mesh_job_info
*/
public interface EventMeshJobInfoService extends IService<EventMeshJobInfo> {
}
|
apache/eventmesh | 1,143 | eventmesh-spi/src/main/java/org/apache/eventmesh/spi/ExtensionException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.spi;
public class ExtensionException extends RuntimeException {
public ExtensionException(Exception e) {
super(e);
}
public ExtensionException(String message) {
super(message);
}
public ExtensionException(String message, Exception e) {
super(message, e);
}
}
|
apache/fineract | 1,085 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/transaction/LoanTransactionGoodwillCreditPostEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.test.messaging.event.loan.transaction;
public class LoanTransactionGoodwillCreditPostEvent extends AbstractLoanTransactionEvent {
@Override
public String getEventName() {
return "LoanTransactionGoodwillCreditPostBusinessEvent";
}
}
|
apache/fineract | 1,085 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/transaction/LoanTransactionInterestRefundPostEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.test.messaging.event.loan.transaction;
public class LoanTransactionInterestRefundPostEvent extends AbstractLoanTransactionEvent {
@Override
public String getEventName() {
return "LoanTransactionInterestRefundPostBusinessEvent";
}
}
|
apache/fineract | 1,116 | fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/guarantor/data/GuarantorDTO.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.portfolio.loanaccount.guarantor.data;
import java.math.BigDecimal;
import org.apache.fineract.portfolio.loanaccount.domain.Loan;
public class GuarantorDTO {
@SuppressWarnings("unused")
private BigDecimal paidAmount;
@SuppressWarnings("unused")
private Loan loan;
}
|
apache/fineract | 1,122 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/data/LoanTermFrequencyType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.test.data;
public enum LoanTermFrequencyType {
DAYS(0), //
WEEKS(1), //
MONTHS(2), //
YEARS(4); //
public final Integer value;
LoanTermFrequencyType(Integer value) {
this.value = value;
}
public Integer getValue() {
return value;
}
}
|
apache/flink-statefun | 1,082 | statefun-flink/statefun-flink-datastream/src/main/java/org/apache/flink/statefun/flink/datastream/SerializableStatefulFunctionProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.statefun.flink.datastream;
import java.io.Serializable;
import org.apache.flink.statefun.sdk.StatefulFunctionProvider;
/** {@inheritDoc} */
public interface SerializableStatefulFunctionProvider
extends StatefulFunctionProvider, Serializable {}
|
apache/flink-training | 1,133 | common/src/test/java/org/apache/flink/training/exercises/testing/ExecutablePipeline.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.training.exercises.testing;
import org.apache.flink.api.common.JobExecutionResult;
import org.apache.flink.streaming.api.functions.source.SourceFunction;
public interface ExecutablePipeline<IN, OUT> {
JobExecutionResult execute(SourceFunction<IN> source, TestSink<OUT> sink) throws Exception;
}
|
apache/fluss | 1,142 | fluss-client/src/main/java/org/apache/fluss/client/token/SecurityTokenProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.fluss.client.token;
import org.apache.fluss.fs.token.ObtainedSecurityToken;
/** Security token provider API. */
public interface SecurityTokenProvider {
/**
* Obtain security token.
*
* @return the obtained security token.
*/
ObtainedSecurityToken obtainSecurityToken() throws Exception;
}
|
apache/geaflow | 1,098 | geaflow/geaflow-dsl/geaflow-dsl-catalog/src/main/java/org/apache/geaflow/dsl/catalog/console/GeaFlowEdgeDirection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.dsl.catalog.console;
/**
* The edge direction defined on the console platform.
*/
public enum GeaFlowEdgeDirection {
/**
* Out direction.
*/
OUT,
/**
* In direction.
*/
IN,
/**
* Both direction.
*/
BOTH
}
|
apache/geaflow | 1,099 | geaflow-console/app/core/model/src/main/java/org/apache/geaflow/console/core/model/plugin/config/RocksdbPluginConfigClass.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.plugin.config;
import org.apache.geaflow.console.common.util.type.GeaflowPluginType;
public class RocksdbPluginConfigClass extends PluginConfigClass {
public RocksdbPluginConfigClass() {
super(GeaflowPluginType.ROCKSDB);
}
}
|
apache/geaflow | 1,106 | geaflow/geaflow-metrics/geaflow-metrics-common/src/main/java/org/apache/geaflow/metrics/common/api/Meter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.metrics.common.api;
public interface Meter {
void mark();
void mark(long n);
double getFifteenMinuteRate();
double getFiveMinuteRate();
double getMeanRate();
double getOneMinuteRate();
long getCount();
long getCountAndReset();
}
|
apache/geaflow | 1,108 | geaflow-console/app/core/model/src/main/java/org/apache/geaflow/console/core/model/runtime/GeaflowError.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.runtime;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class GeaflowError {
private String timeStamp;
private String hostname;
private Integer processId;
private String severity;
private String message;
}
|
apache/geaflow | 1,113 | geaflow/geaflow-dsl/geaflow-dsl-plan/src/main/java/org/apache/geaflow/dsl/validator/scope/GQLWithBodyScope.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.dsl.validator.scope;
import org.apache.calcite.sql.SqlNode;
import org.apache.calcite.sql.validate.SqlValidatorScope;
public class GQLWithBodyScope extends GQLScope {
public GQLWithBodyScope(SqlValidatorScope parent, SqlNode node) {
super(parent, node);
}
}
|
apache/geode | 1,148 | geode-core/src/main/java/org/apache/geode/cache/configuration/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
@XmlSchema(namespace = "http://geode.apache.org/schema/cache",
xmlns = {@XmlNs(prefix = "", namespaceURI = "http://geode.apache.org/schema/cache")},
elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.apache.geode.cache.configuration;
import javax.xml.bind.annotation.XmlNs;
import javax.xml.bind.annotation.XmlSchema;
|
apache/gobblin | 1,116 | gobblin-data-management/src/main/java/org/apache/gobblin/data/management/copy/predicates/AlwaysTrue.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.data.management.copy.predicates;
import com.google.common.base.Predicate;
import javax.annotation.Nullable;
/**
* Predicate that is always true.
*/
public class AlwaysTrue<T> implements Predicate<T> {
@Override
public boolean apply(@Nullable T input) {
return true;
}
}
|
apache/gobblin | 1,137 | gobblin-api/src/main/java/org/apache/gobblin/broker/iface/NotConfiguredException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.broker.iface;
/**
* Exception thrown by a factory if there is not enough provided configuration to create the
* shared object.
*/
public class NotConfiguredException extends Exception {
public NotConfiguredException() {
}
public NotConfiguredException(String message) {
super(message);
}
}
|
apache/gora | 1,131 | gora-rethinkdb/src/test/java/org/apache/gora/rethinkdb/store/RethinkDBStartupWaitStrategy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gora.rethinkdb.store;
import org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy;
public class RethinkDBStartupWaitStrategy extends LogMessageWaitStrategy {
private static final String regEx = "Server ready,.*";
public RethinkDBStartupWaitStrategy() {
withRegEx(regEx);
}
} |
apache/groovy | 1,182 | src/main/java/groovy/lang/Tuple0.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package groovy.lang;
/**
* Represents a list of 0 typed Object.
*
* @since 3.0.0
*/
public final class Tuple0 extends Tuple {
private static final long serialVersionUID = -3791115121904072346L;
public static final Tuple0 INSTANCE = new Tuple0();
private Tuple0() {}
@Override
public Tuple0 clone() {
return INSTANCE;
}
}
|
apache/guacamole-client | 1,071 | extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionRecordMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.guacamole.auth.jdbc.connection;
import org.apache.guacamole.auth.jdbc.base.ActivityRecordMapper;
/**
* Mapper for connection record objects.
*/
public interface ConnectionRecordMapper extends ActivityRecordMapper<ConnectionRecordModel> {}
|
apache/hadoop | 1,068 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeManagerEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.yarn.server.nodemanager;
import org.apache.hadoop.yarn.event.AbstractEvent;
public class NodeManagerEvent extends
AbstractEvent<NodeManagerEventType>{
public NodeManagerEvent(NodeManagerEventType type) {
super(type);
}
}
|
apache/hadoop | 1,109 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/ContainerType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.yarn.server.api;
/**
* Container property encoding allocation and execution semantics.
*
* <p>
* The container types are the following:
* <ul>
* <li>{@link #APPLICATION_MASTER}
* <li>{@link #TASK}
* </ul>
*/
public enum ContainerType {
APPLICATION_MASTER, TASK
} |
apache/hadoop | 1,133 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/audit/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Public classes for adding information to any auditing information
* picked up by filesystem clients.
*
*/
@InterfaceAudience.Public
@InterfaceStability.Unstable
package org.apache.hadoop.fs.audit;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/harmony | 1,174 | drlvm/vm/tests/smoke/outofmemory/Throw.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Salikh Zakirov
*/
package outofmemory;
/**
* Out of memory tests have no dependecy on class library.
*/
public class Throw {
public static void main (String[] args) {
try {
throw new OutOfMemoryError("test error");
} catch (OutOfMemoryError oome) {
System.out.println("PASS");
}
}
}
|
apache/hive | 1,150 | llap-server/src/java/org/apache/hadoop/hive/llap/cache/LowLevelCacheCounters.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hive.llap.cache;
public interface LowLevelCacheCounters {
void recordCacheHit(long bytesHit);
void recordCacheMiss(long bytesMissed);
void recordAllocBytes(long bytesWasted, long bytesAllocated);
void recordHdfsTime(long timeNs);
void recordThreadTimes(long cpuNs, long userNs);
long startTimeCounter();
} |
apache/iceberg | 1,104 | flink/v2.0/flink/src/test/java/org/apache/iceberg/flink/sink/dynamic/TestDynamicRecordInternalSerializerWriteSchemaId.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.flink.sink.dynamic;
/** Test writing DynamicRecord with only the schema id. */
class TestDynamicRecordInternalSerializerWriteSchemaId
extends DynamicRecordInternalSerializerTestBase {
TestDynamicRecordInternalSerializerWriteSchemaId() {
super(false);
}
}
|
apache/iceberg | 1,104 | flink/v2.1/flink/src/test/java/org/apache/iceberg/flink/sink/dynamic/TestDynamicRecordInternalSerializerWriteSchemaId.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.flink.sink.dynamic;
/** Test writing DynamicRecord with only the schema id. */
class TestDynamicRecordInternalSerializerWriteSchemaId
extends DynamicRecordInternalSerializerTestBase {
TestDynamicRecordInternalSerializerWriteSchemaId() {
super(false);
}
}
|
apache/iceberg | 1,127 | flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/source/assigner/SplitAssignerType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.flink.source.assigner;
import org.apache.flink.annotation.Internal;
@Internal
public enum SplitAssignerType {
SIMPLE {
@Override
public SplitAssignerFactory factory() {
return new SimpleSplitAssignerFactory();
}
};
public abstract SplitAssignerFactory factory();
}
|
apache/iceberg | 1,127 | flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/source/assigner/SplitAssignerType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.flink.source.assigner;
import org.apache.flink.annotation.Internal;
@Internal
public enum SplitAssignerType {
SIMPLE {
@Override
public SplitAssignerFactory factory() {
return new SimpleSplitAssignerFactory();
}
};
public abstract SplitAssignerFactory factory();
}
|
apache/ignite-3 | 1,106 | modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/persistence/store/PageAllocationListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.persistence.store;
/**
* New page allocation listener.
*/
public interface PageAllocationListener {
/**
* Callback when a new page is allocated.
*
* @param pageIdx Index of the new page.
*/
void onPageAllocated(int pageIdx);
}
|
apache/ignite-extensions | 1,124 | modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/trainers/SingleLabelDatasetTrainer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.ml.trainers;
import org.apache.ignite.ml.IgniteModel;
/**
* Interface for trainers that trains on dataset with singe label per object.
*
* @param <M> Type of a produced model.
*/
public abstract class SingleLabelDatasetTrainer<M extends IgniteModel> extends DatasetTrainer<M, Double> {
}
|
apache/ignite | 1,086 | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgniteWalFlushBackgroundWithMmapBufferSelfTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.processors.cache.persistence.db.wal;
/**
*
*/
public class IgniteWalFlushBackgroundWithMmapBufferSelfTest extends IgniteWalFlushBackgroundSelfTest {
/** {@inheritDoc} */
@Override protected boolean mmap() {
return true;
}
}
|
apache/ignite | 1,116 | modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2RetryException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.opt;
import org.apache.ignite.IgniteException;
/**
* Internal exception.
*/
public class GridH2RetryException extends IgniteException {
/**
* @param msg Message.
*/
public GridH2RetryException(String msg) {
super(msg);
}
}
|
apache/ignite | 1,129 | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This package contain cache with persistence implementation. <br>
* See also <a href="
* https://github.com/apache/ignite/tree/master/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence">
* GitHub Package Readme</a>
*/
package org.apache.ignite.internal.processors.cache.persistence;
|
apache/impala | 1,153 | fe/src/main/java/org/apache/impala/catalog/PartitionNotFoundException.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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;
/**
* Thrown when a partition cannot be found in the catalog.
*/
public class PartitionNotFoundException extends CatalogException {
// Dummy serial UID to avoid Eclipse warnings
private static final long serialVersionUID = -2203080667446640542L;
public PartitionNotFoundException(String s) { super(s); }
} |
apache/incubator-datalab | 1,122 | services/self-service/src/main/java/com/epam/datalab/backendapi/annotation/ResourceName.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.epam.datalab.backendapi.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface ResourceName {
}
|
apache/incubator-heron | 1,138 | heron/common/src/java/org/apache/heron/common/basics/DryRunFormatType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.basics;
/***
* This enum defines commands dry-run format type
*/
public enum DryRunFormatType {
RAW,
TABLE,
COLORED_TABLE,
JSON;
public static DryRunFormatType getDryRunFormatType(String dryRunFormatType) {
return DryRunFormatType.valueOf(dryRunFormatType.toUpperCase());
}
}
|
apache/incubator-hugegraph-computer | 1,102 | computer/computer-core/src/main/java/org/apache/hugegraph/computer/core/store/entry/KvEntryReader.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.apache.hugegraph.computer.core.store.entry;
import java.io.IOException;
import org.apache.hugegraph.computer.core.io.Readable;
public interface KvEntryReader {
void readSubKv(Readable subKey, Readable subValue) throws IOException;
boolean hasRemaining() throws IOException;
}
|
apache/incubator-kie-drools | 1,128 | drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableConstructor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.beliefs.bayes;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target(CONSTRUCTOR)
@Retention(RUNTIME)
public @interface BayesVariableConstructor {
}
|
apache/incubator-kie-drools | 1,128 | kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLStep.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.pmml.api.models;
import java.util.Map;
/**
* Interface representing a meaningful <b>step</b> of PMML execution.
* The actual meaning will be implemented on a per-model basis
*/
public interface PMMLStep {
void addInfo(String infoName, Object infoValue);
Map<String, Object> getInfo();
}
|
apache/incubator-kie-drools | 1,134 | kie-api/src/main/java/org/kie/api/prototype/PrototypeFactInstance.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.api.prototype;
import java.util.Map;
public interface PrototypeFactInstance {
Object get(String name);
void put(String name, Object value);
boolean has(String name);
Map<String, Object> asMap();
Prototype getPrototype();
default boolean isEvent() {
return false;
}
}
|
apache/incubator-kie-kogito-apps | 1,094 | persistence-commons/persistence-commons-redis/src/main/java/org/kie/kogito/persistence/redis/Constants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.kogito.persistence.redis;
public class Constants {
public static final String REDIS_STORAGE = "redis";
public static final String INDEX_NAME_FIELD = "indexName";
public static final String RAW_OBJECT_FIELD = "rawObject";
private Constants() {
}
}
|
apache/incubator-kie-kogito-runtimes | 1,088 | kogito-codegen-modules/kogito-codegen-processes/src/test/java/org/kie/kogito/codegen/data/ListWithoutType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.codegen.data;
import java.util.List;
public class ListWithoutType {
private List attribute;
public List getAttribute() {
return attribute;
}
public void setAttribute(List attribute) {
this.attribute = attribute;
}
}
|
apache/incubator-seata | 1,127 | config/seata-config-core/src/main/java/io/seata/config/ConfigurationChangeType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.seata.config;
/**
* The enum Configuration change type.
*/
@Deprecated
public enum ConfigurationChangeType {
/**
* Add configuration change type.
*/
ADD,
/**
* Modify configuration change type.
*/
MODIFY,
/**
* Delete configuration change type.
*/
DELETE
}
|
apache/incubator-tez | 1,132 | tez-dag/src/main/java/org/apache/tez/dag/app/dag/TaskAttemptStateInternal.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.dag;
import org.apache.hadoop.classification.InterfaceAudience.Private;
/**
* TaskAttemptImpl internal state machine states.
*
*/
@Private
public enum TaskAttemptStateInternal {
NEW,
START_WAIT,
RUNNING,
OUTPUT_CONSUMABLE,
KILL_IN_PROGRESS,
FAIL_IN_PROGRESS,
KILLED,
FAILED,
SUCCEEDED
}
|
apache/inlong | 1,091 | inlong-sort-standalone/sort-standalone-common/src/main/java/org/apache/inlong/sort/standalone/config/pojo/CacheClusterConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.sort.standalone.config.pojo;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
/**
*
* CacheClusterConfig
*/
@Data
public class CacheClusterConfig {
private String clusterName;
private Map<String, String> params = new HashMap<>();
}
|
apache/inlong | 1,111 | inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/heartbeat/HeartbeatReportRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.pojo.heartbeat;
import org.apache.inlong.common.heartbeat.HeartbeatMsg;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* Heartbeat report request
*/
@Data
@ApiModel("Request of heartbeat report")
public class HeartbeatReportRequest extends HeartbeatMsg {
}
|
apache/inlong | 1,115 | inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/operator/ExpressionOperator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.sdk.transform.process.operator;
import org.apache.inlong.sdk.transform.decode.SourceData;
import org.apache.inlong.sdk.transform.process.Context;
/**
* ExpressionOperator
*/
public interface ExpressionOperator {
boolean check(SourceData sourceData, int rowIndex, Context context);
}
|
apache/inlong | 1,122 | inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/airflow/util/DAGUtil.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.schedule.airflow.util;
import static org.apache.inlong.manager.schedule.airflow.AirFlowAPIConstant.INLONG_OFFLINE_DAG_TASK_PREFIX;
public class DAGUtil {
public static String buildDAGIdByGroupId(String groupId) {
return INLONG_OFFLINE_DAG_TASK_PREFIX.concat(groupId);
}
}
|
apache/iotdb-extras | 1,110 | examples/mybatisplus-generator/src/main/java/org/apache/iotdb/controller/Table1Controller.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 前端控制器
*
* @author IoTDB
* @since 2025-06-24
*/
@RestController
@RequestMapping("/table1")
public class Table1Controller {}
|
apache/iotdb-extras | 1,110 | examples/mybatisplus-generator/src/main/java/org/apache/iotdb/controller/Table2Controller.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 前端控制器
*
* @author IoTDB
* @since 2025-06-24
*/
@RestController
@RequestMapping("/table2")
public class Table2Controller {}
|
apache/iotdb-web-workbench | 1,135 | backend/src/main/java/org/apache/iotdb/admin/model/dto/SearchDTO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.admin.model.dto;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
@Data
public class SearchDTO implements Serializable {
private List<String> sqls;
@NotNull(message = "Timestamp cannot be null")
private Long timestamp;
}
|
apache/iotdb | 1,114 | iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/trigger/exception/TriggerManagementException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.commons.trigger.exception;
public class TriggerManagementException extends RuntimeException {
public TriggerManagementException(String message) {
super(message);
}
public TriggerManagementException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/jclouds | 1,127 | providers/aws-s3/src/test/java/org/jclouds/aws/s3/blobstore/integration/AWSS3BlobLiveTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.aws.s3.blobstore.integration;
import org.jclouds.s3.blobstore.integration.S3BlobLiveTest;
import org.testng.annotations.Test;
@Test(groups = "live", testName = "AWSS3BlobLiveTest")
public class AWSS3BlobLiveTest extends S3BlobLiveTest {
public AWSS3BlobLiveTest() {
provider = "aws-s3";
}
}
|
apache/jena | 1,122 | jena-db/jena-dboe-base/src/test/java/org/apache/jena/dboe/base/file/TestBinaryDataFileWriteBufferedMem.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.dboe.base.file;
public class TestBinaryDataFileWriteBufferedMem extends AbstractTestBinaryDataFile {
@Override
protected BinaryDataFile createBinaryDataFile() {
BinaryDataFileMem file = new BinaryDataFileMem();
return new BinaryDataFileWriteBuffered(file);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.