repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/felix-dev | 1,065 | bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResourceCapability.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.bundlerepository.impl;
import org.apache.felix.bundlerepository.Capability;
import org.apache.felix.bundlerepository.Resource;
public interface ResourceCapability
{
Resource getResource();
Capability getCapability();
}
|
apache/fesod | 1,092 | fesod/src/main/java/org/apache/fesod/excel/metadata/Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fesod.excel.metadata;
import org.apache.fesod.excel.enums.HolderEnum;
/**
*
* Get the corresponding holder
*
*
**/
public interface Holder {
/**
* What holder is the return
*
* @return Holder enum.
*/
HolderEnum holderType();
}
|
apache/fineract | 1,046 | fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccountingProcessorForShares.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.accounting.journalentry.service;
import org.apache.fineract.accounting.journalentry.data.SharesDTO;
public interface AccountingProcessorForShares {
void createJournalEntriesForShares(SharesDTO sharesDTO);
}
|
apache/flex-utilities | 1,059 | FlexPMD/flex-pmd-java/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/NodeKindTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.adobe.ac.pmd.parser;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class NodeKindTest
{
@Test
public void testToString()
{
assertEquals( "add",
NodeKind.ADD.toString() );
}
}
|
apache/groovy | 1,057 | subprojects/groovy-groovydoc/src/test/groovy/org/codehaus/groovy/tools/groovydoc/testfiles/alias/api/Foo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.codehaus.groovy.tools.groovydoc.testfiles.alias.api;
/**
* A Foo type defined by some API, unrelated to the
* {@link org.codehaus.groovy.tools.groovydoc.testfiles.alias.lib.Foo library Foo}.
*/
public interface Foo {
}
|
apache/hadoop | 1,060 | hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/statistics/DelegationTokenStatistics.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs.s3a.statistics;
/**
* Instrumentation exported to for S3A Delegation Token support.
*/
public interface DelegationTokenStatistics extends S3AStatisticInterface {
/** A token has been issued. */
void tokenIssued();
}
|
apache/hama | 1,104 | core/src/main/java/org/apache/hama/bsp/HashPartitioner.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hama.bsp;
/**
* HashPartitioner is partitioning by the hashcode of the key.
*
*/
public class HashPartitioner<K, V> implements Partitioner<K, V> {
@Override
public int getPartition(K key, V value, int numTasks) {
return Math.abs(key.hashCode() % numTasks);
}
}
|
apache/harmony | 1,052 | classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SamplePropertyEditor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 Maxim V. Berkultsev
*/
package org.apache.harmony.beans.tests.support;
import java.beans.PropertyEditorSupport;
/**
* @author Maxim V. Berkultsev
*/
public class SamplePropertyEditor extends PropertyEditorSupport {
}
|
apache/harmony | 1,076 | classlib/modules/awt/src/main/java/common/java/awt/event/HierarchyBoundsListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Michael Danilov
*/
package java.awt.event;
import java.util.EventListener;
public interface HierarchyBoundsListener extends EventListener {
public void ancestorMoved(HierarchyEvent e);
public void ancestorResized(HierarchyEvent e);
}
|
apache/harmony | 1,112 | drlvm/src/test/regression/H3074/AnotherClass.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.harmony.drlvm.tests.regression.h3074;
public class AnotherClass {
public static boolean status = false;
public static void method() {
System.out.println("Class was loaded with " +
AnotherClass.class.getClassLoader());
status = true;
}
}
|
apache/hawq | 1,044 | src/pl/pljava/src/java/pljava/org/postgresql/pljava/internal/TupleTable.java | /*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*/
package org.postgresql.pljava.internal;
/**
* The <code>SPITupleTable</code> correspons to the internal PostgreSQL
* <code>SPITupleTable</code> type.
*
* @author Thomas Hallgren
*/
public class TupleTable
{
private final TupleDesc m_tupleDesc;
private final Tuple[] m_tuples;
TupleTable(TupleDesc tupleDesc, Tuple[] tuples)
{
m_tupleDesc = tupleDesc;
m_tuples = tuples;
}
public final TupleDesc getTupleDesc()
{
return m_tupleDesc;
}
/**
* Returns the number of <code>Tuple</code> instances contained in this table.
*/
public final int getCount()
{
return m_tuples.length;
}
/**
* Returns the <code>Tuple</code> at the given index.
* @param position Index of desired slot. First slot has index zero.
*/
public final Tuple getSlot(int position)
{
return m_tuples[position];
}
}
|
apache/hive | 1,094 | beeline/src/java/org/apache/hive/beeline/BeeLineSignalHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This source file is based on code taken from SQLLine 1.0.2
* See SQLLine notice in LICENSE
*/
package org.apache.hive.beeline;
import java.sql.Statement;
/**
* BeeLineSignalHandler.
*
*/
public interface BeeLineSignalHandler {
public void setStatement(Statement stmt);
}
|
apache/hop | 1,093 | core/src/main/java/org/apache/hop/version/EnvironmentVariableGetter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.version;
public class EnvironmentVariableGetter {
public String getEnvVarible(String name) throws Exception {
String result = System.getenv(name);
if (result == null) {
throw new RuntimeException(name + " undefined");
}
return result;
}
}
|
apache/hudi | 1,064 | hudi-client/hudi-client-common/src/main/java/org/apache/hudi/exception/HoodieSavepointException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.exception;
public class HoodieSavepointException extends HoodieException {
public HoodieSavepointException(String msg, Throwable e) {
super(msg, e);
}
public HoodieSavepointException(String msg) {
super(msg);
}
}
|
apache/iceberg | 1,095 | core/src/main/java/org/apache/iceberg/avro/SupportsRowPosition.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iceberg.avro;
import java.util.function.Supplier;
/**
* Interface for readers that accept a callback to determine the starting row position of an Avro
* split.
*/
public interface SupportsRowPosition {
void setRowPositionSupplier(Supplier<Long> posSupplier);
}
|
apache/ignite-3 | 1,059 | modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/sql/IgniteSqlKillObjectType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.sql.engine.sql;
/** Object type for a KILL statement. */
public enum IgniteSqlKillObjectType {
/** SQL Query or SQL script. */
QUERY,
/** Transaction. */
TRANSACTION,
/** Compute job. */
COMPUTE
}
|
apache/incubator-crail | 1,086 | client/src/main/java/org/apache/crail/CrailBlockLocation.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.crail;
public interface CrailBlockLocation {
public long getOffset();
public long getLength();
public String[] getNames();
public String[] getHosts();
public String[] getTopology();
public int[] getStorageTypes();
public int[] getLocationAffinities();
}
|
apache/incubator-datalab | 1,038 | services/datalab-mongo-migration/src/main/java/com/epam/datalab/migration/exception/DatalabDbMigrationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.migration.exception;
public class DatalabDbMigrationException extends RuntimeException {
public DatalabDbMigrationException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/incubator-datalab | 1,059 | services/billing-azure/src/main/java/com/epam/datalab/billing/azure/usage/InstanceData.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.billing.azure.usage;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class InstanceData {
@JsonProperty("Microsoft.Resources")
private MicrosoftResources microsoftResources;
}
|
apache/incubator-hugegraph-computer | 1,047 | computer/computer-test/src/main/java/org/apache/hugegraph/computer/driver/DriverTestSuite.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.apache.hugegraph.computer.driver;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
DriverTest.class,
ComputerOptionsTest.class,
})
public class DriverTestSuite {
}
|
apache/incubator-kie-drools | 1,056 | drools-traits/src/main/java/org/drools/traits/core/metadata/InverseManyValuedMetaProperty.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.traits.core.metadata;
import java.util.Collection;
public interface InverseManyValuedMetaProperty<T,R,C extends Collection<T>> extends InvertibleMetaProperty<T,R,C> {
public ManyValuedMetaProperty<R,T,C> getInverse();
}
|
apache/incubator-kie-drools | 1,059 | drools-core/src/main/java/org/drools/core/time/impl/CommandServiceTimerJobFactoryManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.core.time.impl;
import org.kie.api.runtime.ExecutableRunner;
public interface CommandServiceTimerJobFactoryManager extends TimerJobFactoryManager {
void setRunner(ExecutableRunner runner );
ExecutableRunner getRunner();
}
|
apache/incubator-kie-optaplanner-quickstarts | 1,047 | hello-world/src/main/java/org/acme/schooltimetabling/domain/Timeslot.java | package org.acme.schooltimetabling.domain;
import java.time.DayOfWeek;
import java.time.LocalTime;
public class Timeslot {
private DayOfWeek dayOfWeek;
private LocalTime startTime;
private LocalTime endTime;
public Timeslot(DayOfWeek dayOfWeek, LocalTime startTime, LocalTime endTime) {
this.dayOfWeek = dayOfWeek;
this.startTime = startTime;
this.endTime = endTime;
}
public Timeslot(DayOfWeek dayOfWeek, LocalTime startTime) {
this(dayOfWeek, startTime, startTime.plusMinutes(50));
}
@Override
public String toString() {
return dayOfWeek + " " + startTime;
}
// ************************************************************************
// Getters and setters
// ************************************************************************
public DayOfWeek getDayOfWeek() {
return dayOfWeek;
}
public LocalTime getStartTime() {
return startTime;
}
public LocalTime getEndTime() {
return endTime;
}
}
|
apache/incubator-retired-wave | 1,060 | wave/src/test/java/org/waveprotocol/wave/client/wavepanel/view/impl/EmptyTest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.impl;
import junit.framework.TestCase;
/**
* Empty test to make the genrules work.
*
*/
public final class EmptyTest extends TestCase {
public void testNothing() {
Math.random();
}
}
|
apache/incubator-retired-wave | 1,070 | wave/src/main/java/org/waveprotocol/wave/client/autohide/Hideable.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.autohide;
/**
* Something that can be hidden.
*
*/
public interface Hideable {
/**
* @return {@code true} if the object is showing.
*/
boolean isShowing();
/**
* Hides the object.
*/
void hide();
}
|
apache/incubator-seata | 1,063 | compatible/src/main/java/io/seata/integration/http/JakartaTransactionPropagationInterceptor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.seata.integration.http;
/**
* The type Jakarta transaction propagation interceptor.
*/
@Deprecated
public class JakartaTransactionPropagationInterceptor
extends org.apache.seata.integration.http.JakartaTransactionPropagationInterceptor {}
|
apache/inlong | 1,057 | inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/conversion/DaysToSeconds.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.common.conversion;
/**
* Convert days to seconds.
*/
public class DaysToSeconds implements ConversionStrategy {
@Override
public Integer unitConversion(Integer value) {
return value * 24 * 60 * 60;
}
}
|
apache/inlong | 1,066 | inlong-audit/audit-proxy/src/main/java/org/apache/inlong/audit/sink/pulsar/SendMessageCallBack.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.audit.sink.pulsar;
import org.apache.inlong.audit.sink.EventStat;
public interface SendMessageCallBack {
void handleMessageSendSuccess(Object msgId, EventStat es);
void handleMessageSendException(EventStat es, Object exception);
}
|
apache/iotdb-extras | 1,064 | examples/mybatisplus-generator/src/main/java/org/apache/iotdb/mapper/Table1Mapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.mapper;
import org.apache.iotdb.entity.Table1;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author IoTDB
* @since 2025-06-24
*/
public interface Table1Mapper extends BaseMapper<Table1> {}
|
apache/iotdb-extras | 1,064 | examples/mybatisplus-generator/src/main/java/org/apache/iotdb/mapper/Table2Mapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.mapper;
import org.apache.iotdb.entity.Table2;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author IoTDB
* @since 2025-06-24
*/
public interface Table2Mapper extends BaseMapper<Table2> {}
|
apache/jackrabbit-oak | 1,069 | oak-core-spi/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/Registration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.oak.spi.whiteboard;
/**
* Whiteboard service registration. Used to unregister a service when it
* is no longer available.
*/
public interface Registration {
/**
* Unregisters this service.
*/
void unregister();
}
|
apache/jackrabbit-oak | 1,079 | oak-core-spi/src/main/java/org/apache/jackrabbit/oak/cache/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.
*/
/**
* <em>For Oak internal use only. Do not use outside Oak components.</em>
*/
@Internal(since = "1.1.1")
@Version("2.0")
package org.apache.jackrabbit.oak.cache;
import org.apache.jackrabbit.oak.commons.annotations.Internal;
import org.osgi.annotation.versioning.Version; |
apache/jclouds | 1,072 | loadbalancer/src/main/java/org/jclouds/loadbalancer/strategy/ListLoadBalancersStrategy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.loadbalancer.strategy;
import org.jclouds.loadbalancer.domain.LoadBalancerMetadata;
import com.google.common.annotations.Beta;
@Beta
public interface ListLoadBalancersStrategy {
Iterable<? extends LoadBalancerMetadata> listLoadBalancers();
}
|
apache/juneau | 1,089 | juneau-core/juneau-marshall/src/main/java/org/apache/juneau/csv/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.
*/
/**
* CSV Marshalling Support
*
* <p>
* This package contains classes for marshalling POJOs to and from CSV format.
* It provides serializers and parsers for converting Java objects to CSV data
* and vice versa using Juneau's marshalling framework.
* </p>
*/
package org.apache.juneau.csv; |
apache/kafka | 1,074 | streams/src/main/java/org/apache/kafka/streams/errors/InternalTopicsAlreadySetupException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kafka.streams.errors;
public class InternalTopicsAlreadySetupException extends StreamsException {
private static final long serialVersionUID = 1L;
public InternalTopicsAlreadySetupException(final String message) {
super(message);
}
} |
apache/kafka | 1,074 | streams/src/main/java/org/apache/kafka/streams/errors/MisconfiguredInternalTopicException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kafka.streams.errors;
public class MisconfiguredInternalTopicException extends StreamsException {
private static final long serialVersionUID = 1L;
public MisconfiguredInternalTopicException(final String message) {
super(message);
}
} |
apache/lens | 1,084 | lens-server/src/main/java/org/apache/lens/server/metastore/MetastoreApp.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.lens.server.metastore;
import javax.ws.rs.ApplicationPath;
import org.apache.lens.server.BaseApp;
@ApplicationPath("/")
public class MetastoreApp extends BaseApp {
@Override
protected Class getResource() {
return MetastoreResource.class;
}
}
|
apache/linkis | 1,044 | linkis-public-enhancements/linkis-pes-common/src/main/java/org/apache/linkis/cs/common/entity/source/ContextIDParser.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.linkis.cs.common.entity.source;
import org.apache.linkis.cs.common.exception.CSErrorException;
import java.util.List;
public interface ContextIDParser {
List<String> parse(String contextId) throws CSErrorException;
}
|
apache/maven-compiler-plugin | 1,061 | src/it/multirelease-patterns/multimodule/multirelease-base/src/main/java/mr/A.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package mr;
import base.Base;
public class A implements I {
public static String getString() {
return Base.get() + " -> 8";
}
@Override
public Class<?> introducedClass() {
return java.time.LocalDateTime.class;
}
}
|
apache/maven-plugins | 1,057 | maven-compiler-plugin/src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.java | package org.maven.test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT 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.codehaus.plexus.util.StringUtils;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println( StringUtils.concatenate( args ) );
}
} |
apache/maven-plugins | 1,063 | maven-ant-plugin/src/it/test-default-selector-it/src/test/java/it/AbstractTest.java | package 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 junit.framework.TestCase;
/**
* @version $Id$
*/
public abstract class AbstractTest
extends TestCase
{
public void testFail()
throws Exception
{
fail( "This test should have been excluded." );
}
}
|
apache/metron | 1,041 | metron-platform/metron-indexing/metron-indexing-common/src/main/java/org/apache/metron/indexing/dao/IndexUpdateCallback.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.metron.indexing.dao;
import org.apache.metron.indexing.dao.update.Document;
import java.io.IOException;
public interface IndexUpdateCallback {
void postUpdate(IndexDao dao, Document doc) throws IOException;
}
|
apache/nifi | 1,025 | nifi-extension-bundles/nifi-websocket-bundle/nifi-websocket-services-api/src/main/java/org/apache/nifi/websocket/WebSocketDisconnectedMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.nifi.websocket;
public class WebSocketDisconnectedMessage extends WebSocketMessage {
public WebSocketDisconnectedMessage(final WebSocketSessionInfo sessionInfo) {
super(sessionInfo);
}
}
|
apache/nifi | 1,054 | nifi-manifest/nifi-extension-manifest-model/src/main/java/org/apache/nifi/extension/manifest/Cardinality.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.nifi.extension.manifest;
public enum Cardinality {
/**
* Exactly one resource must be specified
*/
SINGLE,
/**
* One or more resources may be supplied, as a comma-separated list
*/
MULTIPLE;
}
|
apache/nutch | 1,096 | src/java/org/apache/nutch/service/model/response/ServiceInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.nutch.service.model.response;
import java.util.List;
public class ServiceInfo {
private List<String> dumpPaths;
public List<String> getDumpPaths() {
return dumpPaths;
}
public void setDumpPaths(List<String> dumpPaths) {
this.dumpPaths = dumpPaths;
}
}
|
apache/olingo-odata4 | 1,077 | lib/client-api/src/main/java/org/apache/olingo/client/api/uri/URISearch.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.olingo.client.api.uri;
/**
* Interface for <tt>$search</tt>; obtain instances via <tt>SearchFactory</tt>.
*
* @see SearchFactory
*/
public interface URISearch {
/**
* @return String representation of this search.
*/
String build();
}
|
apache/ozone | 1,052 | hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ContainerReplicator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.ozone.container.replication;
/**
* Service to do the real replication task.
*
* An implementation should download the container and im
*/
public interface ContainerReplicator {
void replicate(ReplicationTask task);
}
|
apache/polygene-java | 1,065 | core/runtime/src/test/java/org/apache/polygene/runtime/query/model/entities/DomainEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.polygene.runtime.query.model.entities;
import org.apache.polygene.api.entity.EntityComposite;
import org.apache.polygene.runtime.query.model.Domain;
public interface DomainEntity
extends Domain, EntityComposite
{
} |
apache/polygene-java | 1,065 | core/runtime/src/test/java/org/apache/polygene/runtime/query/model/entities/FemaleEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.polygene.runtime.query.model.entities;
import org.apache.polygene.api.entity.EntityComposite;
import org.apache.polygene.runtime.query.model.Female;
public interface FemaleEntity
extends Female, EntityComposite
{
} |
apache/polygene-java | 1,070 | core/api/src/main/java/org/apache/polygene/api/composite/CompositeDescriptor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.polygene.api.composite;
import java.util.stream.Stream;
/**
* Composite Descriptor.
*/
public interface CompositeDescriptor
extends ModelDescriptor
{
Class<?> primaryType();
Stream<Class<?>> mixinTypes();
}
|
apache/qpid-jms | 1,078 | qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/ExternalMechanismFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.qpid.jms.sasl;
/**
* Create the External SASL Authentication Mechanism types.
*/
public class ExternalMechanismFactory implements MechanismFactory {
@Override
public Mechanism createMechanism() {
return new ExternalMechanism();
}
}
|
apache/ranger | 1,088 | tagsync/src/main/java/org/apache/ranger/tagsync/model/TagSource.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.ranger.tagsync.model;
import java.util.Properties;
public interface TagSource {
boolean initialize(Properties properties);
void setTagSink(TagSink sink);
String getName();
void setName(String name);
boolean start();
void stop();
}
|
apache/reef | 1,080 | lang/java/reef-tang/tang/src/test/java/org/apache/reef/tang/test/RootInterface.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.reef.tang.test;
/**
* The interface for the root of the test object graph instantiated.
*/
public interface RootInterface {
/**
* @return true, if the object graph has been instantiated correctly, false otherwise.
*/
boolean isValid();
}
|
apache/reef | 1,085 | lang/java/reef-common/src/main/java/org/apache/reef/driver/client/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Representations of the Client (i.e. the job submitter) to a Driver.
* Note that as of REEF 0.3, the client is optional and may not be available to a driver.
*/
@DriverSide
package org.apache.reef.driver.client;
import org.apache.reef.annotations.audience.DriverSide;
|
apache/samza | 1,089 | samza-api/src/main/java/org/apache/samza/operators/triggers/FiringType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.samza.operators.triggers;
/**
* The type of the {@link org.apache.samza.operators.triggers.Trigger} firing.
* Firings can be either early or late or default. Late triggers are not supported currently.
*/
public enum FiringType {
EARLY,
DEFAULT,
LATE
}
|
apache/samza | 1,094 | samza-api/src/main/java/org/apache/samza/operators/OutputStream.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.samza.operators;
import org.apache.samza.annotation.InterfaceStability;
/**
* An output stream to send messages to.
*
* @param <M> the type of message being sent to this {@link OutputStream}
*/
@InterfaceStability.Unstable
public interface OutputStream<M> {
}
|
apache/servicecomb-java-chassis | 1,031 | demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/pojoDefault/DefaultModel.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.servicecomb.demo.jaxrs.client.pojoDefault;
public class DefaultModel {
private int index;
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
}
|
apache/servicecomb-java-chassis | 1,054 | providers/provider-pojo/src/main/java/org/apache/servicecomb/provider/pojo/InvocationCaller.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.servicecomb.provider.pojo;
import java.lang.reflect.Method;
public interface InvocationCaller {
Object call(Method method, PojoConsumerMetaRefresher metaRefresher, PojoInvocationCreator invocationCreator,
Object[] args);
}
|
apache/servicecomb-java-chassis | 1,061 | core/src/main/java/org/apache/servicecomb/core/event/InvocationBusinessFinishEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.servicecomb.core.event;
import org.apache.servicecomb.core.Invocation;
public class InvocationBusinessFinishEvent extends InvocationBaseEvent {
public InvocationBusinessFinishEvent(Invocation invocation) {
super(invocation);
}
}
|
apache/servicecomb-toolkit | 1,030 | oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/TagValidatorFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.servicecomb.toolkit.oasv.validation.factory;
import org.apache.servicecomb.toolkit.oasv.validation.api.TagValidator;
public interface TagValidatorFactory extends OasObjectValidatorFactory<TagValidator> {
}
|
apache/shardingsphere | 1,044 | infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/fixture/FixtureDatabaseRuleConfiguration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.shardingsphere.infra.rule.builder.fixture;
import org.apache.shardingsphere.infra.config.rule.scope.DatabaseRuleConfiguration;
public final class FixtureDatabaseRuleConfiguration implements DatabaseRuleConfiguration {
}
|
apache/shindig | 1,076 | java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/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.
*/
/**
<h1>The Social Model API package</h1>
<p>Model interfaces that are used throughout the Social Component to transfer the model. Implementors may implement these interfaces to contain their model objects.
</p>
*/
package org.apache.shindig.social.opensocial.model;
|
apache/skywalking | 1,052 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/type/EBPFProfilingTree.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.skywalking.oap.server.core.query.type;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class EBPFProfilingTree {
private List<EBPFProfilingStackElement> elements = new ArrayList<>();
} |
apache/streampark | 1,040 | streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/mapper/RoleMenuMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.streampark.console.system.mapper;
import org.apache.streampark.console.system.entity.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {
}
|
apache/syncope | 1,057 | ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/service/SCIMAnyObjectService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.ext.scimv2.api.service;
import jakarta.ws.rs.Path;
import org.apache.syncope.ext.scimv2.api.data.SCIMAnyObject;
@Path("v2/AnyObjects")
public interface SCIMAnyObjectService extends SCIMResourceService<SCIMAnyObject> {
}
|
apache/syncope | 1,070 | client/idm/console/src/main/java/org/apache/syncope/client/console/layout/LinkedAccountForm.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.client.console.layout;
import org.apache.syncope.client.ui.commons.wizards.ModalPanelBuilder;
import org.apache.syncope.common.lib.to.LinkedAccountTO;
public interface LinkedAccountForm extends ModalPanelBuilder<LinkedAccountTO> {
}
|
apache/tapestry-5 | 1,058 | tapestry-core/src/test/java/org/apache/tapestry5/internal/services/NonVisualBean.java | // Copyright 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.internal.services;
import org.apache.tapestry5.beaneditor.NonVisual;
public class NonVisualBean
{
private int id;
private String name;
@NonVisual
public int getId()
{
return id;
}
public String getName()
{
return name;
}
public void setId(int id)
{
this.id = id;
}
public void setName(String name)
{
this.name = name;
}
}
|
apache/tapestry-5 | 1,068 | tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/mixins/InitialSort.java | package org.apache.tapestry5.integration.app1.mixins;
import org.apache.tapestry5.BindingConstants;
import org.apache.tapestry5.annotations.InjectContainer;
import org.apache.tapestry5.annotations.Parameter;
import org.apache.tapestry5.annotations.SetupRender;
import org.apache.tapestry5.corelib.components.Grid;
import org.apache.tapestry5.grid.ColumnSort;
import org.apache.tapestry5.grid.GridSortModel;
public class InitialSort {
@InjectContainer
private Grid grid;
@Parameter(required=true,allowNull=false,defaultPrefix = BindingConstants.LITERAL,name="column")
private String sortColumn;
@Parameter(allowNull = false, defaultPrefix = BindingConstants.LITERAL,name="order")
private ColumnSort sortOrder = ColumnSort.ASCENDING;
@SetupRender
void setupRender() {
GridSortModel sortModel = grid.getSortModel();
if (sortModel.getSortConstraints().isEmpty()) {
while (sortModel.getColumnSort(sortColumn) != sortOrder) {
sortModel.updateSort(sortColumn);
}
}
}
}
|
apache/tapestry-5 | 1,069 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/ContributionOrderModule4.java | // Copyright 2014 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.ioc.test;
import org.apache.tapestry5.commons.Configuration;
import org.apache.tapestry5.commons.OrderedConfiguration;
public class ContributionOrderModule4
{
public static void contributeOrderedService(OrderedConfiguration<Integer> configuration)
{
configuration.add("4", 4);
}
public static void contributeUnorderedService(Configuration<Integer> configuration)
{
configuration.add(4);
}
}
|
apache/tika | 1,087 | tika-core/src/main/java/org/apache/tika/metadata/listfilter/NoOpListFilter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.tika.metadata.listfilter;
import java.util.List;
import org.apache.tika.metadata.Metadata;
public class NoOpListFilter extends MetadataListFilter {
@Override
public List<Metadata> filter(List<Metadata> metadataList) {
return metadataList;
}
}
|
apache/tomcat | 1,109 | java/org/apache/tomcat/websocket/pojo/Constants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tomcat.websocket.pojo;
/**
* Internal implementation constants.
*/
public class Constants {
public static final String POJO_METHOD_MAPPING_KEY = "org.apache.tomcat.websocket.pojo.PojoEndpoint.methodMapping";
private Constants() {
// Hide default constructor
}
}
|
apache/tomee | 1,067 | container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/event/ResourceCreated.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.openejb.assembler.classic.event;
import org.apache.openejb.observer.Event;
@Event
public class ResourceCreated extends ResourceEvent{
public ResourceCreated(final Object resource, final String name) {
super(name, resource);
}
}
|
apache/tomee | 1,071 | mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/bval/MissingConstraintsMethodException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.tomee.microprofile.jwt.bval;
import java.lang.reflect.Method;
public class MissingConstraintsMethodException extends RuntimeException {
public MissingConstraintsMethodException(final Class<?> componentClass, final Method method) {
}
}
|
apache/tomee | 1,074 | itests/tomee-server-composer/src/main/java/org/apache/tomee/server/composer/Excludes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.tomee.server.composer;
import java.io.File;
public class Excludes {
private Excludes() {
}
public static boolean webapps(final File pathname) {
return !pathname.getAbsolutePath().contains("webapps" + File.separator);
}
}
|
apache/tomee | 1,083 | container/openejb-jee-accessors/src/test/java/org/apache/openejb/sxc/Foo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.openejb.sxc;
/**
* @version $Rev$ $Date$
*/
public class Foo {
private String message;
public static class JAXB {
public static void setMessage(final Foo foo, final String message) {
foo.message = message;
}
}
}
|
apache/trafficcontrol | 1,024 | traffic_router/core/src/main/java/org/apache/traffic_control/traffic_router/core/loc/DeepNetworkUpdater.java | /*
*
* 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.traffic_control.traffic_router.core.loc;
import java.io.File;
import java.io.IOException;
public class DeepNetworkUpdater extends NetworkUpdater {
public DeepNetworkUpdater() {
sourceCompressed = false;
tmpPrefix = "deepczf";
tmpSuffix = ".json";
}
@Override
public NetworkNode generateTree(final File dbFile, final boolean verifyOnly) throws IOException {
return NetworkNode.generateTree(dbFile, verifyOnly, true);
}
}
|
apache/uima-uimaj | 1,087 | uimaj-core/src/main/java/org/apache/uima/cas/text/AnnotationTree.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.cas.text;
/**
* Represents an annotation tree.
*/
public interface AnnotationTree<T extends AnnotationFS> {
/**
* Get the root node of the tree.
*
* @return The root node of the tree.
*/
AnnotationTreeNode<? extends T> getRoot();
}
|
apache/uniffle | 1,088 | common/src/main/java/org/apache/uniffle/common/segment/SegmentSplitter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.uniffle.common.segment;
import java.util.List;
import org.apache.uniffle.common.ShuffleDataSegment;
import org.apache.uniffle.common.ShuffleIndexResult;
public interface SegmentSplitter {
List<ShuffleDataSegment> split(ShuffleIndexResult shuffleIndexResult);
}
|
apache/uniffle | 1,088 | server/src/test/java/org/apache/uniffle/server/HealthyMockChecker.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.uniffle.server;
public class HealthyMockChecker extends Checker {
@SuppressWarnings("checkstyle:RedundantModifier")
public HealthyMockChecker(ShuffleServerConf conf) {
super(conf);
}
@Override
public boolean checkIsHealthy() {
return true;
}
}
|
google/bindiff | 1,050 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultBendEnterAction.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.editmode.states.CBendEnterState;
import java.awt.event.MouseEvent;
public class CDefaultBendEnterAction implements IStateAction<CBendEnterState> {
@Override
public void execute(final CBendEnterState state, final MouseEvent event) {}
}
|
google/bindiff | 1,050 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultEdgeHoverAction.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.editmode.states.CEdgeHoverState;
import java.awt.event.MouseEvent;
public class CDefaultEdgeHoverAction implements IStateAction<CEdgeHoverState> {
@Override
public void execute(final CEdgeHoverState state, final MouseEvent event) {}
}
|
google/binnavi | 1,067 | src/main/java/com/google/security/zynamics/binnavi/API/debug/DebuggerTargetInformationReply.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.binnavi.API.debug;
import com.google.security.zynamics.binnavi.debug.connection.packets.replies.TargetInformationReply;
public class DebuggerTargetInformationReply extends DebuggerReply {
public DebuggerTargetInformationReply(final TargetInformationReply reply) {
super(reply);
}
public TargetInformation getTargetInformation() {
return new TargetInformation(((TargetInformationReply) reply).getTargetInformation());
}
}
|
google/cdep | 1,098 | cdep/src/main/java/io/cdep/cdep/yml/cdepmanifest/Android.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.cdep.cdep.yml.cdepmanifest;
import io.cdep.annotations.Nullable;
public class Android {
@Nullable
final public HardNameDependency dependencies[];
@Nullable
final public AndroidArchive archives[];
Android() {
this.dependencies = new HardNameDependency[0];
this.archives = new AndroidArchive[0];
}
public Android(@Nullable HardNameDependency dependencies[], @Nullable AndroidArchive archives[]) {
this.dependencies = dependencies;
this.archives = archives;
}
}
|
google/guava | 1,084 | guava-testlib/src/com/google/common/collect/testing/TestQueueGenerator.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect.testing;
import com.google.common.annotations.GwtCompatible;
import java.util.Queue;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;
/**
* Creates queues, containing sample elements, to be tested.
*
* @author Jared Levy
*/
@GwtCompatible
@NullMarked
public interface TestQueueGenerator<E extends @Nullable Object> extends TestCollectionGenerator<E> {
@Override
Queue<E> create(Object... elements);
}
|
google/guava | 1,084 | guava-tests/test/com/google/common/collect/HashBasedTableColumnMapTest.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.TableCollectionTest.ColumnMapTests;
import org.jspecify.annotations.NullMarked;
@GwtCompatible
@NullMarked
public class HashBasedTableColumnMapTest extends ColumnMapTests {
public HashBasedTableColumnMapTest() {
super(false, true, true, false);
}
@Override
Table<Integer, String, Character> makeTable() {
return HashBasedTable.create();
}
}
|
google/guava | 1,084 | guava-tests/test/com/google/common/collect/TreeBasedTableColumnMapTest.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.TableCollectionTest.ColumnMapTests;
import org.jspecify.annotations.NullMarked;
@GwtCompatible
@NullMarked
public class TreeBasedTableColumnMapTest extends ColumnMapTests {
public TreeBasedTableColumnMapTest() {
super(false, true, true, false);
}
@Override
Table<Integer, String, Character> makeTable() {
return TreeBasedTable.create();
}
}
|
google/guava | 1,101 | guava/src/com/google/common/collect/FilteredMultimap.java | /*
* Copyright (C) 2012 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Predicate;
import java.util.Map.Entry;
import org.jspecify.annotations.Nullable;
/**
* An interface for all filtered multimap types.
*
* @author Louis Wasserman
*/
@GwtCompatible
interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object>
extends Multimap<K, V> {
Multimap<K, V> unfiltered();
Predicate<? super Entry<K, V>> entryPredicate();
}
|
google/guice | 1,060 | extensions/throwingproviders/src/com/google/inject/throwingproviders/CheckedProviderWithDependencies.java | /*
* Copyright (C) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.inject.throwingproviders;
import com.google.inject.spi.HasDependencies;
import com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder;
/**
* A checked provider with dependencies, so {@link HasDependencies} can be implemented when using
* the {@link SecondaryBinder#using} methods.
*
* @author sameb@google.com (Sam Berlin)
*/
interface CheckedProviderWithDependencies<T> extends CheckedProvider<T>, HasDependencies {}
|
google/guice | 1,099 | core/src/com/google/inject/multibindings/ClassMapKey.java | /*
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.inject.multibindings;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Allows {@literal @}{@link ProvidesIntoMap} to specify a class map key.
*
* @since 4.0
*/
@MapKey(unwrapValue = true)
@Documented
@Target(METHOD)
@Retention(RUNTIME)
public @interface ClassMapKey {
Class<?> value();
}
|
google/guice | 1,118 | core/src/com/google/inject/Singleton.java | /*
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.inject;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Apply this to implementation classes when you want only one instance (per {@link Injector}) to be
* reused for all injections for that binding.
*
* @author crazybob@google.com (Bob Lee)
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RUNTIME)
@ScopeAnnotation
public @interface Singleton {}
|
google/j2cl | 1,078 | benchmarking/java/com/google/j2cl/benchmarks/octane/deltablue/StayConstraint.java | /*
* Copyright 2014 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.j2cl.benchmarks.octane.deltablue;
/**
* Variables that should, with some level of preference, stay the same. Planners may exploit the
* fact that instances, if satisfied, will not change their output during plan execution. This is
* called "stay optimization".
*/
class StayConstraint extends UnaryConstraint {
StayConstraint(Variable v, Strength strength) {
super(v, strength);
}
@Override
void execute() {
// Stay constraints do nothing
}
}
|
google/j2cl | 1,109 | jre/java/java/util/function/DoubleConsumer.java | /*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package java.util.function;
import static javaemul.internal.InternalPreconditions.checkCriticalNotNull;
/**
* See <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/DoubleConsumer.html">
* the official Java API doc</a> for details.
*/
@FunctionalInterface
public interface DoubleConsumer {
void accept(double value);
default DoubleConsumer andThen(DoubleConsumer after) {
checkCriticalNotNull(after);
return value -> {
accept(value);
after.accept(value);
};
}
}
|
google/j2objc | 1,064 | translator/src/test/java/com/google/devtools/j2objc/util/ErrorUtilTest.java | package com.google.devtools.j2objc.util;
import com.google.devtools.j2objc.GenerationTest;
/**
* Test case for {@link ErrorUtil}.
*/
public class ErrorUtilTest extends GenerationTest {
public void testFullMessage() {
assertEquals(
"warning: SomeClass.java:1234: Syntax error",
ErrorUtil.getFullMessage("warning: ", "SomeClass.java:1234: Syntax error", false));
assertEquals(
"/Users/xx/SomeClass.java:1234: error: Syntax error",
ErrorUtil.getFullMessage("error: ", "/Users/xx/SomeClass.java:1234: Syntax error", true));
assertEquals(
"SomeClass.java:9: warning: Syntax error",
ErrorUtil.getFullMessage("warning: ", "SomeClass.java:9: Syntax error", true));
assertEquals(
"/S P A C E/C.java:9: error: Syntax error",
ErrorUtil.getFullMessage("error: ", "/S P A C E/C.java:9: Syntax error", true));
assertEquals(
"A.java:1: error: Some error in B.java:2: message",
ErrorUtil.getFullMessage("error: ", "A.java:1: Some error in B.java:2: message", true));
}
}
|
google/kiwi-solver | 1,102 | src/test/java/kiwi/variable/IntVarOppositeTest.java | /*
* Copyright 2016, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package kiwi.variable;
import kiwi.Solver;
import kiwi.variable.IntVar;
import kiwi.variable.IntVarOpposite;
public class IntVarOppositeTest extends IntVarTest {
@Override
public IntVar intVar(Solver solver, int min, int max) {
IntVar x = solver.intVar(min, max);
return new IntVarOpposite(new IntVarOpposite(x));
}
@Override
public IntVar intVar(Solver solver, int[] values) {
IntVar x = solver.intVar(values);
return new IntVarOpposite(new IntVarOpposite(x));
}
} |
google/kiwi-solver | 1,115 | src/main/java/kiwi/search/Decision.java | /*
* Copyright 2016, Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package kiwi.search;
/**
* Superclass to be instantiated by any search decision.
*
* <p>
* A {@code Decision} is taken by the search heuristic to drive the tree search
* on specific directions. A {@code Decision} typically impacts directly the
* domain of an {@code IntVar} by removing values from its domain.
* </p>
*/
public interface Decision {
/**
* Applies the decision.
*
* @return {@code true} if and only if the decision did not failed directly.
*/
public boolean apply();
} |
google/zetasql | 1,123 | java/com/google/zetasql/Client.java | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.zetasql;
/** Provides interface for accessing the client. */
final class Client {
private static ZetaSqlLocalServiceGrpc.ZetaSqlLocalServiceBlockingStub stub = null;
private Client() {}
/** Returns the stub that can be used to call RPC of the ZetaSQL server. */
static synchronized ZetaSqlLocalServiceGrpc.ZetaSqlLocalServiceBlockingStub getStub() {
if (stub == null) {
stub = ZetaSqlLocalServiceGrpc.newBlockingStub(ClientChannelProvider.loadChannel());
}
return stub;
}
}
|
googleapis/sdk-platform-java | 1,046 | gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/utils/CommonStrings.java | // Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES 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.gapic.composer.utils;
/** Provides Gapic common strings. */
public class CommonStrings {
public static final String PAGED_RESPONSE_TYPE_NAME_PATTERN = "%sPagedResponse";
public static final String INTERNAL_API_WARNING =
"This API is not intended for public consumption.";
public static final String SETTINGS_LITERAL = "Settings";
public static final String OPERATION_SETTINGS_LITERAL = "OperationSettings";
}
|
googlemaps/google-maps-services-java | 1,074 | src/main/java/com/google/maps/model/GeocodedWaypointStatus.java | /*
* Copyright 2015 Google Inc. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
* ANY KIND, either express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.google.maps.model;
/**
* The status result for a single {@link com.google.maps.model.GeocodedWaypoint}.
*
* @see <a href="https://developers.google.com/maps/documentation/directions/intro#StatusCodes">
* Documentation on status codes</a>
*/
public enum GeocodedWaypointStatus {
/** Indicates the response contains a valid result. */
OK,
/** Indicates no route could be found between the origin and destination. */
ZERO_RESULTS
}
|
hibernate/hibernate-orm | 1,027 | hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/java/ZonedDateTimeDescriptorTest.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.mapping.type.java;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import org.hibernate.type.descriptor.java.ZonedDateTimeJavaType;
/**
* @author Jordan Gigov
*/
public class ZonedDateTimeDescriptorTest extends AbstractDescriptorTest<ZonedDateTime> {
final ZonedDateTime original = ZonedDateTime.of( LocalDateTime.of( 2016, 10, 8, 15, 13 ), ZoneId.of( "UTC" ));
final ZonedDateTime copy = ZonedDateTime.of( LocalDateTime.of( 2016, 10, 8, 15, 13 ), ZoneId.of( "UTC" ) );
final ZonedDateTime different = ZonedDateTime.of( LocalDateTime.of( 2016, 10, 8, 15, 13 ), ZoneId.of( "EET" ) );
public ZonedDateTimeDescriptorTest() {
super( ZonedDateTimeJavaType.INSTANCE);
}
@Override
protected Data<ZonedDateTime> getTestData() {
return new Data<>( original, copy, different );
}
@Override
protected boolean shouldBeMutable() {
return false;
}
}
|
hibernate/hibernate-search | 1,027 | engine/src/main/java/org/hibernate/search/engine/search/predicate/dsl/impl/BooleanPredicateClausesStepImpl.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.search.predicate.dsl.impl;
import org.hibernate.search.engine.search.predicate.dsl.BooleanPredicateClausesStep;
import org.hibernate.search.engine.search.predicate.dsl.BooleanPredicateOptionsCollector;
import org.hibernate.search.engine.search.predicate.dsl.TypedSearchPredicateFactory;
import org.hibernate.search.engine.search.predicate.dsl.spi.SearchPredicateDslContext;
public final class BooleanPredicateClausesStepImpl<SR>
extends
AbstractBooleanPredicateClausesStep<SR, BooleanPredicateClausesStepImpl<SR>, BooleanPredicateOptionsCollector<SR, ?>>
implements BooleanPredicateClausesStep<SR, BooleanPredicateClausesStepImpl<SR>> {
public BooleanPredicateClausesStepImpl(SearchPredicateDslContext<?> dslContext,
TypedSearchPredicateFactory<SR> factory) {
super( dslContext, factory );
}
@Override
protected BooleanPredicateClausesStepImpl<SR> self() {
return this;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.