repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/tomee | 1,076 | examples/polling-parent/polling-client/src/main/java/jug/client/util/ClientNameHolder.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jug.client.util;
public class ClientNameHolder {
private static String current = null;
public static String getCurrent() {
return current;
}
public static void setCurrent(String current) {
ClientNameHolder.current = current;
}
}
|
apache/wicket | 1,068 | wicket-core-tests/src/test/java/org/apache/wicket/markup/MarkupInheritanceBase_8.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.markup;
import org.apache.wicket.markup.html.WebPage;
/**
*/
public class MarkupInheritanceBase_8 extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*
*/
MarkupInheritanceBase_8()
{
}
}
|
apache/wicket | 1,124 | wicket-guice/src/main/java/module-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.
*/
module org.apache.wicket.guice {
requires static jakarta.servlet;
requires org.apache.wicket.util;
requires org.apache.wicket.request;
requires org.apache.wicket.core;
requires org.apache.wicket.ioc;
requires jakarta.inject;
requires com.google.guice;
exports org.apache.wicket.guice;
}
|
apache/xmlbeans | 1,108 | src/main/java/org/apache/xmlbeans/impl/soap/Text.java | /* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xmlbeans.impl.soap;
/**
* A representation of a node whose value is text. A {@code
* Text} object may represent text that is content or text
* that is a comment.
*/
public interface Text extends Node, org.w3c.dom.Text {
/**
* Retrieves whether this {@code Text} object
* represents a comment.
* @return {@code true} if this {@code Text} object is
* a comment; {@code false} otherwise
*/
boolean isComment();
}
|
apache/xmlgraphics-batik | 1,084 | batik-ext/src/main/java/org/apache/batik/w3c/dom/ElementTraversal.java | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.batik.w3c.dom;
import org.w3c.dom.Element;
public interface ElementTraversal {
Element getFirstElementChild();
Element getLastElementChild();
Element getNextElementSibling();
Element getPreviousElementSibling();
int getChildElementCount();
}
|
apache/zeppelin | 1,071 | zeppelin-jupyter/src/main/java/org/apache/zeppelin/jupyter/nbformat/CellMetadata.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.zeppelin.jupyter.nbformat;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
*
*/
public class CellMetadata {
@SerializedName("name")
private String name;
@SerializedName("tags")
private List<String> tags;
}
|
apache/zookeeper | 1,080 | zookeeper-server/src/main/java/org/apache/zookeeper/server/util/KerberosUtil.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.zookeeper.server.util;
import javax.security.auth.kerberos.KerberosPrincipal;
public class KerberosUtil {
public static String getDefaultRealm() throws IllegalArgumentException {
return new KerberosPrincipal("tmp", 1).getRealm();
}
}
|
google/android-arscblamer | 1,076 | java/com/google/devrel/gmscore/tools/apk/arsc/XmlNamespaceStartChunk.java | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.devrel.gmscore.tools.apk.arsc;
import java.nio.ByteBuffer;
import javax.annotation.Nullable;
/** Represents the starting tag of a namespace in an XML document. */
public final class XmlNamespaceStartChunk extends XmlNamespaceChunk {
protected XmlNamespaceStartChunk(ByteBuffer buffer, @Nullable Chunk parent) {
super(buffer, parent);
}
@Override
protected Type getType() {
return Chunk.Type.XML_START_NAMESPACE;
}
}
|
google/bindiff | 1,058 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/JRegisterView/RegisterInformation.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.JRegisterView;
public class RegisterInformation {
private final String registerName;
private final int registerSize;
public RegisterInformation(final String registerName, final int registerSize) {
this.registerName = registerName;
this.registerSize = registerSize;
}
public String getRegisterName() {
return registerName;
}
public int getRegisterSize() {
return registerSize;
}
}
|
google/binnavi | 1,052 | src/main/java/com/google/security/zynamics/binnavi/debug/connection/packets/parsers/MessageParserException.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.binnavi.debug.connection.packets.parsers;
/**
* Exception class that is used whenever parsing a message that was received from the debug client
* failed.
*/
public final class MessageParserException extends Exception {
/**
* Creates a new message parser exception.
*
* @param message Message that describes the exception.
*/
public MessageParserException(final String message) {
super(message);
}
}
|
google/binnavi | 1,057 | src/main/java/com/google/security/zynamics/reil/algorithms/mono/valuetracking/transformers/JccTransformer.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.reil.algorithms.mono.valuetracking.transformers;
import com.google.security.zynamics.reil.algorithms.mono.valuetracking.ValueTrackerElement;
/**
* During range tracking, this transformer transforms the global state whenever a JCC instruction is
* processed.
*/
public final class JccTransformer {
public static ValueTrackerElement transform(final ValueTrackerElement incomingState) {
return incomingState.clone();
}
}
|
google/cel-java | 1,082 | validator/src/main/java/dev/cel/validator/validators/DurationLiteralValidator.java | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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 dev.cel.validator.validators;
import com.google.protobuf.Duration;
/** DurationLiteralValidator ensures that duration literal arguments are valid. */
public final class DurationLiteralValidator extends LiteralValidator {
public static final DurationLiteralValidator INSTANCE =
new DurationLiteralValidator("duration", Duration.class);
private DurationLiteralValidator(String functionName, Class<?> expectedResultType) {
super(functionName, expectedResultType);
}
}
|
google/guava | 1,086 | android/guava/src/com/google/common/util/concurrent/DirectExecutor.java | /*
* Copyright (C) 2007 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.common.util.concurrent;
import com.google.common.annotations.GwtCompatible;
import java.util.concurrent.Executor;
/**
* An {@link Executor} that runs each task in the thread that invokes {@link Executor#execute
* execute}.
*/
@GwtCompatible
enum DirectExecutor implements Executor {
INSTANCE;
@Override
public void execute(Runnable command) {
command.run();
}
@Override
public String toString() {
return "MoreExecutors.directExecutor()";
}
}
|
google/j2cl | 1,063 | transpiler/javatests/com/google/j2cl/integration/java/allsimplebridges/Tester516.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package allsimplebridges;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
public class Tester516 {
static interface I1 {
String get(String value);
}
static class C1 implements I1 {
C1() {}
@Override
public String get(String value) {
return "C1.get";
}
}
public static void test() {
C1 s = new C1();
assertTrue(s.get("").equals("C1.get"));
assertTrue(((I1) s).get("").equals("C1.get"));
}
}
|
google/nomulus | 1,069 | core/src/main/java/google/registry/flows/exceptions/ResourceHasClientUpdateProhibitedException.java | // Copyright 2017 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package google.registry.flows.exceptions;
import google.registry.flows.EppException.StatusProhibitsOperationException;
/** This resource has clientUpdateProhibited on it, and the update does not clear that status. */
public class ResourceHasClientUpdateProhibitedException extends StatusProhibitsOperationException {
public ResourceHasClientUpdateProhibitedException() {
super("Operation disallowed by status: clientUpdateProhibited");
}
}
|
google/santa-tracker-android | 1,065 | doodles-lib/src/main/java/com/google/android/apps/santatracker/doodles/Config.java | /*
* Copyright 2019. Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.apps.santatracker.doodles;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
/** Get Firebase Remote config values easily. */
public class Config {
/** Density of swimming obstacles */
public final double SWIMMING_OBSTACLE_DENSITY;
public Config() {
FirebaseRemoteConfig config = FirebaseRemoteConfig.getInstance();
SWIMMING_OBSTACLE_DENSITY = config.getDouble("SwimmingObstacleDensity");
}
}
|
googleads/google-ads-java | 1,041 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/UserInterestAttributeMetadataOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/audience_insights_attribute.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface UserInterestAttributeMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.UserInterestAttributeMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* English language text description of the user interest category (200
* characters max).
* </pre>
*
* <code>string user_interest_description = 1;</code>
* @return The userInterestDescription.
*/
java.lang.String getUserInterestDescription();
/**
* <pre>
* English language text description of the user interest category (200
* characters max).
* </pre>
*
* <code>string user_interest_description = 1;</code>
* @return The bytes for userInterestDescription.
*/
com.google.protobuf.ByteString
getUserInterestDescriptionBytes();
}
|
googleads/google-ads-java | 1,041 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/UserInterestAttributeMetadataOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/audience_insights_attribute.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface UserInterestAttributeMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.UserInterestAttributeMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* English language text description of the user interest category (200
* characters max).
* </pre>
*
* <code>string user_interest_description = 1;</code>
* @return The userInterestDescription.
*/
java.lang.String getUserInterestDescription();
/**
* <pre>
* English language text description of the user interest category (200
* characters max).
* </pre>
*
* <code>string user_interest_description = 1;</code>
* @return The bytes for userInterestDescription.
*/
com.google.protobuf.ByteString
getUserInterestDescriptionBytes();
}
|
googleads/google-ads-java | 1,041 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/UserInterestAttributeMetadataOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/audience_insights_attribute.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface UserInterestAttributeMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.UserInterestAttributeMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* English language text description of the user interest category (200
* characters max).
* </pre>
*
* <code>string user_interest_description = 1;</code>
* @return The userInterestDescription.
*/
java.lang.String getUserInterestDescription();
/**
* <pre>
* English language text description of the user interest category (200
* characters max).
* </pre>
*
* <code>string user_interest_description = 1;</code>
* @return The bytes for userInterestDescription.
*/
com.google.protobuf.ByteString
getUserInterestDescriptionBytes();
}
|
googleapis/api-compiler | 1,079 | src/main/java/com/google/api/tools/framework/model/stages/Normalized.java | /*
* Copyright (C) 2016 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.api.tools.framework.model.stages;
import com.google.inject.Key;
/**
* A marker class representing the stage that config normalization has been performed
* on the service.
*
* <p>See the usage of {@code Requires(Normalized.class)} in the model for information that is
* dependent on this stage.
*/
public class Normalized {
/**
* The key representing the normalized stage.
*/
public static final Key<Normalized> KEY = Key.get(Normalized.class);
}
|
googleapis/gapic-generator | 1,071 | src/main/java/com/google/api/codegen/viewmodel/BatchingPartitionKeyView.java | /* Copyright 2016 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.api.codegen.viewmodel;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class BatchingPartitionKeyView {
public abstract String fieldGetFunction();
public static Builder newBuilder() {
return new AutoValue_BatchingPartitionKeyView.Builder();
}
@AutoValue.Builder
public abstract static class Builder {
public abstract Builder fieldGetFunction(String val);
public abstract BatchingPartitionKeyView build();
}
}
|
googlearchive/gwt-google-apis | 1,078 | search/search/src/com/google/gwt/search/jsio/client/Binding.java | /*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.search.jsio.client;
import com.google.gwt.search.jsio.client.impl.MetaDataName;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Indicates that a flyweight-style method should be used to bind exported
* functions from a type into a JavaScriptObject.
*/
@Documented
@MetaDataName("gwt.binding")
@Target(ElementType.METHOD)
public @interface Binding {
String value() default "";
}
|
googlesamples/io2015-codelabs | 1,055 | search-samples/recipe-app-start/app/src/main/java/com/recipe_app/client/HomeActivity.java | /*
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.recipe_app.client;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.recipe_app.R;
/**
* This Activity class defines the home screen for the recipe app.
*/
public class HomeActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
}
}
|
hibernate/hibernate-ogm | 1,039 | mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/utils/DocumentUtil.java | /*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.datastore.mongodb.utils;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.bson.Document;
/**
* @author Sergey Chernolyas <sergey.chernolyas@gmail.com>
*/
public class DocumentUtil {
public static Map<String, Object> toMap(Document document) {
Map<String, Object> result = new LinkedHashMap<>();
for ( Map.Entry<String, Object> entry : document.entrySet() ) {
String key = entry.getKey();
Object value = entry.getValue();
result.put( key, value );
}
return result;
}
@SuppressWarnings("unchecked")
public static List<Document> fromJsonArray(String sourceJson) {
Document jsonDocument = Document.parse( "{'json': " + sourceJson + "}" );
return (List<Document>) jsonDocument.get( "json" );
}
}
|
hibernate/hibernate-orm | 1,038 | hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/IdentifierSourceAggregatedComposite.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.boot.model.source.spi;
import java.util.List;
/**
* Additional contract describing the source of an identifier mapping whose
* {@linkplain #getNature() nature} is
* {@link org.hibernate.id.EntityIdentifierNature#AGGREGATED_COMPOSITE}.
* <p>
* This equates to an identifier which is made up of multiple values which are
* defined as part of a component/embedded; i.e. {@link jakarta.persistence.EmbeddedId}
*
* @author Strong Liu
* @author Steve Ebersole
*/
public interface IdentifierSourceAggregatedComposite extends CompositeIdentifierSource {
/**
* Obtain the source descriptor for the identifier attribute.
*
* @return The identifier attribute source.
*/
SingularAttributeSourceEmbedded getIdentifierAttributeSource();
/**
* Obtain the mapping of attributes annotated with {@link jakarta.persistence.MapsId}.
*
* @return The MapsId sources.
*/
List<MapsIdSource> getMapsIdSources();
}
|
hibernate/hibernate-orm | 1,076 | hibernate-core/src/main/java/org/hibernate/engine/spi/Managed.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.engine.spi;
/**
* Contract for classes (specifically, entities and components/embeddables) that are "managed". Developers can
* choose to either have their classes manually implement these interfaces or Hibernate can enhance their classes
* to implement these interfaces via built-time or run-time enhancement.
* <p>
* The term managed here is used to describe both:<ul>
* <li>
* the fact that they are known to the persistence provider (this is defined by the interface itself)
* </li>
* <li>
* its association with Session/EntityManager (this is defined by the state exposed through the interface)
* </li>
* </ul>
*
* @author Steve Ebersole
*/
public interface Managed extends PrimeAmongSecondarySupertypes {
/**
* Special internal contract to optimize type checking
* @see PrimeAmongSecondarySupertypes
* @return this same instance
*/
@Override
default Managed asManaged() {
return this;
}
}
|
openjdk/asmtools | 1,117 | test/java/org/openjdk/asmtools/jasm/package-info.java | /*
* Copyright (c) 2023, 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.
*/
/**
* jasm oriented tests
*/
package org.openjdk.asmtools.jasm;
|
openjdk/jdk8 | 1,098 | langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/ParamTest2.java | /*
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg2;
public class ParamTest2<E> {
}
|
openjdk/jdk8 | 1,100 | langtools/test/tools/javac/diags/examples/SunApiPlural/SunApiFilename.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.
*/
class SunApiFilename {
sun.misc.Unsafe x;
}
|
openjdk/jdk8 | 1,115 | jdk/test/java/lang/reflect/Proxy/returnTypes/GetObject.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public interface GetObject {
Object get(double[][][] x);
}
|
openjdk/jdk8 | 1,115 | langtools/test/com/sun/javadoc/testNavigation/pkg/C.java | /*
* Copyright (c) 2003, 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;
/**
* Sample Class.
*/
public class C {}
|
openjdk/jdk8 | 1,116 | jdk/test/java/lang/reflect/Proxy/returnTypes/GetArray.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public interface GetArray {
Object[] get(double[][][] x);
}
|
openjdk/jtreg | 1,145 | test/exitCodes/Pass.java | /*
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
*/
public class Pass {
public static void main(String... args) { }
}
|
oracle/coherence | 1,077 | prj/coherence-core/src/main/java/com/tangosol/internal/util/ExceptionHelper.java | /*
* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package com.tangosol.internal.util;
import java.io.InvalidObjectException;
/**
* Helper class for InvalidObjectException creation.
* <p>
* The main purpose of this class is to isolate the code that throws
* {@link InvalidObjectException(String, Exception)} (added in JDK 19),
* in order to simplify multi-release JAR creation.
*
* @author joe fialli 2023.07.28
* @since 23.09
*/
public class ExceptionHelper
{
/**
* Create an InvalidObjectException.
*
* @param message message for returned exception
* @param e cause for returned exception
*
* @return an {@link InvalidObjectException}
*/
public static InvalidObjectException createInvalidObjectException(String message, Exception e)
{
InvalidObjectException ioe = new InvalidObjectException(message);
ioe.initCause(e);
return ioe;
}
}
|
apache/ctakes | 1,048 | ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/cased/dictionary/DictionaryStore.java | package org.apache.ctakes.dictionary.cased.dictionary;
import java.util.ArrayList;
import java.util.Collection;
/**
* @author SPF , chip-nlp
* @version %I%
* @since 8/13/2020
*/
public enum DictionaryStore {
INSTANCE;
static public DictionaryStore getInstance() {
return INSTANCE;
}
private final Collection<CasedDictionary> _dictionaries = new ArrayList<>();
public boolean addDictionary( final CasedDictionary dictionary ) {
final String name = dictionary.getName();
synchronized ( _dictionaries ) {
final boolean present = _dictionaries.stream()
.map( CasedDictionary::getName )
.anyMatch( name::equals );
if ( present ) {
// Dictionary with given name already exists.
return false;
}
_dictionaries.add( dictionary );
return true;
}
}
public Collection<CasedDictionary> getDictionaries() {
return _dictionaries;
}
}
|
apache/ctakes | 1,086 | ctakes-core/src/main/java/org/apache/ctakes/core/cc/pretty/row/ItemRow.java | package org.apache.ctakes.core.cc.pretty.row;
import org.apache.ctakes.core.cc.pretty.cell.ItemCell;
import java.util.Collection;
import java.util.Map;
/**
* A row of item cells that represent part of a sentence and its annotations
*/
public interface ItemRow {
/**
* Attempt to add an item cell to this row
*
* @param itemCell -
* @return true if the item cell was added to this row
*/
boolean addItemCell( ItemCell itemCell );
/**
* @return height in lines required to accommodate this item cell
*/
int getHeight();
/**
* @return item cells in this row
*/
Collection<ItemCell> getItemCells();
/**
* @param lineIndex index of the line required to write this item cell
* @param rowWidth width in characters of the row
* @param offsetAdjustedMap map of original document offsets to adjusted printable offsets
* @return text to be written on the given line to represent this item row
*/
String getTextLine( int lineIndex, int rowWidth, Map<Integer, Integer> offsetAdjustedMap );
}
|
apache/curator | 1,080 | curator-framework/src/main/java/org/apache/curator/framework/api/GetChildrenBuilder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.framework.api;
import java.util.List;
public interface GetChildrenBuilder
extends Watchable<BackgroundPathable<List<String>>>,
BackgroundPathable<List<String>>,
Statable<WatchPathable<List<String>>> {}
|
apache/cxf | 1,041 | rt/rs/security/oauth-parent/oauth2/src/test/java/org/apache/cxf/rs/security/oauth2/grants/code/JPACodeDataProviderOpenJPATest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.rs.security.oauth2.grants.code;
public class JPACodeDataProviderOpenJPATest extends JPACodeDataProviderTest {
@Override
protected String getPersistenceUnitName() {
return "testUnitOpenJPA";
}
}
|
apache/cxf | 1,092 | rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/nio/NioErrorHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.jaxrs.nio;
@FunctionalInterface
public interface NioErrorHandler {
/**
* Method called when an exception or error occurred.
*
* @param throwable the error or exception encountered.
*/
void error(Throwable throwable) throws Throwable;
}
|
apache/directory-kerby | 1,063 | kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/pa/token/TokenInfos.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.kerby.kerberos.kerb.type.pa.token;
import org.apache.kerby.kerberos.kerb.type.KrbSequenceOfType;
/**
SEQUENCE (SIZE(1..MAX)) OF TokenInfo,
*/
public class TokenInfos extends KrbSequenceOfType<TokenInfo> {
}
|
apache/directory-kerby | 1,077 | kerby-pkix/src/main/java/org/apache/kerby/x500/type/RelativeDistinguishedName.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.kerby.x500.type;
import org.apache.kerby.asn1.type.Asn1SetOf;
/**
* RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue
*/
public class RelativeDistinguishedName extends Asn1SetOf<AttributeTypeAndValue> {
}
|
apache/directory-kerby | 1,079 | kerby-pkix/src/main/java/org/apache/kerby/x509/type/TargetInformation.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.kerby.x509.type;
import org.apache.kerby.asn1.type.Asn1SequenceOf;
/**
* Ref. RFC 3281
*
* <pre>
* TargetInformation ::= SEQUENCE OF Targets
* </pre>
*
*/
public class TargetInformation extends Asn1SequenceOf<Target> {
}
|
apache/dolphinscheduler | 1,057 | dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/datasource/AdHocDataSourceClient.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.spi.datasource;
/**
* This is a marker interface for pooled data source client, the connection generated from this client should not be pooled.
*/
public interface AdHocDataSourceClient extends DataSourceClient {
}
|
apache/dolphinscheduler | 1,058 | dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProjectPreferenceMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.dao.mapper;
import org.apache.dolphinscheduler.dao.entity.ProjectPreference;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public interface ProjectPreferenceMapper extends BaseMapper<ProjectPreference> {
}
|
apache/dubbo | 1,081 | dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/cluster/filter/ClusterFilter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.rpc.cluster.filter;
import org.apache.dubbo.common.extension.ExtensionScope;
import org.apache.dubbo.common.extension.SPI;
import org.apache.dubbo.rpc.BaseFilter;
@SPI(scope = ExtensionScope.MODULE)
public interface ClusterFilter extends BaseFilter {}
|
apache/eventmesh | 1,079 | eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/util/BannerUtilTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.runtime.util;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class BannerUtilTest {
@Test
public void testGenerateBanner() {
Assertions.assertDoesNotThrow(BannerUtil::generateBanner);
}
}
|
apache/felix-dev | 1,034 | ipojo/runtime/core-it/ipojo-core-factory-version-test/src/main/java/org/apache/felix/ipojo/core/tests/components/MyComponent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.core.tests.components;
import org.apache.felix.ipojo.core.tests.services.MyService;
public class MyComponent implements MyService {
public void foo() {
// Nothing to do.
}
}
|
apache/felix-dev | 1,089 | framework/src/main/java/org/osgi/framework/wiring/package-info.java | /*
* Copyright (c) OSGi Alliance (2010, 2013). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Framework Wiring Package Version 1.2.
*
* <p>
* Bundles wishing to use this package must list the package in the
* Import-Package header of the bundle's manifest. For example:
*
* <pre>
* Import-Package: org.osgi.framework.wiring; version="[1.2,2.0)"
* </pre>
*
* @author $Id: 6fb7232ca6c7b389c20f75566a46c4022b8dd5d5 $
*/
@Version("1.2")
package org.osgi.framework.wiring;
import org.osgi.annotation.versioning.Version;
|
apache/fineract | 1,050 | fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccountingProcessorForSavings.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.accounting.journalentry.service;
import org.apache.fineract.accounting.journalentry.data.SavingsDTO;
public interface AccountingProcessorForSavings {
void createJournalEntriesForSavings(SavingsDTO savingsDTO);
}
|
apache/fineract | 1,066 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/data/ChargeProductAppliesTo.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 ChargeProductAppliesTo {
LOAN(1), //
SAVINGS(2), //
CLIENT(3), //
SHARES(4); //
public final Integer value;
ChargeProductAppliesTo(Integer value) {
this.value = value;
}
}
|
apache/fineract | 1,073 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/data/AccountingRule.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 AccountingRule {
NONE(1), //
CASH_BASED(2), //
ACCRUAL_PERIODIC(3), //
ACCRUAL_UPFRONT(4); //
public final Integer value;
AccountingRule(Integer value) {
this.value = value;
}
}
|
apache/fineract | 1,093 | fineract-cob/src/main/java/org/apache/fineract/cob/COBBusinessStep.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cob;
import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
public interface COBBusinessStep<T extends AbstractPersistableCustom<Long>> {
T execute(T input);
String getEnumStyledName();
String getHumanReadableName();
}
|
apache/flink | 1,043 | flink-test-utils-parent/flink-clients-test-utils/src/main/java/org/apache/flink/client/testjar/TestUserClassLoaderJobLib.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.client.testjar;
/** This class is depended by {@link TestUserClassLoaderJob}. */
class TestUserClassLoaderJobLib {
int getValue() {
return 0;
}
public static void main(String[] args) {}
}
|
apache/flink | 1,064 | flink-runtime/src/test/java/org/apache/flink/runtime/operators/testutils/DiscardingOutputCollector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.runtime.operators.testutils;
import org.apache.flink.util.Collector;
public class DiscardingOutputCollector<T> implements Collector<T> {
@Override
public void collect(T rec) {}
@Override
public void close() {}
}
|
apache/geaflow | 1,065 | geaflow/geaflow-state/geaflow-state-api/src/main/java/org/apache/geaflow/state/DynamicVertexState.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.state;
import org.apache.geaflow.model.graph.vertex.IVertex;
public interface DynamicVertexState<K, VV, EV> extends
DynamicQueryableState<K, VV, EV, IVertex<K, VV>>,
MultiVersionedRevisableState<K, IVertex<K, VV>> {
}
|
apache/geode | 1,064 | geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/api/MembershipInformation.java | package org.apache.geode.distributed.internal.membership.api;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Class MembershipInformation is used to pass membership data from a GMS that was
* kicked out of the cluster to a new one during auto-reconnect operations.
*/
public interface MembershipInformation {
}
|
apache/geode | 1,085 | geode-unsafe/src/main/java/org/apache/geode/unsafe/internal/sun/misc/SignalHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.unsafe.internal.sun.misc;
public interface SignalHandler {
SignalHandler SIG_DFL = new Signal.SunSignalHandler(sun.misc.SignalHandler.SIG_DFL);
SignalHandler SIG_IGN = new Signal.SunSignalHandler(sun.misc.SignalHandler.SIG_IGN);
void handle(Signal signal);
}
|
apache/gobblin | 1,086 | gobblin-runtime/src/main/java/org/apache/gobblin/runtime/util/InjectionNames.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gobblin.runtime.util;
/**
* These names are used for dependency injection, when we need to inject different instances of the same type,
* or inject constants.
* */
public final class InjectionNames {
public static final String SERVICE_NAME = "serviceName";
}
|
apache/grails-core | 1,065 | grails-databinding-core/src/main/groovy/org/grails/databinding/converters/ConversionService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.grails.databinding.converters;
/**
* @author Jeff Brown
* @since 2.3
*/
public interface ConversionService {
boolean canConvert(Class<?> source, Class<?> target);
Object convert(Object objet, Class<?> targetType);
}
|
apache/gravitino | 1,084 | core/src/main/java/org/apache/gravitino/authorization/AuthorizationPrivilege.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.gravitino.authorization;
/** AuthorizationPrivilege interface is used to define the underlying data source privileges. */
public interface AuthorizationPrivilege {
String getName();
Privilege.Condition condition();
boolean equalsTo(String value);
}
|
apache/guacamole-client | 1,074 | guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthTokenGenerator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.rest.auth;
/**
* Generates an auth token for an authenticated user.
*/
public interface AuthTokenGenerator {
/**
* Get a new auth token.
*
* @return A new auth token.
*/
public String getToken();
}
|
apache/hadoop-common | 1,024 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/split/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.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.mapreduce.split;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop-common | 1,024 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/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.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.mapreduce.task;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop-common | 1,038 | hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/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.
*/
@InterfaceAudience.LimitedPrivate({"Common", "Avro", "Chukwa", "HBase", "HDFS",
"Hive", "MapReduce", "Pig", "ZooKeeper"})
package org.apache.hadoop.classification.tools;
import org.apache.hadoop.classification.InterfaceAudience;
|
apache/harmony | 1,060 | classlib/modules/swing/src/main/java/common/org/apache/harmony/x/swing/filechooser/PlatformFileManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Anton Avtamonov
*/
package org.apache.harmony.x.swing.filechooser;
import java.io.File;
public interface PlatformFileManager {
File getDefaultFolder();
File getHomeFolder();
PlatformFile getPlatformFile(File file);
}
|
apache/harmony | 1,072 | classlib/modules/awt/src/main/java/common/java/awt/image/renderable/RenderedImageFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Igor V. Stolyarov
*/
package java.awt.image.renderable;
import java.awt.RenderingHints;
import java.awt.image.RenderedImage;
public interface RenderedImageFactory {
public RenderedImage create(ParameterBlock a0, RenderingHints a1);
}
|
apache/hop | 1,074 | engine/src/test/java/org/apache/hop/pipeline/transforms/loadsave/initializer/ActionInitializer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.pipeline.transforms.loadsave.initializer;
import org.apache.hop.workflow.action.IAction;
public abstract class ActionInitializer<T extends IAction> implements IInitializer<IAction> {
@Override
public abstract void modify(IAction object);
}
|
apache/iceberg | 1,107 | orc/src/main/java/org/apache/iceberg/orc/OrcRowReader.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iceberg.orc;
import org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch;
/** Used for implementing ORC row readers. */
public interface OrcRowReader<T> {
/** Reads a row. */
T read(VectorizedRowBatch batch, int row);
void setBatchContext(long batchOffsetInFile);
}
|
apache/ignite-3 | 1,083 | modules/raft/src/main/java/org/apache/ignite/raft/jraft/core/ReplicatorType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.raft.jraft.core;
/**
* Replicator role
*/
public enum ReplicatorType {
Follower, Learner;
public final boolean isFollower() {
return this == Follower;
}
public final boolean isLearner() {
return this == Learner;
}
} |
apache/ignite | 1,054 | modules/extdata/platform/src/test/java/org/apache/ignite/platform/plugin/cache/PlatformTestCachePluginProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.platform.plugin.cache;
import org.apache.ignite.plugin.AbstractCachePluginProvider;
/**
* Test cache plugin provider.
*/
public class PlatformTestCachePluginProvider extends AbstractCachePluginProvider {
// No-op.
}
|
apache/ignite | 1,059 | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheEnumOperationsSingleNodeTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
/**
*
*/
public class CacheEnumOperationsSingleNodeTest extends CacheEnumOperationsAbstractTest {
/** {@inheritDoc} */
@Override protected boolean singleNode() {
return true;
}
}
|
apache/ignite | 1,105 | modules/core/src/test/resources/codegen/ChildMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
import java.lang.String;
import java.nio.ByteBuffer;
public class ChildMessage extends AbstractMessage {
@Order(1)
private String str;
public String str() {
return str;
}
public void str(String str) {
this.str = str;
}
}
|
apache/incubator-heron | 1,085 | storm-compatibility/v2.2.0/src/java/org/apache/storm/spout/Scheme.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.storm.spout;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.List;
import org.apache.storm.tuple.Fields;
public interface Scheme extends Serializable {
List<Object> deserialize(ByteBuffer ser);
Fields getOutputFields();
}
|
apache/incubator-hugegraph-toolchain | 1,053 | hugegraph-client/src/main/java/org/apache/hugegraph/structure/schema/SchemaBuilder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS 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.structure.schema;
import org.apache.hugegraph.structure.SchemaElement;
public interface SchemaBuilder<T extends SchemaElement> {
T build();
T create();
T append();
T eliminate();
void remove();
}
|
apache/incubator-hugegraph | 1,043 | hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/memory/util/SerializationRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.memory.util;
public class SerializationRuntimeException extends RuntimeException {
public SerializationRuntimeException(Throwable e) {
super("Unexpected error occurs in serialization", e);
}
}
|
apache/incubator-hugegraph | 1,055 | hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/model/RegistryRestResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.pd.model;
import java.io.Serializable;
import org.apache.hugegraph.pd.grpc.Pdpb;
import lombok.Data;
@Data
public class RegistryRestResponse {
Pdpb.ErrorType errorType;
String message;
Serializable data;
}
|
apache/incubator-kie-drools | 1,030 | drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.model.codegen.execmodel.generator.drlxparse;
public interface ParseResultVisitor<T> {
T onSuccess(DrlxParseSuccess drlxParseResult);
default T onFail(DrlxParseFail failure) { return null; }
}
|
apache/incubator-kie-drools | 1,058 | drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilderFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.compiler.builder.impl;
import org.kie.api.internal.utils.KieService;
public interface TypeDeclarationBuilderFactory extends KieService {
TypeDeclarationBuilder createTypeDeclarationBuilder(KnowledgeBuilderImpl kbuilder);
}
|
apache/incubator-kie-drools | 1,059 | kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasNestedModels.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.commons.model;
import java.util.List;
/**
* Interface used to define if a given <code>KiePMMLModel</code> contains nested <b>KiePMMLModel</b>s
*/
public interface HasNestedModels {
List<KiePMMLModel> getNestedModels();
}
|
apache/incubator-kie-drools | 1,067 | kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/FEELDurationFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.dmn.feel.runtime;
import org.kie.dmn.feel.lang.types.impl.ComparablePeriod;
public interface FEELDurationFunction extends FEELFunction {
@Override
default Object defaultValue() {
return ComparablePeriod.parse("P0M");
}
} |
apache/incubator-kie-drools | 1,072 | drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeLattice.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.traits.core.factmodel;
import java.util.BitSet;
public interface TypeLattice<T> extends CodedHierarchy<T> {
BitSet getTopCode();
void setTopCode( BitSet code );
BitSet getBottomCode();
void setBottomCode( BitSet code );
}
|
apache/incubator-kie-drools | 1,079 | drools-base/src/main/java/org/drools/base/rule/EvalConditionFactoryImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.base.rule;
public class EvalConditionFactoryImpl implements EvalConditionFactory {
@Override
public EvalCondition createEvalCondition(final Declaration[] requiredDeclarations) {
return new EvalCondition(requiredDeclarations);
}
}
|
apache/incubator-kie-drools | 1,090 | drools-mvel/src/main/java/org/drools/mvel/ConditionEvaluator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.mvel;
import org.drools.base.base.ValueResolver;
import org.drools.base.reteoo.BaseTuple;
import org.kie.api.runtime.rule.FactHandle;
public interface ConditionEvaluator {
boolean evaluate(FactHandle handle, ValueResolver valueResolver, BaseTuple tuple);
}
|
apache/incubator-kie-kogito-runtimes | 1,044 | api/kogito-api/src/main/java/org/kie/kogito/internal/process/event/DefaultKogitoProcessEventListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.internal.process.event;
import org.kie.api.event.process.DefaultProcessEventListener;
public class DefaultKogitoProcessEventListener extends DefaultProcessEventListener implements KogitoProcessEventListener {
}
|
apache/incubator-kie-kogito-runtimes | 1,047 | jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/datatype/impl/coverter/NoOpTypeConverter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jbpm.process.core.datatype.impl.coverter;
import java.util.function.Function;
public class NoOpTypeConverter implements Function<String, String> {
@Override
public String apply(String t) {
return t;
}
}
|
apache/incubator-kie-kogito-runtimes | 1,064 | jbpm/jbpm-flow-builder/src/main/java/org/jbpm/assembler/BPMN2ProcessProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jbpm.assembler;
import org.kie.api.internal.utils.KieService;
import org.kie.internal.builder.KnowledgeBuilder;
public interface BPMN2ProcessProvider extends KieService {
void configurePackageBuilder(KnowledgeBuilder packageBuilder);
}
|
apache/incubator-livy | 1,094 | test-lib/src/main/java/org/apache/livy/test/jobs/Echo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.livy.test.jobs;
import org.apache.livy.Job;
import org.apache.livy.JobContext;
public class Echo<T> implements Job<T> {
private final T value;
public Echo(T value) {
this.value = value;
}
@Override
public T call(JobContext jc) {
return value;
}
}
|
apache/incubator-retired-wave | 1,069 | wave/src/main/java/org/waveprotocol/wave/model/account/MutableAssignment.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.waveprotocol.wave.model.account;
/**
* Extends Assignment to provide mutability.
*
*
*/
public interface MutableAssignment extends Assignment {
/**
*
* @param role the new Role for the participant.
*/
void setRole(Role role);
}
|
apache/incubator-seata | 1,057 | discovery/seata-discovery-core/src/main/java/org/apache/seata/discovery/registry/RegistryProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.discovery.registry;
/**
* the interface registry provider
*/
public interface RegistryProvider {
/**
* provide a registry implementation instance
* @return RegistryService
*/
RegistryService provide();
}
|
apache/incubator-seata | 1,087 | core/src/main/java/org/apache/seata/core/event/ExceptionEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.core.event;
/**
* Event data for exception.
*
*/
public class ExceptionEvent implements Event {
private String name;
public ExceptionEvent(String code) {
this.name = code;
}
public String getName() {
return name;
}
}
|
apache/incubator-weex | 1,080 | android/sdk/src/main/java/org/apache/weex/adapter/IWXJSExceptionAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.weex.adapter;
import org.apache.weex.common.WXJSExceptionInfo;
public interface IWXJSExceptionAdapter {
/**
* report js exception
*
* @param exception {@link WXJSExceptionInfo}
*/
void onJSException(WXJSExceptionInfo exception);
}
|
apache/inlong | 1,059 | inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/cmd/shell/ShellExecutor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.service.cmd.shell;
public interface ShellExecutor {
/**
* Execute shell commands
*
* @param shellPath shell path
* @param params params
*/
void syncExec(String shellPath, String... params);
}
|
apache/inlong | 1,069 | inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/state/StateTransferException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.agent.state;
/**
* StateTransferException
*/
public class StateTransferException extends RuntimeException {
public StateTransferException(State begin, State end) {
super(String.format("%s -> %s not allowed", begin, end));
}
}
|
apache/iotdb | 1,051 | iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/exception/CreateTAsyncClientManagerException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.client.exception;
public class CreateTAsyncClientManagerException extends RuntimeException {
public CreateTAsyncClientManagerException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/iotdb | 1,053 | iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/runtime/SerializationRunTimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.exception.runtime;
public class SerializationRunTimeException extends RuntimeException {
public SerializationRunTimeException(Throwable e) {
super("Unexpected error occurs in serialization", e);
}
}
|
apache/iotdb | 1,063 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/columngenerator/ColumnGeneratorType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.db.utils.columngenerator;
public enum ColumnGeneratorType {
SLIDING_TIME((byte) 0);
private final byte type;
ColumnGeneratorType(byte type) {
this.type = type;
}
public byte getType() {
return type;
}
}
|
apache/iotdb | 1,064 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/exception/metadata/AcquireLockTimeoutException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.db.exception.metadata;
import org.apache.iotdb.commons.exception.MetadataException;
public class AcquireLockTimeoutException extends MetadataException {
public AcquireLockTimeoutException(String msg) {
super(msg);
}
}
|
apache/jackrabbit-oak | 1,063 | oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/server/StateConsumer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.oak.segment.standby.server;
/**
* Implementors of this interface can consume the state of the communication
* pipeline as tracked by {@link StateHandler}.
*/
interface StateConsumer {
void consumeState(String state);
}
|
apache/jackrabbit | 1,061 | jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/packaging/ContentPackageExporter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.commons.packaging;
import java.io.OutputStream;
import javax.jcr.RepositoryException;
public interface ContentPackageExporter {
void export(ContentPackage description, OutputStream out)
throws RepositoryException;
}
|
apache/jclouds | 1,094 | blobstore/src/main/java/org/jclouds/blobstore/domain/ContainerAccess.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.blobstore.domain;
import com.google.common.annotations.Beta;
@Beta
public enum ContainerAccess {
/** Only allow bucket owner to read and write objects. */
PRIVATE,
/** Allow all users to read objects but only allow owner to write objects. */
PUBLIC_READ;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.