repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/streampark
1,054
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/mapper/FlinkSavepointMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.streampark.console.core.mapper; import org.apache.streampark.console.core.entity.FlinkSavepoint; import com.baomidou.mybatisplus.core.mapper.BaseMapper; public interface FlinkSavepointMapper extends BaseMapper<FlinkSavepoint> { }
apache/streampark
1,054
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/mapper/SparkEffectiveMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.streampark.console.core.mapper; import org.apache.streampark.console.core.entity.SparkEffective; import com.baomidou.mybatisplus.core.mapper.BaseMapper; public interface SparkEffectiveMapper extends BaseMapper<SparkEffective> { }
apache/streampark
1,081
streampark-flink/streampark-flink-udf/src/main/java/org/apache/streampark/flink/udf/Length.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.streampark.flink.udf; import org.apache.flink.table.functions.ScalarFunction; public class Length extends ScalarFunction { public Integer eval(String str) { if (str == null) { return 0; } return str.length(); } }
apache/streampipes
1,065
streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/pe/IStreamPipesPipelineElement.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.extensions.api.pe; import org.apache.streampipes.extensions.api.pe.config.IPipelineElementConfiguration; public interface IStreamPipesPipelineElement<PcT extends IPipelineElementConfiguration<?, ?>> { PcT declareConfig(); }
apache/synapse
1,098
modules/samples/services/JAXWSStockQuoteService/src/samples/services/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. */ @javax.xml.bind.annotation.XmlSchema(namespace="http://services.samples", elementFormDefault=javax.xml.bind.annotation.XmlNsForm.QUALIFIED) @javax.xml.bind.annotation.XmlAccessorOrder(javax.xml.bind.annotation.XmlAccessOrder.ALPHABETICAL) package samples.services;
apache/syncope
1,070
core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/task/AnyTemplatePullTask.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.core.persistence.api.entity.task; import org.apache.syncope.core.persistence.api.entity.AnyTemplate; public interface AnyTemplatePullTask extends AnyTemplate { PullTask getPullTask(); void setPullTask(PullTask pullTask); }
apache/tapestry-5
1,070
tapestry-jmx/src/test/java/org/apache/tapestry5/jmx/integration/TapestryJmxIntegrationTests.java
// Copyright 2009, 2010 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.jmx.integration; import org.apache.tapestry5.test.SeleniumTestCase; import org.testng.annotations.Test; @Test(singleThreaded = true, groups = "integration") public class TapestryJmxIntegrationTests extends SeleniumTestCase { /** TAP5-978 */ @Test public void remote_pool_management() { openBaseURL(); clickAndWait("link=Remote Pool Management"); assertText("sample-value", "42"); } }
apache/tapestry-5
1,090
tapestry5-annotations/src/main/java/org/apache/tapestry5/ioc/annotations/UseWith.java
// Copyright 2007 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.ioc.annotations; import java.lang.annotation.*; import static java.lang.annotation.RetentionPolicy.SOURCE; /** * Annotation documenting the context(s) in which tapestry-provided annotations may be used. * This annotation is solely for documentation purposes, is expressly not used at runtime * @since 5.2.0.0 */ @Target(ElementType.ANNOTATION_TYPE) @Retention(SOURCE) @Documented public @interface UseWith { AnnotationUseContext[] value(); }
apache/tez
1,103
tez-dag/src/main/java/org/apache/tez/dag/app/dag/event/TaskEventTALaunched.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tez.dag.app.dag.event; import org.apache.tez.dag.records.TezTaskAttemptID; @SuppressWarnings("rawtypes") public class TaskEventTALaunched extends TaskEventTAUpdate { public TaskEventTALaunched(TezTaskAttemptID id) { super(id, TaskEventType.T_ATTEMPT_LAUNCHED); } }
apache/tomcat-maven-plugin
1,061
common-tomcat-maven-plugin/src/main/java/org/apache/tomcat/maven/common/messages/MessagesProvider.java
package org.apache.tomcat.maven.common.messages; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * messages provider * * @author Olivier Lamy * @since 2.0 */ public interface MessagesProvider { String getMessage( String key ); String getMessage( String key, Object... param1 ); }
apache/tomee
1,101
examples/decorators/src/main/java/org/superbiz/cdi/decorators/Calculator.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.superbiz.cdi.decorators; /** * @version $Revision$ $Date$ */ public interface Calculator { public int add(int a, int b); public int subtract(int a, int b); public int multiply(int a, int b); public int divide(int a, int b); public int remainder(int a, int b); }
apache/twill
1,103
twill-core/src/main/java/org/apache/twill/internal/ResourceCapability.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.twill.internal; /** * Represents information about compute resources capability. */ public interface ResourceCapability { /** * Returns memory size in MB. */ int getMemoryMB(); /** * Returns the number of virtual cpu cores. */ int getVirtualCores(); }
apache/uima-uimaj
1,105
uimaj-core/src/main/java/org/apache/uima/analysis_engine/asb/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. */ /** * Contains the Analysis Structure Broker (ASB) interface, along with supporting interfaces and * exception classes. The ASB is the component responsible for communicating with component Analysis * Engines within an Aggregate Analysis Engine. */ package org.apache.uima.analysis_engine.asb;
apache/unomi
1,095
graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/schema/json/JSONBooleanType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.unomi.graphql.schema.json; import java.util.Map; public class JSONBooleanType extends JSONType { public JSONBooleanType(Map<String, Object> schemaTree, JSONTypeFactory jsonTypeFactory) { super(schemaTree, jsonTypeFactory); setType("boolean"); } }
apache/unomi
1,095
graphql/cxs-impl/src/main/java/org/apache/unomi/graphql/schema/json/JSONIntegerType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.unomi.graphql.schema.json; import java.util.Map; public class JSONIntegerType extends JSONType { public JSONIntegerType(Map<String, Object> schemaTree, JSONTypeFactory jsonTypeFactory) { super(schemaTree, jsonTypeFactory); setType("integer"); } }
apache/wicket
1,078
wicket-core-tests/src/test/java/org/apache/wicket/markup/MarkupInheritanceBaseBase_13.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup; import org.apache.wicket.markup.html.WebPage; /** */ public class MarkupInheritanceBaseBase_13 extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. * */ MarkupInheritanceBaseBase_13() { } }
apache/wicket
1,081
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/login/PageA.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup.html.form.login; import org.apache.wicket.markup.html.WebPage; /** * @author marrink */ public class PageA extends WebPage { private static final long serialVersionUID = 1L; /** * * Construct. */ public PageA() { super(); } }
google/cap-library
1,083
java/src/com/google/publicalerts/cap/edxl/types/NonXmlContent.java
// Copyright 2011 Google Inc. All Rights Reserved. package com.google.publicalerts.cap.edxl.types; /** * Bean to hold <nonXmlContent> data from EDXL-DE feeds. * * @author anshul@google.com (Anshul Kundani) */ public class NonXmlContent { private String mimeType; private int size; private String digest; private String uri; private byte[] contentData; public NonXmlContent(String mimeType) { this.mimeType = mimeType; } public String getMimeType() { return mimeType; } public void setMimeType(String mimeType) { this.mimeType = mimeType; } public int getSize() { return size; } public void setSize(int size) { this.size = size; } public String getDigest() { return digest; } public void setDigest(String digest) { this.digest = digest; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } public byte[] getContentData() { return contentData; } public void setContentData(byte[] contentData) { this.contentData = contentData; } }
google/ExoPlayer
1,085
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeMediaClockRenderer.java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.android.exoplayer2.testutil; import com.google.android.exoplayer2.Renderer; import com.google.android.exoplayer2.util.MediaClock; /** Fake abstract {@link Renderer} which is also a {@link MediaClock}. */ public abstract class FakeMediaClockRenderer extends FakeRenderer implements MediaClock { public FakeMediaClockRenderer(int trackType) { super(trackType); } @Override public MediaClock getMediaClock() { return this; } }
google/graphicsfuzz
1,109
common/src/main/java/com/graphicsfuzz/common/util/BuiltInTexture.java
/* * Copyright 2020 The GraphicsFuzz Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.graphicsfuzz.common.util; // Enumeration to track the built-in textures which are supported in GraphicsFuzz. These are // textures for which a specific image will be created, typically by running a graphics pipeline // that writes to an image, in the Amber file that gfauto generates. public enum BuiltInTexture { // TODO(https://github.com/google/graphicsfuzz/issues/1074): At present only one texture is // supported, but it would be good to have some more. DEFAULT }
google/j2cl
1,083
transpiler/javatests/com/google/j2cl/integration/java/j2ktiosinterop/NativeCustomName.java
/* * Copyright 2022 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 j2ktiosinterop; import com.google.j2objc.annotations.ObjectiveCName; import org.jspecify.annotations.NullMarked; @ObjectiveCName("CustomNativeClass") @NullMarked public final class NativeCustomName { public int nativeInstanceMethod() { return 1; } public static int nativeStaticMethod() { return 2; } public static void nativeParameter(NativeCustomName obj) {} public static NativeCustomName nativeReturnType() { return new NativeCustomName(); } }
google/j2cl
1,088
transpiler/javatests/com/google/j2cl/integration/java/jsbridgemultipleaccidental/Main.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 jsbridgemultipleaccidental; import static com.google.j2cl.integration.testing.Asserts.assertTrue; public class Main { public static void main(String... args) { InterfaceOne a = new Test(); InterfaceTwo b = new Test(); InterfaceThree c = new Test(); C d = new Test(); Test e = new Test(); assertTrue((a.fun(1) == 1)); assertTrue((b.fun(1) == 1)); assertTrue((c.fun(1) == 1)); assertTrue((d.fun(1) == 1)); assertTrue((e.fun(1) == 1)); } }
google/MOE
1,100
client/src/main/java/com/google/devtools/moe/client/github/InvalidGithubUrl.java
/* * Copyright (c) 2015 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.devtools.moe.client.github; import com.google.devtools.moe.client.MoeUserProblem; import com.google.devtools.moe.client.Ui; /** An error reported when an invalid github pull request URL is given */ public class InvalidGithubUrl extends MoeUserProblem { private final String message; InvalidGithubUrl(String messageFmt, Object... args) { message = String.format(messageFmt, args); } @Override public void reportTo(Ui messenger) { messenger.message(message); } }
googleads/google-ads-java
1,067
google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/EventItemAttributeOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v19/common/offline_user_data.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v19.common; public interface EventItemAttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.EventItemAttribute) com.google.protobuf.MessageOrBuilder { /** * <pre> * Optional. A unique identifier of a product. It can be either the Merchant * Center Item ID or GTIN (Global Trade Item Number). * </pre> * * <code>string item_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The itemId. */ java.lang.String getItemId(); /** * <pre> * Optional. A unique identifier of a product. It can be either the Merchant * Center Item ID or GTIN (Global Trade Item Number). * </pre> * * <code>string item_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The bytes for itemId. */ com.google.protobuf.ByteString getItemIdBytes(); }
googleads/google-ads-java
1,067
google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/EventItemAttributeOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v20/common/offline_user_data.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v20.common; public interface EventItemAttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.EventItemAttribute) com.google.protobuf.MessageOrBuilder { /** * <pre> * Optional. A unique identifier of a product. It can be either the Merchant * Center Item ID or GTIN (Global Trade Item Number). * </pre> * * <code>string item_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The itemId. */ java.lang.String getItemId(); /** * <pre> * Optional. A unique identifier of a product. It can be either the Merchant * Center Item ID or GTIN (Global Trade Item Number). * </pre> * * <code>string item_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The bytes for itemId. */ com.google.protobuf.ByteString getItemIdBytes(); }
googleads/google-ads-java
1,067
google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/EventItemAttributeOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v21/common/offline_user_data.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v21.common; public interface EventItemAttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.EventItemAttribute) com.google.protobuf.MessageOrBuilder { /** * <pre> * Optional. A unique identifier of a product. It can be either the Merchant * Center Item ID or GTIN (Global Trade Item Number). * </pre> * * <code>string item_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The itemId. */ java.lang.String getItemId(); /** * <pre> * Optional. A unique identifier of a product. It can be either the Merchant * Center Item ID or GTIN (Global Trade Item Number). * </pre> * * <code>string item_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code> * @return The bytes for itemId. */ com.google.protobuf.ByteString getItemIdBytes(); }
googleapis/google-cloud-java
1,024
java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StartNotebookRuntimeResponseOrBuilder.java
/* * Copyright 2025 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. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/aiplatform/v1beta1/notebook_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.aiplatform.v1beta1; public interface StartNotebookRuntimeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StartNotebookRuntimeResponse) com.google.protobuf.MessageOrBuilder {}
googleapis/google-cloud-java
1,026
java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponseOrBuilder.java
/* * Copyright 2025 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. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/documentai/v1beta3/document_processor_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.documentai.v1beta3; public interface DisableProcessorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.DisableProcessorResponse) com.google.protobuf.MessageOrBuilder {}
googlearchive/science-journal
1,038
OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/sensorapi/StreamConsumer.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.android.apps.forscience.whistlepunk.sensorapi; /** Consumes new single-value time-series data points as they are generated. */ public interface StreamConsumer { /** * A new value has been seen. Caveat implementor: this may be called from any thread. * * @return true if data was successfully accepted by the consumer */ boolean addData(long timestampMillis, double value); }
googlemaps/google-maps-services-java
1,080
src/main/java/com/google/maps/internal/EncodedPolylineInstanceCreator.java
/* * Copyright 2017 by https://github.com/ArielY15 * * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF * ANY KIND, either express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.google.maps.internal; import com.google.gson.InstanceCreator; import com.google.maps.model.EncodedPolyline; import java.lang.reflect.Type; public class EncodedPolylineInstanceCreator implements InstanceCreator<EncodedPolyline> { private String points; public EncodedPolylineInstanceCreator(String points) { this.points = points; } @Override public EncodedPolyline createInstance(Type type) { return new EncodedPolyline(points); } }
hibernate/hibernate-ogm
1,082
core/src/main/java/org/hibernate/ogm/type/impl/ByteStringType.java
/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.type.impl; import org.hibernate.MappingException; import org.hibernate.engine.spi.Mapping; import org.hibernate.ogm.type.descriptor.impl.StringMappedGridTypeDescriptor; import org.hibernate.type.descriptor.java.ByteTypeDescriptor; /** * Persist a {@link Byte} as a {@link String}. * TODO Could be better to persist as an {@link Integer}. * * @author Oliver Carr ocarr@redhat.com * */ public class ByteStringType extends AbstractGenericBasicType<Byte> { public static final ByteStringType INSTANCE = new ByteStringType(); public ByteStringType() { super( StringMappedGridTypeDescriptor.INSTANCE, ByteTypeDescriptor.INSTANCE ); } @Override public String getName() { return "byte_as_string"; } @Override public int getColumnSpan(Mapping mapping) throws MappingException { return 1; } }
hibernate/hibernate-orm
1,025
hibernate-core/src/test/java/org/hibernate/orm/test/idprops/Order.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.idprops; import java.util.Date; import java.util.HashSet; import java.util.Set; /** * {@inheritDoc} * * @author Steve Ebersole */ public class Order { private Long number; private Date placed; private Person orderee; private Set lineItems = new HashSet(); public Order() { } public Order(Long number, Person orderee) { this.number = number; this.orderee = orderee; this.placed = new Date(); } public Long getNumber() { return number; } public void setNumber(Long number) { this.number = number; } public Date getPlaced() { return placed; } public void setPlaced(Date placed) { this.placed = placed; } public Person getOrderee() { return orderee; } public void setOrderee(Person orderee) { this.orderee = orderee; } public Set getLineItems() { return lineItems; } public void setLineItems(Set lineItems) { this.lineItems = lineItems; } }
hibernate/hibernate-orm
1,038
hibernate-core/src/main/java/org/hibernate/dialect/function/HANARegexpLikeFunction.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.dialect.function; import org.hibernate.metamodel.model.domain.ReturnableType; import org.hibernate.sql.ast.SqlAstTranslator; import org.hibernate.sql.ast.spi.SqlAppender; import org.hibernate.sql.ast.tree.SqlAstNode; import org.hibernate.type.spi.TypeConfiguration; import java.util.List; /** * HANA has a special predicate. */ public class HANARegexpLikeFunction extends AbstractRegexpLikeFunction { public HANARegexpLikeFunction(TypeConfiguration typeConfiguration) { super( typeConfiguration ); } @Override public void render( SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) { arguments.get( 0 ).accept( walker ); sqlAppender.appendSql( " like_regexpr " ); arguments.get( 1 ).accept( walker ); if ( arguments.size() > 2 ) { sqlAppender.appendSql( " flag " ); arguments.get( 2 ).accept( walker ); } } }
hibernate/hibernate-orm
1,064
hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/spi/JdbcValuesMappingProducerProvider.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.sql.results.jdbc.spi; import org.hibernate.Incubating; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.query.results.ResultSetMapping; import org.hibernate.service.Service; import org.hibernate.sql.ast.tree.select.SelectStatement; /** * Pluggable contract for providing custom {@link JdbcValuesMappingProducer} implementations. * This is intended for use by hibernate-reactive to provide its custom implementations. * * @author Steve Ebersole */ @Incubating public interface JdbcValuesMappingProducerProvider extends Service { /** * Provide the JdbcValuesMappingProducer to use for the given SQL AST */ JdbcValuesMappingProducer buildMappingProducer(SelectStatement sqlAst, SessionFactoryImplementor sessionFactory); /** * Provide a dynamically built JdbcValuesMappingProducer */ ResultSetMapping buildResultSetMapping(String name, boolean isDynamic, SessionFactoryImplementor sessionFactory); }
hibernate/hibernate-orm
1,089
hibernate-core/src/main/java/org/hibernate/result/Outputs.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.result; /** * Represents the outputs of executing a JDBC statement accounting for mixing of result sets and update counts * hiding the complexity of how this is exposed in the JDBC API. * <p> * The outputs are exposed as a group of {@link Output} objects, each representing a single result set or update count. * Conceptually, Result presents those Returns as an iterator. * * @author Steve Ebersole */ public interface Outputs { /** * Retrieve the current Output object. * * @return The current Output object. Can be {@code null} */ Output getCurrent(); /** * Go to the next Output object (if any), returning an indication of whether there was another (aka, will * the next call to {@link #getCurrent()} return {@code null}? * * @return {@code true} if the next call to {@link #getCurrent()} will return a non-{@code null} value. */ boolean goToNext(); /** * Eagerly release any resources held by this Outputs. */ void release(); }
hibernate/hibernate-search
1,039
backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/dialect/spi/ElasticsearchDialects.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.search.backend.elasticsearch.dialect.spi; import org.hibernate.search.backend.elasticsearch.ElasticsearchVersion; import org.hibernate.search.backend.elasticsearch.dialect.impl.ElasticsearchDialectFactory; /** * Utils for integrations that require advanced checks on Elasticsearch versions, * i.e. for two-phase bootstrap like in Quarkus. */ public final class ElasticsearchDialects { private ElasticsearchDialects() { } public static boolean isPreciseEnoughForBootstrap(ElasticsearchVersion version) { return ElasticsearchDialectFactory.isPreciseEnoughForModelDialect( version ); } public static boolean isPreciseEnoughForStart(ElasticsearchVersion version) { return ElasticsearchDialectFactory.isPreciseEnoughForProtocolDialect( version ); } public static boolean isVersionCheckImpossible(ElasticsearchVersion version) { return ElasticsearchDialectFactory.isVersionCheckImpossible( version ); } }
openjdk/jdk8
1,101
langtools/test/tools/javac/annotations/typeAnnotations/packageanno/mypackage/MyClass.java
/* * Copyright (c) 2009, 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 mypackage; public class MyClass {}
openjdk/jdk8
1,114
jaxp/src/com/sun/org/apache/xpath/internal/FoundIndex.java
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 1999-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. */ /* * $Id: FoundIndex.java,v 1.2.4.1 2005/09/14 19:50:20 jeffsuttor Exp $ */ package com.sun.org.apache.xpath.internal; /** * Class to let us know when it's time to do * a search from the parent because of indexing. * @xsl.usage internal */ public class FoundIndex extends RuntimeException { static final long serialVersionUID = -4643975335243078270L; /** * Constructor FoundIndex * */ public FoundIndex(){} }
openjdk/jdk8
1,117
langtools/test/com/sun/javadoc/testHtmlTableTags/pkg1/package-info.java
/* * Copyright (c) 2009, 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 package 1 used to test table tags. */ package pkg1;
openjdk/jdk8
1,117
langtools/test/com/sun/javadoc/testHtmlTableTags/pkg2/package-info.java
/* * Copyright (c) 2009, 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 package 2 used to test table tags. */ package pkg2;
openjdk/jdk8
1,120
langtools/test/tools/javadoc/generics/tparamCycle/pkg1/LikeEnum.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. */ package pkg1; public interface LikeEnum<E extends LikeEnum<E>> { }
openjdk/jdk8
1,125
langtools/test/tools/javac/generics/6356636/a/AbstractFoo.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package a; public class AbstractFoo { public class InnerFoo<T> {} }
openjdk/jdk8
1,125
langtools/test/tools/javac/generics/parametricException/K.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. */ class K { void f(J<NullPointerException> j) { j.f(); } }
openjdk/jdk8
1,130
langtools/test/com/sun/javadoc/testNavigation/pkg/A.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 Annotation Type. */ public @interface A {}
openjdk/jdk8
1,130
langtools/test/tools/javac/generics/genericAbstract/B.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ abstract class B implements A { public void foo() { // a function } }
openjdk/jdk8
1,133
langtools/test/tools/javac/generics/odersky/Cell.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ class Cell<A> { A elem; Cell(A elem) { this.elem = elem; } }
openjdk/jtreg
1,160
test/6527624/Good.java
/* * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @key Any1 Any3 */ public class Good { public static void main(String[] args) { } }
openjdk/skara
1,151
email/src/main/java/module-info.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ module org.openjdk.skara.email { requires java.logging; exports org.openjdk.skara.email; }
oracle/coherence
1,102
prj/test/functional/rest/src/main/java/rest/NullQueryEngine.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package rest; import com.tangosol.coherence.rest.query.Query; import com.tangosol.coherence.rest.query.QueryEngine; import com.tangosol.net.NamedCache; import com.tangosol.util.ValueExtractor; import java.util.Collection; import java.util.Map; import java.util.Set; /** * Null implementation of {@link QueryEngine} interface. */ public class NullQueryEngine implements QueryEngine { public Query prepareQuery(String sQuery, Map<String, Object> mapParams) { return new NullQuery(); } private static class NullQuery implements Query { public <E> Collection<E> execute(NamedCache cache, ValueExtractor<Map.Entry, ? extends E> extractor, String sOrder, int nStart, int Count) { return null; } public Set keySet(NamedCache cache) { return null; } } }
oracle/nosql
1,111
kvmain/src/main/java/oracle/kv/impl/security/ConfigurationException.java
/*- * Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package oracle.kv.impl.security; /** * Exception thrown when there is an error detected in security configuration. * An error in security configuration typically is not recoverable, and a * component should normally terminate unless it has specific knowledge of the * error context and can repair the configuration. */ public class ConfigurationException extends Exception { private static final long serialVersionUID = 1L; public ConfigurationException(String message) { this(message, null); } public ConfigurationException(String message, Throwable cause) { super(message, cause); } }
oracle/nosql
1,114
kvmain/src/main/java/oracle/kv/impl/security/annotations/PublicAPI.java
/*- * Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package oracle.kv.impl.security.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * This annotations marks an class whose declared methods are, by default, * freely accessible. Specific methods may be annotated otherwise. The scope * of this annotation applies only to the declared methods of this class. A * superclass or derived class may choose an alternate annotation for its * declared methods. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface PublicAPI { }
apache/curator
1,076
curator-framework/src/main/java/org/apache/curator/framework/api/ACLCreateModeBackgroundPathAndBytesable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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; public interface ACLCreateModeBackgroundPathAndBytesable<T> extends ACLBackgroundPathAndBytesable<T>, BackgroundPathAndBytesable<T>, CreateModable<ACLBackgroundPathAndBytesable<T>> {}
apache/cxf
1,078
rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/DirectKeyJweEncryption.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.jose.jwe; public class DirectKeyJweEncryption extends JweEncryption { public DirectKeyJweEncryption(ContentEncryptionProvider contentEncryptionAlgo) { super(new DirectKeyEncryptionAlgorithm(), contentEncryptionAlgo); } }
apache/directory-kerby
1,083
kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/base/EtypeInfo.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.base; import org.apache.kerby.kerberos.kerb.type.KrbSequenceOfType; /** ETYPE-INFO ::= SEQUENCE OF ETYPE-INFO-ENTRY */ public class EtypeInfo extends KrbSequenceOfType<EtypeInfoEntry> { }
apache/directory-kerby
1,101
kerby-pkix/src/main/java/org/apache/kerby/x509/type/NoticeNumbers.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.Asn1Integer; import org.apache.kerby.asn1.type.Asn1SequenceOf; /** * <pre> * noticeNumbers ::= SEQUENCE OF INTEGER } * </pre> */ public class NoticeNumbers extends Asn1SequenceOf<Asn1Integer> { }
apache/doris-manager
1,047
manager/general/src/main/java/org/apache/doris/stack/exception/DorisUerOrPassErrorException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class DorisUerOrPassErrorException extends Exception { public static final String MESSAGE = "用户名/密码错误,请检查后重新输入"; public DorisUerOrPassErrorException() { super(MESSAGE); } }
apache/drill
1,095
exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/ModifyTableEntry.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.planner.logical; import org.apache.drill.exec.physical.base.PhysicalOperator; import org.apache.drill.exec.physical.base.Writer; import java.io.IOException; public interface ModifyTableEntry { Writer getWriter(PhysicalOperator child) throws IOException; }
apache/druid
1,063
extensions-core/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/common/KubernetesExecutor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.k8s.overlord.common; import io.fabric8.kubernetes.client.KubernetesClient; @FunctionalInterface public interface KubernetesExecutor<T> { T executeRequest(KubernetesClient client) throws KubernetesResourceNotFoundException; }
apache/druid
1,093
indexing-service/src/test/java/org/apache/druid/indexing/common/task/NoopTaskTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.indexing.common.task; import org.junit.Assert; import org.junit.Test; public class NoopTaskTest { @Test public void testNullInputSources() { NoopTask task = NoopTask.create(); Assert.assertTrue(task.getInputSourceResources().isEmpty()); } }
apache/felix-dev
1,027
ipojo/runtime/core-it/ipojo-core-service-dependency-optional-test/src/main/java/org/apache/felix/ipojo/runtime/core/test/components/inner/C1.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.ipojo.runtime.core.test.components.inner; import org.apache.felix.ipojo.runtime.core.test.services.Call; public class C1 implements Call { public String callMe() { return "called"; } }
apache/felix-dev
1,058
dependencymanager/org.apache.felix.dependencymanager.itest/src/org/apache/felix/dm/itest/api/AspectRaceParallelTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.dm.itest.api; /** * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> */ public class AspectRaceParallelTest extends AspectRaceTest { public AspectRaceParallelTest() { setParallel(); } }
apache/fesod
1,100
fesod-examples/src/test/java/org/apache/fesod/excel/demo/fill/FillData.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fesod.excel.demo.fill; import java.util.Date; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; /** * */ @Getter @Setter @EqualsAndHashCode public class FillData { private String name; private double number; private Date date; }
apache/flex-utilities
1,077
FlexPMD/flex-pmd-java/flex-pmd-ruleset-api/src/main/java/com/adobe/ac/pmd/nodes/IVariable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.adobe.ac.pmd.nodes; /** * @author xagnetti */ public interface IVariable extends IMetaDataListHolder, INamableNode { /** * @return */ IFieldInitialization getInitializationExpression(); /** * @return */ IIdentifierNode getType(); }
apache/geode
1,118
geode-junit/src/main/java/com/examples/snapshot/MyObjectPdx.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 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.examples.snapshot; public class MyObjectPdx extends MyObject { public enum MyEnumPdx { const1, const2, const3, const4, const5 } private MyEnumPdx enumVal; public MyObjectPdx() {} public MyObjectPdx(long number, String s, MyEnumPdx enumVal) { super(number, s); this.enumVal = enumVal; } }
apache/giraph
1,109
giraph-core/src/main/java/org/apache/giraph/bsp/ApplicationState.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.bsp; /** * State of the BSP application */ public enum ApplicationState { /** Shouldn't be seen, just an initial state */ UNKNOWN, /** Start from a desired superstep */ START_SUPERSTEP, /** Unrecoverable */ FAILED, /** Successful completion */ FINISHED, }
apache/gobblin
1,069
gobblin-modules/gobblin-elasticsearch/src/main/java/org/apache/gobblin/elasticsearch/writer/MalformedDocPolicy.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.elasticsearch.writer; /** * A class to represent different policies for handling malformed documents */ public enum MalformedDocPolicy { IGNORE, // Ignore on failure WARN, // Log warning on failure FAIL // Fail on failure }
apache/hadoop
1,031
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/api/records/MasterKey.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.yarn.server.api.records; import java.nio.ByteBuffer; public interface MasterKey { int getKeyId(); void setKeyId(int keyId); ByteBuffer getBytes(); void setBytes(ByteBuffer bytes); }
apache/hadoop
1,085
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureFileSystemThreadTask.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.fs.azure; import java.io.IOException; /** * Interface for executing the file operation by a thread. */ public interface AzureFileSystemThreadTask { // Execute the operation on the file. boolean execute(FileMetadata file) throws IOException; }
apache/harmony
1,092
classlib/modules/awt/src/main/java/common/org/apache/harmony/awt/state/TextState.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 Pavel Dolgov */ package org.apache.harmony.awt.state; import java.awt.Dimension; /** * State of the component with text */ public interface TextState extends State { String getText(); Dimension getTextSize(); void setTextSize(Dimension size); }
apache/iceberg
1,128
core/src/main/java/org/apache/iceberg/ClientPool.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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; public interface ClientPool<C, E extends Exception> { interface Action<R, C, E extends Exception> { R run(C client) throws E; } <R> R run(Action<R, C, E> action) throws E, InterruptedException; <R> R run(Action<R, C, E> action, boolean retry) throws E, InterruptedException; }
apache/ignite-extensions
1,083
modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/math/functions/IgniteSupplier.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.ml.math.functions; import java.io.Serializable; import java.util.function.Supplier; /** * Serializable supplier. * * @see java.util.function.Consumer */ @FunctionalInterface public interface IgniteSupplier<T> extends Supplier<T>, Serializable { }
apache/ignite
1,075
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/warmup/BlockedWarmUpConfiguration.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.warmup; import org.apache.ignite.configuration.WarmUpConfiguration; /** * Configuration for {@link BlockedWarmUpStrategy}. */ public class BlockedWarmUpConfiguration implements WarmUpConfiguration { // No-op. }
apache/ignite
1,076
modules/core/src/main/java/org/apache/ignite/internal/processors/job/ComputeJobStatusEnum.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.job; /** * Compute job status. */ public enum ComputeJobStatusEnum { /** */ QUEUED, /** */ RUNNING, /** */ SUSPENDED, /** */ FAILED, /** */ CANCELLED, /** */ FINISHED; }
apache/incubator-brooklyn
1,092
brooklyn-server/core/src/main/java/org/apache/brooklyn/entity/group/Tier.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.entity.group; import org.apache.brooklyn.api.entity.Entity; /** * Intended to represent a "layer" of an application; this could be within a single location * or in multiple locations (see {@link Fabric}). */ public interface Tier extends Entity { }
apache/incubator-datalab
1,077
services/datalab-webapp-common/src/main/java/com/epam/datalab/rest/contracts/KeyAPI.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.epam.datalab.rest.contracts; public class KeyAPI { public static final String REUPLOAD_KEY = "/key/reupload"; public static final String GET_ADMIN_KEY = "key"; public static final String KEY_EXTENTION = ".pub"; private KeyAPI() { } }
apache/incubator-kie-drools
1,051
drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/RootFact.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.integrationtests.facts; public class RootFact { // Intentionally int private final int id; public RootFact(final int id) { this.id = id; } public int getId() { return id; } }
apache/incubator-kie-drools
1,068
kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateContextEntryEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.api.core.event; public interface AfterEvaluateContextEntryEvent extends DMNEvent { String getNodeName(); String getVariableName(); String getVariableId(); String getExpressionId(); Object getExpressionResult(); }
apache/incubator-kie-drools
1,094
drools-examples/src/main/java/org/drools/games/wumpus/Gold.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.games.wumpus; public class Gold extends Thing { public Gold(int row, int col) { super( row, col ); } @Override public String toString() { return "Gold [row=" + getRow() + ", col=" + getCol() + "]"; } }
apache/incubator-kie-drools
1,096
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.lang; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; @Retention(RUNTIME) @Target(TYPE) public @interface FEELType { }
apache/incubator-kie-drools
1,098
drools-mvel/src/main/java/org/drools/mvel/asm/InvokerDataProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.asm; public interface InvokerDataProvider { String getPackageName(); String getRuleClassName(); String getInternalRuleClassName(); String getMethodName(); String getInvokerClassName(); String[] getGlobals(); String[] getGlobalTypes(); }
apache/incubator-kie-kogito-apps
1,064
data-audit/data-audit-common/src/main/java/org/kie/kogito/app/audit/graphql/GraphQLSchemaBuild.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.app.audit.graphql; import java.util.Map; import graphql.GraphQL; import graphql.schema.GraphQLSchema; public record GraphQLSchemaBuild(GraphQLSchema graphQLSchema, GraphQL graphQL, Map<String, String> additionalDefinitions) { }
apache/incubator-retired-wave
1,082
wave/src/main/java/org/waveprotocol/box/server/waveserver/NoOpWaveIndexerImpl.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.box.server.waveserver; /** * @author yurize@apache.org (Yuri Zelikov) */ public class NoOpWaveIndexerImpl implements WaveIndexer { @Override public void remakeIndex() throws WaveletStateException, WaveServerException { // No op. } }
apache/incubator-wayang
1,086
wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/Copyable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wayang.core.util; /** * Implementing objects must be able to provide copies of themselves. */ public interface Copyable<Self> { /** * Create a (potentially shallow) copy of this instance. * * @return the copy */ Self copy(); }
apache/iotdb-web-workbench
1,089
backend/src/main/java/org/apache/iotdb/admin/model/metricsDo/QueryDataDo.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.admin.model.metricsDo; import org.apache.iotdb.admin.model.vo.QueryDataVO; import lombok.Data; import java.util.List; @Data public class QueryDataDo { private List<QueryDataVO> QueryDataVOs; private Long latestTimeStamp; private Integer count; }
apache/iotdb-web-workbench
1,091
backend/src/main/java/org/apache/iotdb/admin/model/vo/MetricsListDataVO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.admin.model.vo; import lombok.Data; import java.io.Serializable; @Data public class MetricsListDataVO implements Serializable { private String name; private String latestScratchTime; private String latestResult; private Integer detailAvailable; }
apache/iotdb
1,095
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/io/StreamSerializable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.io; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public interface StreamSerializable { long serialize(OutputStream stream) throws IOException; void deserialize(InputStream stream) throws IOException; }
apache/jackrabbit-oak
1,080
oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/checks/NodeStoreChecks.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.composite.checks; import org.apache.jackrabbit.oak.composite.MountedNodeStore; import org.apache.jackrabbit.oak.spi.state.NodeStore; public interface NodeStoreChecks { void check(NodeStore globalStore, MountedNodeStore mountedStore); }
apache/jackrabbit-oak
1,102
oak-run/src/main/java/org/apache/jackrabbit/oak/run/ConsoleCommand.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.run; import org.apache.jackrabbit.oak.run.commons.Command; import org.apache.jackrabbit.oak.console.Console; class ConsoleCommand implements Command { @Override public void execute(String... args) throws Exception { Console.main(args); } }
apache/jena
1,077
jena-fuseki2/jena-fuseki-geosparql/src/main/java/org/apache/jena/fuseki/geosparql/DatasetException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.fuseki.geosparql; /** * * */ public class DatasetException extends Exception { public DatasetException(String msg) { super(msg); } public DatasetException(String msg, Throwable cause) { super(msg, cause); } }
apache/jena
1,110
jena-tdb1/src/test/java/org/apache/jena/tdb1/base/block/TS_Block.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.tdb1.base.block; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses( { TestBlockMgrMem.class , TestBlockMgrDirect.class , TestBlockMgrMapped.class , TestBlockMgrTracked.class }) public class TS_Block {}
apache/jena
1,125
jena-core/src/main/java/org/apache/jena/util/Tokenizer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.util; /** * @deprecated Use {@link SimpleTokenizer}. */ @Deprecated(forRemoval = true) public class Tokenizer extends SimpleTokenizer { public Tokenizer(String str, String delim, String literalDelim, boolean returnDelims) { super(str, delim, literalDelim, returnDelims); } }
apache/johnzon
1,088
johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/model/packageformat/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. */ @JsonbNumberFormat(value = "###,###.#", locale = "de") @JsonbDateFormat(value = "E DD MMM yyyy HH:mm:ss z", locale = "it") package org.apache.johnzon.jsonb.model.packageformat; import jakarta.json.bind.annotation.JsonbDateFormat; import jakarta.json.bind.annotation.JsonbNumberFormat;
apache/juneau
1,102
juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/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. * ***************************************************************************************************************************/ /** * REST Client API */ package org.apache.juneau.rest.client;
apache/juneau
1,102
juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/remote/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. * ***************************************************************************************************************************/ /** * Remote REST API */ package org.apache.juneau.http.remote;
apache/juneau
1,102
juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/widget/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. * ***************************************************************************************************************************/ /** * HTML Widget API */ package org.apache.juneau.rest.widget;
apache/kafka
1,097
clients/src/main/java/org/apache/kafka/clients/admin/AlterConsumerGroupOffsetsOptions.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.clients.admin; import java.util.Map; /** * Options for the {@link AdminClient#alterConsumerGroupOffsets(String, Map, AlterConsumerGroupOffsetsOptions)} call. */ public class AlterConsumerGroupOffsetsOptions extends AbstractOptions<AlterConsumerGroupOffsetsOptions> { }
apache/kafka
1,103
streams/src/main/java/org/apache/kafka/streams/processor/StateRestoreCallback.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.streams.processor; /** * Restoration logic for log-backed state stores upon restart, * it takes one record at a time from the logs to apply to the restoring state. */ @FunctionalInterface public interface StateRestoreCallback { void restore(byte[] key, byte[] value); }
apache/kafka
1,104
trogdor/src/main/java/org/apache/kafka/trogdor/task/WorkerStatusTracker.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.trogdor.task; import com.fasterxml.jackson.databind.JsonNode; /** * Tracks the status of a Trogdor worker. */ public interface WorkerStatusTracker { /** * Updates the status. * * @param status The new status. */ void update(JsonNode status); }
apache/logging-log4j2
1,062
log4j-layout-template-json/src/main/java/org/apache/logging/log4j/layout/template/json/resolver/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. */ @Export @Open("org.apache.logging.log4j.core") @Version("2.21.0") package org.apache.logging.log4j.layout.template.json.resolver; import aQute.bnd.annotation.jpms.Open; import org.osgi.annotation.bundle.Export; import org.osgi.annotation.versioning.Version;
apache/maven-javadoc-plugin
1,020
src/it/projects/dependencySource-2/MJAVADOC-280-2-projects/MJAVADOC-280-2-modA/src/main/java/org/apache/maven/plugins/mjavadoc/it/moda/App.java
package org.apache.maven.plugins.mjavadoc.it.moda; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Hello world! * */ public class App { public static void main( final String[] args ) { System.out.println( "Hello World!" ); } }