repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/solr | 1,071 | solr/core/src/java/org/apache/solr/metrics/prometheus/jvm/PrometheusJvmFormatterInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.metrics.prometheus.jvm;
public interface PrometheusJvmFormatterInfo {
/** Category of prefix Solr JVM dropwizard handler metric names */
enum JvmCategory {
buffers,
gc,
memory,
os,
threads,
classes,
system
}
}
|
apache/storm | 1,087 | storm-client/src/jvm/org/apache/storm/state/SynchronizeOutputCollector.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package org.apache.storm.state;
import java.util.List;
public class SynchronizeOutputCollector implements ISynchronizeOutputCollector {
@Override
public void add(int streamId, Object id, List<Object> tuple) {
throw new UnsupportedOperationException("Not supported yet.");
}
}
|
apache/stratos | 1,031 | components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/lifecycle/LifeCycleState.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.stratos.messaging.domain.topology.lifecycle;
import java.io.Serializable;
import java.util.Set;
public interface LifeCycleState extends Serializable {
public Set<LifeCycleState> getNextStates();
}
|
apache/struts-examples | 1,039 | form-validation/src/main/java/org/apache/struts/register/model/Person.java | package org.apache.struts.register.model;
/**
* Models a Person who registers.
* @author bruce phillips
*
*/
public class Person
{
private String firstName;
private String lastName;
private String email;
private int age;
public String getFirstName()
{
return firstName;
}
public void setFirstName(String firstName)
{
this.firstName = firstName;
}
public String getLastName()
{
return lastName;
}
public void setLastName(String lastName)
{
this.lastName = lastName;
}
public String getEmail()
{
return email;
}
public void setEmail(String email)
{
this.email = email;
}
public int getAge()
{
return age;
}
public void setAge( int age)
{
this.age = age;
}
public String toString()
{
return "First Name: " + getFirstName() + " Last Name: " + getLastName() +
" Email: " + getEmail() + " Age: " + getAge() ;
}
}
|
apache/tapestry-5 | 1,043 | genericsresolver-guava/src/test/java/org/apache/tapestry5/genericsresolverguava/internal/ServiceLocatorTest.java | // Copyright 2021 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.genericsresolverguava.internal;
import org.apache.tapestry5.commons.services.GenericsResolver;
import org.testng.Assert;
import org.testng.annotations.Test;
@Test
public class ServiceLocatorTest {
@Test
public void guava__resolver_properly_added_to_service_locator()
{
Assert.assertEquals(GenericsResolver.Provider.getInstance().getClass(), GuavaGenericsResolver.class);
}
}
|
apache/tapestry-5 | 1,071 | tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentMessages.java | // Copyright 2008 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.services;
import java.lang.annotation.*;
/**
* Marker annotation used to inject the correct {@link org.apache.tapestry5.commons.services.InvalidationEventHub} service
* responsible for validations when component message catalog (i.e., ".properties") files change.
*
* @since 5.1.0.0
*/
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ComponentMessages
{
}
|
apache/tez | 1,095 | tez-api/src/main/java/org/apache/tez/dag/api/SessionNotReady.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.api;
/**
* Exception thrown when the Tez Session is not ready
*/
public class SessionNotReady extends TezException {
private static final long serialVersionUID = -287996170505550317L;
public SessionNotReady(String message) {
super(message);
}
}
|
apache/tomcat-maven-plugin | 1,048 | tomcat7-maven-plugin/src/test/java/org/apache/tomcat/maven/it/Tomcat7DeployWarOnlyProjectIT.java | package org.apache.tomcat.maven.it;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.tomcat.maven.it.AbstractDeployWarOnlyProjectIT;
/**
* @author Olivier Lamy
*/
public class Tomcat7DeployWarOnlyProjectIT
extends AbstractDeployWarOnlyProjectIT
{
// no op
}
|
apache/tomcat-maven-plugin | 1,048 | tomcat8-maven-plugin/src/test/java/org/apache/tomcat/maven/it/Tomcat8DeployWarOnlyProjectIT.java | package org.apache.tomcat.maven.it;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.tomcat.maven.it.AbstractDeployWarOnlyProjectIT;
/**
* @author Olivier Lamy
*/
public class Tomcat8DeployWarOnlyProjectIT
extends AbstractDeployWarOnlyProjectIT
{
// no op
}
|
apache/tomee | 1,080 | examples/mp-rest-jwt-jwk/src/main/java/org/superbiz/rest/RestApplication.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.superbiz.rest;
import org.eclipse.microprofile.auth.LoginConfig;
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;
@ApplicationPath("/rest")
@LoginConfig(authMethod = "MP-JWT")
public class RestApplication extends Application {
}
|
apache/uima-uimaj | 1,085 | uimaj-core/src/main/java/org/apache/uima/spi/JCasClassProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.uima.spi;
import java.util.List;
import org.apache.uima.jcas.cas.TOP;
/**
* @deprecated Use {@link TypeSystemProvider} instead.
* @forRemoval 4.0.0
*/
@Deprecated
public interface JCasClassProvider {
List<Class<? extends TOP>> listJCasClasses();
}
|
apache/unomi | 1,057 | extensions/salesforce-connector/services/src/main/java/org/apache/unomi/sfdc/services/MappedField.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sfdc.services;
/**
* A field used in a field mapping
*/
public class MappedField {
private String name;
private String type;
private boolean readOnly;
private String source;
private boolean identifier;
}
|
apache/usergrid | 1,085 | stack/core/src/main/java/org/apache/usergrid/count/BatchSubmitter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.usergrid.count;
import java.util.Collection;
import java.util.concurrent.Future;
import org.apache.usergrid.count.common.Count;
/** @author zznate */
public interface BatchSubmitter {
Future<?> submit( Collection<Count> counts );
void shutdown();
}
|
apache/wicket | 1,063 | wicket-core-tests/src/test/java/org/apache/wicket/markup/MarkupInheritanceBase_1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.markup;
import org.apache.wicket.markup.html.WebPage;
/**
*/
public class MarkupInheritanceBase_1 extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*/
MarkupInheritanceBase_1()
{
}
}
|
apache/wicket | 1,084 | wicket-core/src/main/java/org/apache/wicket/event/IEventSink.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.event;
/**
* Objects that can receive events
*
* @author Igor Vaynberg (ivaynberg)
*/
@FunctionalInterface
public interface IEventSink
{
/**
* Called when an event is sent to this sink
*
* @param event
*/
void onEvent(IEvent<?> event);
}
|
google/binnavi | 1,074 | src/main/java/com/google/security/zynamics/binnavi/debug/debugger/synchronizers/_Doc.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.binnavi.debug.debugger.synchronizers;
/**
* Whenever a message arrives from the debug client, the synchronizers in this package update the
* simulated internal state of the BinNavi debugger object with the information from the debug
* client message.
*
* For example, if a new module was loaded in the debug client, a new {@link CMemoryModule} object
* is created and stored in the {@link CProcessManager} object of the active debugger.
*/
|
google/binnavi | 1,080 | src/main/java/com/google/security/zynamics/reil/ExpressionComparator.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.reil;
import com.google.security.zynamics.zylib.disassembly.IOperandTreeNode;
import java.util.Comparator;
/**
* Used to compare operand expressions.
*/
public class ExpressionComparator implements Comparator<IOperandTreeNode> {
/**
* Compares two operand expressions lexicographically
*/
@Override
public int compare(final IOperandTreeNode lhs, final IOperandTreeNode rhs) {
return lhs.getValue().compareTo(rhs.getValue());
}
}
|
google/closure-compiler | 1,068 | src/com/google/javascript/jscomp/parsing/parser/trees/WhileStatementTree.java | /*
* Copyright 2011 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.javascript.jscomp.parsing.parser.trees;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class WhileStatementTree extends ParseTree {
public final ParseTree condition;
public final ParseTree body;
public WhileStatementTree(SourceRange location, ParseTree condition, ParseTree body) {
super(ParseTreeType.WHILE_STATEMENT, location);
this.condition = condition;
this.body = body;
}
}
|
google/closure-compiler | 1,069 | src/com/google/javascript/jscomp/parsing/parser/trees/WithStatementTree.java | /*
* Copyright 2011 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.javascript.jscomp.parsing.parser.trees;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class WithStatementTree extends ParseTree {
public final ParseTree expression;
public final ParseTree body;
public WithStatementTree(SourceRange location, ParseTree expression, ParseTree body) {
super(ParseTreeType.WITH_STATEMENT, location);
this.expression = expression;
this.body = body;
}
}
|
google/copybara | 1,085 | java/com/google/copybara/git/gerritapi/IncludeResult.java | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.copybara.git.gerritapi;
/**
* Fields to include in the response {@link ChangeInfo}.
*/
public enum IncludeResult {
LABELS,
DETAILED_LABELS,
CURRENT_REVISION,
ALL_REVISIONS,
DOWNLOAD_COMMANDS,
CURRENT_COMMIT,
ALL_COMMITS,
CURRENT_FILES,
ALL_FILES,
DETAILED_ACCOUNTS,
REVIEWER_UPDATES,
MESSAGES,
CURRENT_ACTIONS,
CHANGE_ACTIONS,
REVIEWED,
SUBMITTABLE,
WEB_LINKS,
CHECK,
COMMIT_FOOTERS,
PUSH_CERTIFICATES,
SUBMIT_REQUIREMENTS
}
|
google/gdata-java-client | 1,076 | java/src/com/google/gdata/client/http/HttpUrlConnectionSource.java | /* Copyright (c) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.gdata.client.http;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* An object that creates new {@link HttpURLConnection}s.
*/
public interface HttpUrlConnectionSource {
/**
* Creates a new {@link HttpURLConnection} for {@code url}.
*
* @param url url to connect to
* @throws IllegalArgumentException if url is not an HTTP url
*/
HttpURLConnection openConnection(URL url) throws IOException;
}
|
google/google-ctf | 1,064 | 2017/quals/2017-re-food/Food/app/src/main/java/com/google/ctf/food/FoodActivity.java | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.ctf.food;
import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class FoodActivity extends AppCompatActivity {
public static Activity activity;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_food);
FoodActivity.activity = this;
System.loadLibrary("cook");
}
}
|
google/graphicsfuzz | 1,063 | gles-worker/android/src/com/graphicsfuzz/glesworker/AndroidProgramBinaryGetter.java | /*
* Copyright 2018 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.glesworker;
import android.opengl.GLES30;
import java.nio.ByteBuffer;
public class AndroidProgramBinaryGetter implements IProgramBinaryGetter {
@Override
public void glGetProgramBinary(int program, int[] length, int[] binaryFormat, ByteBuffer binary) {
GLES30.glGetProgramBinary(
program,
binary.remaining(),
length,
0,
binaryFormat,
0,
binary);
}
}
|
google/j2cl | 1,118 | junit/emul/java/org/junit/Before.java | package org.junit;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* When writing tests, it is common to find that several tests need similar
* objects created before they can run. Annotating a <code>public void</code> method
* with <code>@Before</code> causes that method to be run before the {@link org.junit.Test} method.
* The <code>@Before</code> methods of superclasses will be run before those of the current class,
* unless they are overridden in the current class. No other ordering is defined.
* <p>
* Here is a simple example:
* <pre>
* public class Example {
* List empty;
* @Before public void initialize() {
* empty= new ArrayList();
* }
* @Test public void size() {
* ...
* }
* @Test public void remove() {
* ...
* }
* }
* </pre>
*
* @see org.junit.BeforeClass
* @see org.junit.After
* @since 4.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Before {
}
|
google/j2objc | 1,050 | jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/RecordWriter.java | /* GENERATED SOURCE. DO NOT MODIFY. */
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
/*
******************************************************************************
* Copyright (C) 2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
******************************************************************************
*/
package android.icu.impl.duration.impl;
interface RecordWriter {
boolean open(String title);
boolean close();
void bool(String name, boolean value);
void boolArray(String name, boolean[] values);
void character(String name, char value);
void characterArray(String name, char[] values);
void namedIndex(String name, String[] names, int value);
void namedIndexArray(String name, String[] names, byte[] values);
void string(String name, String value);
void stringArray(String name, String[] values);
void stringTable(String name, String[][] values);
}
|
google/paco | 1,059 | Paco-Server/src/com/google/sampling/experiential/server/migration/jobs/AddDesktopStudyGroupTypesJob.java | package com.google.sampling.experiential.server.migration.jobs;
import com.google.sampling.experiential.server.ExceptionUtil;
import com.google.sampling.experiential.server.migration.MigrationJob;
import org.joda.time.DateTime;
import java.sql.SQLException;
import java.util.logging.Logger;
public class AddDesktopStudyGroupTypesJob implements MigrationJob {
public static final Logger log = Logger.getLogger(AddDesktopStudyGroupTypesJob.class.getName());
@Override
public boolean doMigration(String cursor, DateTime startTime, DateTime endTime) {
try {
log.info("------------------------------------------------Begin------------------------------------------------");
AddDesktopStudyGroupTypes migrator = new AddDesktopStudyGroupTypes();
migrator.insertNewGroupTypes();
log.info("------------------------------------------------End------------------------------------------------");
return true;
} catch (Exception e) {
log.warning(ExceptionUtil.getStackTraceAsString(e));
}
return false;
}
}
|
googleads/google-ads-java | 1,034 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/services/ListPaymentsAccountsRequestOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/services/payments_account_service.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.services;
public interface ListPaymentsAccountsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.services.ListPaymentsAccountsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Required. The ID of the customer to apply the PaymentsAccount list
* operation to.
* </pre>
*
* <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The customerId.
*/
java.lang.String getCustomerId();
/**
* <pre>
* Required. The ID of the customer to apply the PaymentsAccount list
* operation to.
* </pre>
*
* <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The bytes for customerId.
*/
com.google.protobuf.ByteString
getCustomerIdBytes();
}
|
googleads/google-ads-java | 1,034 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/services/ListPaymentsAccountsRequestOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/services/payments_account_service.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.services;
public interface ListPaymentsAccountsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.services.ListPaymentsAccountsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Required. The ID of the customer to apply the PaymentsAccount list
* operation to.
* </pre>
*
* <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The customerId.
*/
java.lang.String getCustomerId();
/**
* <pre>
* Required. The ID of the customer to apply the PaymentsAccount list
* operation to.
* </pre>
*
* <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The bytes for customerId.
*/
com.google.protobuf.ByteString
getCustomerIdBytes();
}
|
googleads/google-ads-java | 1,034 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/services/ListPaymentsAccountsRequestOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/services/payments_account_service.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.services;
public interface ListPaymentsAccountsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.services.ListPaymentsAccountsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Required. The ID of the customer to apply the PaymentsAccount list
* operation to.
* </pre>
*
* <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The customerId.
*/
java.lang.String getCustomerId();
/**
* <pre>
* Required. The ID of the customer to apply the PaymentsAccount list
* operation to.
* </pre>
*
* <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The bytes for customerId.
*/
com.google.protobuf.ByteString
getCustomerIdBytes();
}
|
googleapis/sdk-platform-java | 1,033 | gapic-generator-java/src/main/java/com/google/api/generator/engine/lexicon/Operator.java | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.generator.engine.lexicon;
import java.util.regex.Pattern;
// TODO(miraleung): Add logical representations for each operator so we can use them in expression
// parsing.
public class Operator {
private static final Pattern OPERATOR_PATTERN =
Pattern.compile("[\\+\\-\\*\\/%\\=\\!\\&\\|<>\\?\\:\\^]");
public static boolean containsOperator(String str) {
return OPERATOR_PATTERN.matcher(str).find();
}
}
|
googlearchive/gwt-google-apis | 1,079 | maps/maps/src/com/google/gwt/maps/jsio/client/Imported.java | /*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.maps.jsio.client;
import com.google.gwt.maps.jsio.client.impl.MetaDataName;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Allows methods declared in a type annotated with {@link BeanProperties} that
* look like bean property setter/getters to be treated as imported methods.
*/
@Documented
@MetaDataName("gwt.imported")
@Target(ElementType.METHOD)
public @interface Imported {
}
|
googlefonts/sfntly | 1,054 | java/src/com/google/typography/font/sfntly/table/opentype/component/TagOffsetRecordList.java | package com.google.typography.font.sfntly.table.opentype.component;
import com.google.typography.font.sfntly.data.ReadableFontData;
import com.google.typography.font.sfntly.data.WritableFontData;
import java.util.Iterator;
final class TagOffsetRecordList extends RecordList<TagOffsetRecord> {
TagOffsetRecordList(WritableFontData data) {
super(data);
}
TagOffsetRecordList(ReadableFontData data) {
super(data);
}
static int sizeOfListOfCount(int count) {
return RecordList.DATA_OFFSET + count * TagOffsetRecord.RECORD_SIZE;
}
TagOffsetRecord getRecordForTag(int tag) {
Iterator<TagOffsetRecord> iterator = iterator();
while (iterator.hasNext()) {
TagOffsetRecord record = iterator.next();
if (record.tag == tag) {
return record;
}
}
return null;
}
@Override
protected TagOffsetRecord getRecordAt(ReadableFontData data, int offset) {
return new TagOffsetRecord(data, offset);
}
@Override
protected int recordSize() {
return TagOffsetRecord.RECORD_SIZE;
}
}
|
hibernate/hibernate-orm | 1,055 | hibernate-core/src/main/java/org/hibernate/context/spi/TenantSchemaMapper.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.context.spi;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.hibernate.Incubating;
/**
* Obtains the name of a database schema for a given tenant identifier when
* {@linkplain org.hibernate.cfg.MultiTenancySettings#MULTI_TENANT_SCHEMA_MAPPER
* schema-based multitenancy} is enabled.
*
* @param <T> The type of the tenant id
*
* @since 7.1
*
* @author Gavin King
*/
@Incubating
public interface TenantSchemaMapper<T> {
/**
* The name of the database schema for data belonging to the tenant with the
* given identifier.
* <p>
* Called when {@value org.hibernate.cfg.MultiTenancySettings#MULTI_TENANT_SCHEMA_MAPPER}
* is enabled.
*
* @param tenantIdentifier The tenant identifier
* @return The name of the database schema belonging to that tenant
*
* @see org.hibernate.cfg.MultiTenancySettings#MULTI_TENANT_SCHEMA_MAPPER
*/
@NonNull String schemaName(@NonNull T tenantIdentifier);
}
|
hibernate/hibernate-shards | 1,091 | src/main/java/org/hibernate/shards/HasShardIdList.java | /**
* Copyright (C) 2007 Google Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
package org.hibernate.shards;
import java.util.List;
/**
* Interface for objects that can provide a List of ShardIds.
*
* @author maxr@google.com (Max Ross)
*/
public interface HasShardIdList {
/**
* @return an unmodifiable list of {@link ShardId}s
*/
List<ShardId> getShardIds();
}
|
openjdk/jdk8 | 1,094 | langtools/test/tools/javac/lambda/BadBreakContinue.java | /*
* @test /nodynamiccopyright/
* @bug 8003280
* @summary Add lambda tests
* check that break/continue is disallowed in lambda expressions
* @author Maurizio Cimadamore
* @compile/fail/ref=BadBreakContinue.out -XDrawDiagnostics BadBreakContinue.java
*/
class BadBreakContinue {
static interface SAM {
void m();
}
SAM s1 = ()-> { break; };
SAM s2 = ()-> { continue; };
SAM s3 = ()-> {
SAM s3_1 = ()-> { break; };
SAM s3_2 = ()-> { continue; };
};
void testLabelled() {
loop: while (true) {
SAM s1 = ()-> { break loop; };
SAM s2 = ()-> { continue loop; };
SAM s3 = ()-> {
SAM s3_1 = ()-> { break loop; };
SAM s3_2 = ()-> { continue loop; };
};
}
}
void testNonLabelled() {
while (true) {
SAM s1 = ()-> { break; };
SAM s2 = ()-> { continue; };
SAM s3 = ()-> {
SAM s3_1 = ()-> { break; };
SAM s3_2 = ()-> { continue; };
};
}
}
}
|
openjdk/jdk8 | 1,104 | langtools/test/tools/javac/processing/filer/foo/bar/FuBar.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 foo.bar;
@Deprecated
public class FuBar {}
|
openjdk/jdk8 | 1,105 | jdk/test/java/rmi/server/RMIClassLoader/getClassLoader/Foo.java | /*
* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class Foo implements java.io.Serializable {
}
|
openjdk/jdk8 | 1,105 | langtools/test/com/sun/javadoc/testAbsLinkPath/pkg2/C2.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.
*/
package pkg2;
/**
* Class 2
*/
public class C2 {}
|
openjdk/jdk8 | 1,109 | langtools/test/tools/javac/diags/examples/DoesntExist.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.doesnt.exist
import DoesntExist.*;
|
openjdk/jdk8 | 1,114 | jdk/test/sun/rmi/rmic/newrmic/equivalence/G1Impl.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class G1Impl implements G1 {
public void m() { }
}
|
openjdk/jdk8 | 1,116 | langtools/test/tools/javac/4980495/std/p1/A1.java | /*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p1;
public class A1 {
static public class f { };
}
|
openjdk/jdk8 | 1,116 | langtools/test/tools/javac/4980495/std/p2/A2.java | /*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p2;
public class A2 {
static public class f { };
}
|
openjdk/jtreg | 1,132 | test/debug/ImplicitCompile.java | /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @run build ImplicitCompile
*/
public class ImplicitCompile { }
|
oracle-samples/clara-examples | 1,068 | src/main/java/clara/examples/java/Customer.java | package clara.examples.java;
/**
* Java bean used in example rules.
*/
public class Customer {
/**
* Customer name;
*/
private final String name;
/**
* VIP status.
*/
private final boolean vip;
/**
* Creates a customer with the given name and status.
*/
public Customer (String name, boolean vip) {
this.name = name;
this.vip = vip;
}
/**
* Returns true if the customer is a VIP.
*/
public boolean isVIP() {
return vip;
}
/**
* Returns the name of the customer.
*/
public String getName() {
return name;
}
public String toString() {
return "VIP: " + isVIP();
}
public boolean equals(Object that) {
if (!(that instanceof Customer)) {
return false;
}
Customer _that = (Customer) that;
return this.name.equals(_that.name) &&
this.vip == _that.vip;
}
public int hashCode() {
return 17 * name.hashCode() * (vip ? 1 : 2);
}
}
|
oracle/coherence | 1,082 | prj/coherence-core/src/main/java/com/oracle/coherence/ai/VectorIndex.java | /*
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package com.oracle.coherence.ai;
import com.oracle.coherence.ai.search.BinaryQueryResult;
import com.tangosol.util.Filter;
import com.tangosol.util.MapIndex;
/**
* A custom {@link MapIndex} that maintains a vector search index.
*
* @param <KeyType> the type of the cache keys
* @param <ValueType> the type of the cache values
* @param <VectorType> the type of the vector
*/
public interface VectorIndex<KeyType, ValueType, VectorType>
extends MapIndex<KeyType, ValueType, VectorType>
{
/**
* Return the results of the query.
*
* @param vector the vector to use to perform the search
* @param k the maximum number of results to return
* @param filter an optional {@link Filter} to filter the returned results
*
* @return the search results
*/
BinaryQueryResult[] query(VectorType vector, int k, Filter<?> filter);
}
|
apache/commons-imaging | 1,086 | src/main/java/org/apache/commons/imaging/icc/IccTagDataType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.imaging.icc;
import java.io.IOException;
import org.apache.commons.imaging.ImagingException;
interface IccTagDataType {
void dump(String prefix, byte[] bytes) throws ImagingException, IOException;
String getName();
int getSignature();
}
|
apache/commons-math | 1,061 | commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/data/LotteryTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math4.legacy.stat.data;
/**
*/
public class LotteryTest extends CertifiedDataAbstractTest {
@Override
protected String getResourceName() {
return "org/apache/commons/math4/legacy/stat/data/Lottery.txt";
}
}
|
apache/commons-math | 1,062 | commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/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.
*/
/**
* Implementations of probability distributions.
*
* Many common discrete and continuous distributions are available in
* <a href="https://commons.apache.org/statistics">Commons Statistics</a>.
*/
package org.apache.commons.math4.legacy.distribution;
|
apache/crunch | 1,089 | crunch-lambda/src/main/java/org/apache/crunch/lambda/fn/SBiConsumer.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.crunch.lambda.fn;
import java.io.Serializable;
import java.util.function.BiConsumer;
/**
* Serializable version of the Java BiConsumer functional interface.
*/
@FunctionalInterface
public interface SBiConsumer<K, V> extends BiConsumer<K, V>, Serializable {
}
|
apache/cxf | 1,070 | systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/validation/BookStoreValidatable.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.systest.jaxrs.validation;
import java.util.Collection;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
public interface BookStoreValidatable {
@Valid Collection< BookWithValidation > list(@Min(1) int page);
}
|
apache/datafu | 1,089 | datafu-pig/src/main/java/datafu/pig/hash/lsh/cosine/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.
*/
/**
* Implementation of <a href="http://en.wikipedia.org/wiki/Locality-sensitive_hashing" target="_blank">Locality Sensitive Hashing</a>
* for <a href="http://en.wikipedia.org/wiki/Cosine_similarity" target="_blank">Cosine Similarity</a>.
*/
package datafu.pig.hash.lsh.cosine; |
apache/deltaspike | 1,032 | deltaspike/core/impl/obsolete/src/test/java/org/apache/deltaspike/test/core/api/alternative/global/qualifier/BaseBeanA.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.deltaspike.test.core.api.alternative.global.qualifier;
import jakarta.enterprise.context.Dependent;
/**
*
*/
@Dependent
@QualifierA(QualifierValue1.class)
public class BaseBeanA implements BaseInterface
{
}
|
apache/deltaspike | 1,032 | deltaspike/core/impl/obsolete/src/test/java/org/apache/deltaspike/test/core/api/alternative/global/qualifier/BaseBeanB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.deltaspike.test.core.api.alternative.global.qualifier;
import jakarta.enterprise.context.Dependent;
/**
*
*/
@Dependent
@QualifierB(QualifierValue1.class)
public class BaseBeanB implements BaseInterface
{
}
|
apache/directory-kerby | 1,064 | kerby-pkix/src/main/java/org/apache/kerby/cms/type/KeyDerivationAlgorithmIdentifier.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cms.type;
import org.apache.kerby.x509.type.AlgorithmIdentifier;
/**
* KeyDerivationAlgorithmIdentifier ::= AlgorithmIdentifier
*/
public class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
}
|
apache/directory-kerby | 1,064 | kerby-pkix/src/main/java/org/apache/kerby/cms/type/KeyEncryptionAlgorithmIdentifier.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.cms.type;
import org.apache.kerby.x509.type.AlgorithmIdentifier;
/**
* KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier
*/
public class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
}
|
apache/dolphinscheduler | 1,033 | dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/dto/workflowInstance/WorkflowExecuteResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.api.dto.workflowInstance;
import org.apache.dolphinscheduler.api.utils.Result;
import lombok.Data;
/**
* user List response
*/
@Data
public class WorkflowExecuteResponse extends Result {
}
|
apache/drill | 1,063 | exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/SimpleCommandResult.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.handlers;
public class SimpleCommandResult {
public boolean ok;
public String summary;
public SimpleCommandResult(boolean ok, String summary) {
super();
this.ok = ok;
this.summary = summary;
}
}
|
apache/drill | 1,087 | exec/rpc/src/main/java/org/apache/drill/exec/rpc/OutOfMemoryHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.rpc;
public interface OutOfMemoryHandler {
public static OutOfMemoryHandler DEFAULT_INSTANCE = new OutOfMemoryHandler() {
@Override
public void handle() {
throw new UnsupportedOperationException();
}
};
public void handle();
}
|
apache/dubbo-samples | 1,031 | 3-extensions/configcenter/dubbo-samples-configcenter-api/src/main/java/org/apache/dubbo/samples/server/DemoServiceImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.samples.server;
import org.apache.dubbo.samples.api.DemoService;
public class DemoServiceImpl implements DemoService {
@Override
public String sayHello() {
return "Hello, you!";
}
}
|
apache/dubbo | 1,078 | dubbo-common/src/test/java/org/apache/dubbo/common/extension/ext4/impl/Ext4Impl1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.common.extension.ext4.impl;
import org.apache.dubbo.common.extension.ext4.NoUrlParamExt;
import java.util.List;
public class Ext4Impl1 implements NoUrlParamExt {
public String bark(String name, List<Object> list) {
return null;
}
}
|
apache/dubbo | 1,078 | dubbo-common/src/test/java/org/apache/dubbo/common/extension/ext4/impl/Ext4Impl2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.common.extension.ext4.impl;
import org.apache.dubbo.common.extension.ext4.NoUrlParamExt;
import java.util.List;
public class Ext4Impl2 implements NoUrlParamExt {
public String bark(String name, List<Object> list) {
return null;
}
}
|
apache/eagle | 1,049 | eagle-core/eagle-metadata/eagle-metadata-base/src/main/java/org/apache/eagle/metadata/model/StreamSourceConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eagle.metadata.model;
import java.io.Serializable;
public interface StreamSourceConfig extends Serializable {
String getType();
Class<?> getSourceType();
Class<? extends StreamSourceConfig> getConfigType();
} |
apache/eventmesh | 1,064 | eventmesh-spi/src/test/java/org/apache/eventmesh/spi/example/AnotherSingletonExtension.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.spi.example;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class AnotherSingletonExtension implements TestAnotherSingletonExtension {
@Override
public void hello() {
log.info("I am SingletonExtension");
}
}
|
apache/felix-dev | 1,038 | ipojo/runtime/core-it/ipojo-core-lifecycle-callback-test/src/test/java/org/apache/felix/ipojo/runtime/core/Common.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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;
import org.ow2.chameleon.testing.helpers.BaseTest;
/**
* Bootstrap the test from this project
*/
public class Common extends BaseTest {
// No custom configuration required.
}
|
apache/felix-dev | 1,064 | ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/configuration/Configuration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.configuration;
/**
* A marker interface to detect configurations
*/
public @interface Configuration {
/**
* An optional name
* @return the optional configuration name
*/
String value() default "";
}
|
apache/fineract | 1,042 | fineract-investor/src/main/java/org/apache/fineract/investor/exception/ExternalAssetOwnerInitiateTransferException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.investor.exception;
public class ExternalAssetOwnerInitiateTransferException extends RuntimeException {
public ExternalAssetOwnerInitiateTransferException(String message) {
super(message);
}
}
|
apache/fineract | 1,055 | integration-tests/src/test/java/org/apache/fineract/integrationtests/datatable/DatatableEntity.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.integrationtests.datatable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@Getter
public enum DatatableEntity {
LOAN("m_loan");
private final String referencedTableName;
}
|
apache/fineract | 1,059 | fineract-provider/src/main/java/org/apache/fineract/mix/service/MixTaxonomyReadPlatformService.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.mix.service;
import java.util.List;
import org.apache.fineract.mix.data.MixTaxonomyData;
public interface MixTaxonomyReadPlatformService {
List<MixTaxonomyData> retrieveAll();
MixTaxonomyData retrieveOne(Long id);
}
|
apache/fineract | 1,062 | fineract-core/src/main/java/org/apache/fineract/infrastructure/cache/CacheApiConstants.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.infrastructure.cache;
public final class CacheApiConstants {
private CacheApiConstants() {
}
public static final String RESOURCE_NAME = "CACHE";
public static final String CACHE_TYPE_PARAMETER = "cacheType";
}
|
apache/flink | 1,076 | flink-core/src/main/java/org/apache/flink/core/execution/JobStatusChangedEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.core.execution;
import org.apache.flink.annotation.PublicEvolving;
import org.apache.flink.api.common.JobID;
/** Basic job status event. */
@PublicEvolving
public interface JobStatusChangedEvent {
JobID jobId();
String jobName();
}
|
apache/freemarker | 1,070 | freemarker-core/src/test/java/freemarker/manual/AbsoluteTemplateNameBIExample.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package freemarker.manual;
import org.junit.Test;
public class AbsoluteTemplateNameBIExample extends ExamplesTest {
@Test
public void test() throws Exception {
assertOutputForNamed("dir/AbsoluteTemplateNameBIExample-main.ftl");
}
}
|
apache/geaflow | 1,062 | geaflow/geaflow-infer/src/main/java/org/apache/geaflow/infer/exchange/serialize/IObjectPickler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.infer.exchange.serialize;
import java.io.IOException;
import java.io.OutputStream;
public interface IObjectPickler {
void pickle(Object o, OutputStream out, Pickler currentPickler) throws PickleException, IOException;
}
|
apache/gobblin | 1,049 | gobblin-modules/gobblin-compliance/src/main/java/org/apache/gobblin/compliance/restore/RestorableDataset.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.compliance.restore;
import java.io.IOException;
import org.apache.gobblin.dataset.Dataset;
/**
* @author adsharma
*/
public interface RestorableDataset extends Dataset {
void restore()
throws IOException;
}
|
apache/gravitino | 1,071 | catalogs/catalog-common/src/main/java/org/apache/gravitino/storage/GCSProperties.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.gravitino.storage;
public class GCSProperties {
// The path of service account JSON file of Google Cloud Storage.
public static final String GRAVITINO_GCS_SERVICE_ACCOUNT_FILE = "gcs-service-account-file";
private GCSProperties() {}
}
|
apache/hadoop | 1,024 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/split/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.mapreduce.split;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop | 1,024 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.mapreduce.task;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop | 1,038 | hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.LimitedPrivate({"Common", "Avro", "Chukwa", "HBase", "HDFS",
"Hive", "MapReduce", "Pig", "ZooKeeper"})
package org.apache.hadoop.classification.tools;
import org.apache.hadoop.classification.InterfaceAudience;
|
apache/hadoop | 1,067 | hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/commit/staging/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.
*/
/**
* The staging committers.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.fs.s3a.commit.staging;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/harmony | 1,058 | classlib/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/form/FormElement.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Alexander T. Simbirtsev
*/
package org.apache.harmony.x.swing.text.html.form;
import javax.swing.text.AttributeSet;
public interface FormElement {
Form getForm();
AttributeSet getAttributes();
int getElementType();
}
|
apache/harmony | 1,067 | classlib/modules/accessibility/src/main/java/javax/accessibility/AccessibleExtendedTable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Dennis Ushakov
*/
package javax.accessibility;
public interface AccessibleExtendedTable extends AccessibleTable {
int getAccessibleRow(int index);
int getAccessibleColumn(int index);
int getAccessibleIndex(int r, int c);
}
|
apache/harmony | 1,073 | classlib/modules/swing/src/main/java/common/javax/swing/event/TreeExpansionListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Anton Avtamonov
*/
package javax.swing.event;
import java.util.EventListener;
public interface TreeExpansionListener extends EventListener {
void treeExpanded(TreeExpansionEvent event);
void treeCollapsed(TreeExpansionEvent event);
}
|
apache/harmony | 1,083 | classlib/support/src/test/java/tests/support/Support_DeleteOnExitTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package tests.support;
import java.io.File;
public class Support_DeleteOnExitTest {
public static void main(java.lang.String[] args) {
for (int i = 0; i < args.length; i++) {
File f1 = new File(args[i]);
f1.deleteOnExit();
}
}
}
|
apache/helix | 1,089 | meta-client/src/main/java/org/apache/helix/metaclient/api/DataUpdater.java | package org.apache.helix.metaclient.api;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Updates the value of a key. This is used together with {@link MetaClientInterface.update(String key, DataUpdater<T> updater)}.
* @param <T>
*/
public interface DataUpdater<T extends Object> {
public T update(T currentData);
} |
apache/hertzbeat | 1,051 | hertzbeat-manager/src/main/java/org/apache/hertzbeat/manager/support/exception/MonitorDatabaseException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hertzbeat.manager.support.exception;
/**
* Database operation exception
*/
public class MonitorDatabaseException extends RuntimeException {
public MonitorDatabaseException(String message) {
super(message);
}
}
|
apache/hive | 1,092 | ql/src/java/org/apache/hadoop/hive/ql/plan/MergeTaskProperties.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hive.ql.plan;
import org.apache.hadoop.fs.Path;
import java.io.IOException;
import java.util.Properties;
public interface MergeTaskProperties {
Path getTmpLocation();
default Properties getSplitProperties() throws IOException {
return null;
}
}
|
apache/hudi | 1,055 | hudi-flink-datasource/hudi-flink2.0.x/src/main/java/org/apache/hudi/adapter/SinkFunctionProviderAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.table.connector.sink.legacy.SinkFunctionProvider;
/**
* Adapter clazz for {@link SinkFunctionProvider}.
*/
public interface SinkFunctionProviderAdapter extends SinkFunctionProvider {
}
|
apache/hudi | 1,085 | hudi-io/src/test/java/org/apache/hudi/io/storage/HoodieHBaseKVComparator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.hudi.io.storage;
import org.apache.hadoop.hbase.CellComparatorImpl;
/**
* This class is used by HBase HFile reader to read HFiles written by Hudi
* along with this comparator class
*/
public class HoodieHBaseKVComparator extends CellComparatorImpl {
}
|
apache/ignite-3 | 1,031 | modules/network/src/test/java/org/apache/ignite/internal/network/serialization/marshal/NonSerializableWithoutNoArgConstructor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.network.serialization.marshal;
class NonSerializableWithoutNoArgConstructor {
int value;
public NonSerializableWithoutNoArgConstructor(int value) {
this.value = value;
}
}
|
apache/ignite-3 | 1,073 | modules/raft/src/testFixtures/java/org/apache/ignite/raft/jraft/core/MockClosure.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.raft.jraft.core;
import org.apache.ignite.raft.jraft.Closure;
import org.apache.ignite.raft.jraft.Status;
class MockClosure implements Closure {
Status s;
@Override
public void run(Status status) {
this.s = status;
}
} |
apache/ignite-extensions | 1,054 | modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/math/functions/IgniteCurriedBiFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.util.function.BiFunction;
/**
* Serializable binary function.
*
* @see BiFunction
*/
public interface IgniteCurriedBiFunction<A, B, T> extends IgniteFunction<A, IgniteFunction<B, T>> {
}
|
apache/ignite-extensions | 1,062 | modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/math/functions/IgniteConsumer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.Consumer;
/**
* Serializable consumer.
*
* @see java.util.function.Consumer
*/
public interface IgniteConsumer<T> extends Consumer<T>, Serializable {
}
|
apache/ignite | 1,045 | modules/core/src/main/java/org/apache/ignite/internal/processors/nodevalidation/DiscoveryNodeValidationProcessor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.nodevalidation;
import org.apache.ignite.internal.processors.GridProcessor;
/**
* Node validation.
*/
public interface DiscoveryNodeValidationProcessor extends GridProcessor {
//No-op.
}
|
apache/incubator-brooklyn | 1,050 | brooklyn-server/software/base/src/test/java/org/apache/brooklyn/entity/java/ExampleVanillaMain.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.java;
public class ExampleVanillaMain {
public static void main(String[] args) throws Exception {
System.out.println("In VanillaJavaExampleMain.main");
Thread.sleep(100*1000);
}
}
|
apache/incubator-datalab | 1,057 | services/self-service/src/main/java/com/epam/datalab/backendapi/resources/dto/KeysDTO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.epam.datalab.backendapi.resources.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
@AllArgsConstructor
@Data
public class KeysDTO {
private String publicKey;
private String privateKey;
private String username;
}
|
apache/incubator-datalab | 1,057 | services/self-service/src/main/java/com/epam/datalab/backendapi/service/AccessKeyService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.epam.datalab.backendapi.service;
import com.epam.datalab.auth.UserInfo;
import com.epam.datalab.backendapi.resources.dto.KeysDTO;
@FunctionalInterface
public interface AccessKeyService {
KeysDTO generateKeys(UserInfo userInfo);
}
|
apache/incubator-gluten | 1,078 | gluten-core/src/main/java/org/apache/gluten/memory/memtarget/Spiller.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gluten.memory.memtarget;
public interface Spiller {
long spill(MemoryTarget self, Phase phase, long size);
// Order of the elements matters, since
// consumer should call spillers with in the defined order.
enum Phase {
SHRINK,
SPILL
}
}
|
apache/incubator-hugegraph | 1,056 | hugegraph-commons/hugegraph-rpc/src/test/java/org/apache/hugegraph/unit/UnitTestSuite.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.apache.hugegraph.unit;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
VersionTest.class,
ExceptionTest.class,
ServerClientTest.class
})
public class UnitTestSuite {
}
|
apache/incubator-kie-drools | 1,041 | drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Customer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.model.codegen.execmodel.domain;
public class Customer {
private String code;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
} |
apache/incubator-kie-drools | 1,056 | drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Reporter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.verifier.api;
import java.util.Set;
import org.drools.verifier.api.reporting.Issue;
public interface Reporter {
void sendReport(final Set<Issue> issues);
void sendStatus(final Status status);
void activate();
}
|
apache/incubator-retired-wave | 1,061 | wave/src/main/java/org/waveprotocol/wave/client/wavepanel/view/InlineThreadView.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.waveprotocol.wave.client.wavepanel.view;
/**
* A view interface for an inline thread.
*
*/
public interface InlineThreadView extends ThreadView, IntrinsicInlineThreadView {
@Override
ContinuationIndicatorView getReplyIndicator();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.