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
dependencymanager/org.apache.felix.dependencymanager.runtime.itest/src/org/apache/felix/dm/runtime/itest/tests/Felix4357ParallelTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.dm.runtime.itest.tests; /** * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> */ public class Felix4357ParallelTest extends Felix4357Test { public Felix4357ParallelTest() { setParallel(); } }
apache/felix-dev
1,066
ipojo/runtime/core-it/ipojo-core-service-dependency-test/src/main/java/org/apache/felix/ipojo/runtime/core/test/services/HelloService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.ipojo.runtime.core.test.services; /** * A service used to reproduce the leak bug (FELIX-4247 Memory leak with ServiceUsage and inner class (Listener * style)). */ public interface HelloService { String hello(String name); }
apache/felix-dev
1,074
ipojo/runtime/core-it/ipojo-core-factory-version-test/src/main/java/org/apache/felix/ipojo/core/tests/components/MyCons.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.ipojo.core.tests.components; import org.apache.felix.ipojo.core.tests.services.MyService; public class MyCons { private MyService[] services; public MyCons() { System.out.println("Bound to " + services.length); } }
apache/felix-dev
1,127
framework/src/main/java/org/osgi/framework/connect/package-info.java
/* * Copyright (c) OSGi Alliance (2019, 2020). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Framework Connect Package Version 1.0. * <p> * Bundles wishing to use this package must list the package in the * Import-Package header of the bundle's manifest. * <p> * Example import for consumers using the API in this package: * <p> * {@code Import-Package: org.osgi.framework.connect; version="[1.0,2.0)"} * * @author $Id: b7344ca62c5cef84330e009ce4a0704e4d83b6c0 $ */ @Version("1.0") package org.osgi.framework.connect; import org.osgi.annotation.versioning.Version;
apache/fineract
1,098
fineract-provider/src/main/java/org/apache/fineract/infrastructure/jobs/data/SchedulerDetailData.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.jobs.data; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; @Data @NoArgsConstructor @Accessors(chain = true) public class SchedulerDetailData { @SuppressWarnings("unused") private boolean active; }
apache/fineract
1,115
fineract-provider/src/main/java/org/apache/fineract/spm/domain/LookupTableRepository.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.spm.domain; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; public interface LookupTableRepository extends JpaRepository<LookupTable, Long> { List<LookupTable> findBySurvey(Survey survey); List<LookupTable> findByKey(String spmKey); }
apache/flink
1,093
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecNode.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.table.planner.plan.nodes.exec.batch; import org.apache.flink.annotation.Internal; import org.apache.flink.table.planner.plan.nodes.exec.ExecNode; /** Base class for batch {@link ExecNode}. */ @Internal public interface BatchExecNode<T> extends ExecNode<T> {}
apache/flink
1,117
flink-runtime/src/main/java/org/apache/flink/runtime/blocklist/BlockedNodeRetriever.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.blocklist; import java.util.Set; /** This class helps to retrieve the blocked nodes. */ public interface BlockedNodeRetriever { /** * Get all blocked node ids. * * @return a set containing all blocked node ids */ Set<String> getAllBlockedNodeIds(); }
apache/flink
1,120
flink-rpc/flink-rpc-core/src/main/java/org/apache/flink/runtime/rpc/StartStoppable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.rpc; /** Interface to start and stop the processing of rpc calls in the rpc server. */ public interface StartStoppable { /** Starts the processing of remote procedure calls. */ void start(); /** Stops the processing of remote procedure calls. */ void stop(); }
apache/flink
1,129
flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobStoreService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.blob; import java.io.Closeable; /** Service interface for the BlobStore which allows to close and clean up its data. */ public interface BlobStoreService extends BlobStore, Closeable { /** Cleans up the store. This entails the deletion of all blobs. */ void cleanupAllData(); }
apache/fluss
1,135
fluss-common/src/main/java/org/apache/fluss/fs/WrappingProxyCloseable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.fluss.fs; import org.apache.fluss.annotation.Internal; import org.apache.fluss.utils.WrappingProxy; import java.io.Closeable; /** {@link WrappingProxy} for {@link Closeable} that is also closeable. */ @Internal public interface WrappingProxyCloseable<T extends Closeable> extends Closeable, WrappingProxy<T> {}
apache/geaflow
1,090
geaflow-console/app/common/util/src/main/java/org/apache/geaflow/console/common/util/type/CatalogType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.util.type; public enum CatalogType { MEMORY("memory"), CONSOLE("console"); private String value; CatalogType(String value) { this.value = value; } public String getValue() { return value; } }
apache/giraph
1,135
giraph-core/src/main/java/org/apache/giraph/graph/MapperObserver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.graph; /** * Mapper observer * It can implement ContextSettable if it needs to access job counters. */ public interface MapperObserver { /** * Setup mapper. Called in the beginning of mapper setup, the only thing * which happens before is configuration preparation. */ void setup(); }
apache/gobblin
1,128
gobblin-api/src/test/java/org/apache/gobblin/util/test/ExtendedClass.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.util.test; import lombok.EqualsAndHashCode; import java.util.Random; /** * Used for {@link org.apache.gobblin.util.io.GsonInterfaceAdapterTest}. */ @EqualsAndHashCode(callSuper = true) public class ExtendedClass extends BaseClass { private final int otherField = new Random().nextInt(); }
apache/grails-core
1,101
grails-forge/grails-forge-core/src/main/java/org/grails/forge/feature/database/GormOneOfFeature.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.grails.forge.feature.database; import org.grails.forge.feature.OneOfFeature; public abstract class GormOneOfFeature extends GormFeature implements OneOfFeature { @Override public Class<?> getFeatureClass() { return GormOneOfFeature.class; } }
apache/hadoop
1,121
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/Closeable.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.io; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; /** @deprecated use java.io.Closeable */ @Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public interface Closeable extends java.io.Closeable{ }
apache/harmony
1,113
classlib/modules/auth/src/main/java/common/javax/security/auth/login/AccountException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.security.auth.login; public class AccountException extends LoginException { private static final long serialVersionUID = -2112878680072211787L; public AccountException() { super(); } public AccountException(String message) { super(message); } }
apache/harmony
1,121
classlib/modules/sound/src/main/java/javax/sound/midi/InvalidMidiDataException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.sound.midi; public class InvalidMidiDataException extends Exception { private static final long serialVersionUID = 2780771756789932067L; public InvalidMidiDataException() { super(); } public InvalidMidiDataException(String message) { super(message); } }
apache/harmony
1,121
classlib/modules/sound/src/main/java/javax/sound/midi/MidiUnavailableException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.sound.midi; public class MidiUnavailableException extends Exception { private static final long serialVersionUID = 6093809578628944323L; public MidiUnavailableException() { super(); } public MidiUnavailableException(String message) { super(message); } }
apache/harmony
1,128
classlib/modules/security/src/main/java/common/java/security/PrivateKey.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.security; /** * {@code PrivateKey} is the common interface for private keys. * * @see PublicKey */ public interface PrivateKey extends Key { /** * The {@code serialVersionUID} to be compatible with JDK1.1. */ public static final long serialVersionUID = 6034044314589513430L; }
apache/hawq
1,077
src/pl/pljava/src/java/examples/org/postgresql/example/RandomInts.java
/* * Copyright (c) 2004 TADA AB - Taby Sweden * Distributed under the terms shown in the file COPYRIGHT * found in the root directory of this distribution or at * http://eng.tada.se/osprojects/COPYRIGHT.html */ package org.postgresql.example; import java.sql.SQLException; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.Random; public class RandomInts implements Iterator { private final int m_rowCount; private final Random m_random; private int m_currentRow; public static Iterator createIterator(int rowCount) throws SQLException { return new RandomInts(rowCount); } public RandomInts(int rowCount) throws SQLException { m_rowCount = rowCount; m_random = new Random(System.currentTimeMillis()); } public boolean hasNext() { return m_currentRow < m_rowCount; } public Object next() { if(m_currentRow < m_rowCount) { ++m_currentRow; return new Integer(m_random.nextInt()); } throw new NoSuchElementException(); } public void remove() { throw new UnsupportedOperationException(); } }
apache/hbase
1,103
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CompactionWindowFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.hbase.regionserver.compactions; import org.apache.yetus.audience.InterfaceAudience; /** * For creating compaction window. */ @InterfaceAudience.Private public abstract class CompactionWindowFactory { public abstract CompactionWindow newIncomingWindow(long now); }
apache/hive
1,128
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizationContextRegion.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.ql.exec.vector; /** * VectorizationContextRegion optional interface implemented by vectorized operators * that are changing the vectorization context (region boundary operators) */ public interface VectorizationContextRegion { VectorizationContext getOutputVectorizationContext(); }
apache/hive
1,139
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/MapTezProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.ql.exec.tez; import org.apache.tez.runtime.api.ProcessorContext; /** * Subclass that is used to indicate if this is a map or reduce process */ public class MapTezProcessor extends TezProcessor { public MapTezProcessor(ProcessorContext context) { super(context); this.isMap = true; } }
apache/hop
1,128
engine/src/main/java/org/apache/hop/core/listeners/ContentChangedAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.core.listeners; /** * @see IContentChangedListener */ public class ContentChangedAdapter implements IContentChangedListener { @Override public void contentChanged(Object parentObject) { // Do nothing } @Override public void contentSafe(Object parentObject) { // Do nothing } }
apache/hudi
1,105
hudi-trino-plugin/src/test/java/io/trino/plugin/hudi/TestHudiConnectorParquetColumnNamesTest.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 io.trino.plugin.hudi; import io.trino.plugin.hudi.testing.ResourceHudiTablesInitializer; import io.trino.testing.QueryRunner; public class TestHudiConnectorParquetColumnNamesTest extends TestHudiSmokeTest { @Override protected QueryRunner createQueryRunner() throws Exception { return HudiQueryRunner.builder() .addConnectorProperty("hudi.parquet.use-column-names", "false") .setDataLoader(new ResourceHudiTablesInitializer()) .build(); } }
apache/hudi
1,122
hudi-common/src/main/java/org/apache/hudi/exception/MetadataNotFoundException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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; /** * Thrown when expected metadata is not found. */ public class MetadataNotFoundException extends HoodieException { public MetadataNotFoundException(String msg) { super(msg); } public MetadataNotFoundException(String msg, Throwable e) { super(msg, e); } }
apache/ignite-3
1,093
modules/network/src/test/resources/org/apache/ignite/internal/network/processor/InvalidParameterGetterMessage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.network.processor; import org.apache.ignite.internal.network.NetworkMessage; import org.apache.ignite.internal.network.annotations.Transferable; @Transferable(1) public interface InvalidParameterGetterMessage extends NetworkMessage { int a(int x); }
apache/ignite-3
1,108
examples/java/src/main/java/org/apache/ignite/example/serialization/AutoSerializableArg.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.example.serialization; public class AutoSerializableArg { String word; boolean isUpperCase; public AutoSerializableArg() { } AutoSerializableArg(String word, boolean isUpperCase) { this.word = word; this.isUpperCase = isUpperCase; } }
apache/ignite-3
1,134
modules/api/src/main/java/org/apache/ignite/table/mapper/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Contains user classes, mapping API classes, and mapper builders. * * @see org.apache.ignite.table.mapper.Mapper for static factory methods. * @see org.apache.ignite.table.mapper.TypeConverter interface for building interceptors for custom type casting or value transformtaion. */ package org.apache.ignite.table.mapper;
apache/ignite
1,083
modules/core/src/test/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStoreBinaryMarshallerStoreKeepBinarySelfTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.cache.store.jdbc; /** * */ public class CacheJdbcPojoStoreBinaryMarshallerStoreKeepBinarySelfTest extends CacheJdbcPojoStoreBinaryMarshallerSelfTest { /** {@inheritDoc} */ @Override protected boolean storeKeepBinary() { return true; } }
apache/ignite
1,106
modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutRemoveTxBenchmark.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.yardstick.cache; import org.apache.ignite.IgniteCache; /** * */ public class IgnitePutRemoveTxBenchmark extends IgnitePutRemoveBenchmark { /** {@inheritDoc} */ @Override protected IgniteCache<Integer, Object> cache() { return ignite().cache("tx"); } }
apache/ignite
1,121
modules/core/src/main/java/org/apache/ignite/internal/processors/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. */ /** * This package contain cache-related processors & persistence implementation. <br> * See also <a href=" * https://github.com/apache/ignite/tree/master/modules/core/src/main/java/org/apache/ignite/internal/processors/cache"> * GitHub Package Readme</a> */ package org.apache.ignite.internal.processors.cache;
apache/incubator-heron
1,123
heron/api/src/java/org/apache/heron/streamlet/IStreamletRichOperator.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.heron.streamlet; import org.apache.heron.api.bolt.IRichBolt; /** * The interface for custom operators: it can be used to create * operators based on existing Bolts (subclasses of IRichBolt). */ public interface IStreamletRichOperator<R, T> extends IStreamletOperator<R, T>, IRichBolt { }
apache/incubator-hugegraph
1,093
hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/common/BaseCommonTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.store.common; import org.junit.After; import org.junit.BeforeClass; public class BaseCommonTest { @BeforeClass public static void beforeClass() throws Exception { } @After public void teardown() throws Exception { // pass } }
apache/incubator-hugegraph
1,094
hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/ProcessStandardTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.tinkerpop; import org.apache.tinkerpop.gremlin.GraphProviderClass; import org.junit.runner.RunWith; @RunWith(ProcessBasicSuite.class) @GraphProviderClass(provider = ProcessTestGraphProvider.class, graph = TestGraph.class) public class ProcessStandardTest { }
apache/incubator-hugegraph
1,096
hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraphFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.tinkerpop; import org.apache.commons.configuration2.Configuration; import org.apache.hugegraph.HugeFactory; public class TestGraphFactory { public static TestGraph open(Configuration config) { return new TestGraph(HugeFactory.open(config)); } }
apache/incubator-kie-drools
1,083
drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaContainerBlockDescr.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.compiler.rule.builder.dialect.java.parser; import java.util.List; public interface JavaContainerBlockDescr extends JavaBlockDescr { public void addJavaBlockDescr(JavaBlockDescr descr); public List<JavaBlockDescr> getJavaBlockDescrs(); }
apache/incubator-kie-drools
1,085
drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsConflicting.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.verifier.core.relations; import org.drools.verifier.core.maps.util.HasUUID; public interface IsConflicting<T> extends HasUUID { boolean conflicts(final T other); interface Covers<T> { boolean covers(Comparable<T> other); } }
apache/incubator-kie-drools
1,117
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/URIFEELed.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.v1_1; import org.kie.dmn.model.api.DMNModelInstrumentedBase; import static org.kie.dmn.model.v1_1.KieDMNModelInstrumentedBase.URI_FEEL; public interface URIFEELed extends DMNModelInstrumentedBase { @Override default String getURIFEEL() { return URI_FEEL; } }
apache/incubator-kie-drools
1,117
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/URIFEELed.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.DMNModelInstrumentedBase; import static org.kie.dmn.model.v1_2.KieDMNModelInstrumentedBase.URI_FEEL; public interface URIFEELed extends DMNModelInstrumentedBase { @Override default String getURIFEEL() { return URI_FEEL; } }
apache/incubator-kie-drools
1,117
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/URIFEELed.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.DMNModelInstrumentedBase; import static org.kie.dmn.model.v1_3.KieDMNModelInstrumentedBase.URI_FEEL; public interface URIFEELed extends DMNModelInstrumentedBase { @Override default String getURIFEEL() { return URI_FEEL; } }
apache/incubator-kie-drools
1,117
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/URIFEELed.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.DMNModelInstrumentedBase; import static org.kie.dmn.model.v1_4.KieDMNModelInstrumentedBase.URI_FEEL; public interface URIFEELed extends DMNModelInstrumentedBase { @Override default String getURIFEEL() { return URI_FEEL; } }
apache/incubator-kie-drools
1,117
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_5/URIFEELed.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.v1_5; import org.kie.dmn.model.api.DMNModelInstrumentedBase; import static org.kie.dmn.model.v1_5.KieDMNModelInstrumentedBase.URI_FEEL; public interface URIFEELed extends DMNModelInstrumentedBase { @Override default String getURIFEEL() { return URI_FEEL; } }
apache/incubator-kie-drools
1,117
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_6/URIFEELed.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.v1_6; import org.kie.dmn.model.api.DMNModelInstrumentedBase; import static org.kie.dmn.model.v1_6.KieDMNModelInstrumentedBase.URI_FEEL; public interface URIFEELed extends DMNModelInstrumentedBase { @Override default String getURIFEEL() { return URI_FEEL; } }
apache/incubator-kie-drools
1,126
kie-api/src/main/java/org/kie/api/logger/KieRuntimeLogger.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.api.logger; /** * A logger for audit events. */ public interface KieRuntimeLogger { /** * Release any resources allocated within the logger such as file * handles, network connections, etc. * It is a programming error to append to a closed appender. */ void close(); }
apache/incubator-kie-kogito-runtimes
1,119
api/kogito-api/src/main/java/org/kie/kogito/ProcessInput.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Retention(RUNTIME) @Target(TYPE) public @interface ProcessInput { String processName(); }
apache/incubator-seata
1,095
saga/seata-saga-engine/src/main/java/org/apache/seata/saga/engine/expression/ExpressionFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seata.saga.engine.expression; /** * Expression Factory * */ public interface ExpressionFactory { /** * create expression * * @param expression the expression * @return the expression */ Expression createExpression(String expression); }
apache/incubator-weex
1,119
android/sdk/src/main/java/org/apache/weex/appfram/clipboard/IWXClipboard.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.weex.appfram.clipboard; import android.support.annotation.Nullable; import org.apache.weex.bridge.JSCallback; /** * Created by yiyuan.zhangyy(xingjiu) <br/> */ interface IWXClipboard { public void setString(String text); public void getString(@Nullable JSCallback callback); }
apache/iotdb
1,059
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/constant/IllegalCompactionSelectorNameException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.db.storageengine.dataregion.compaction.selector.constant; public class IllegalCompactionSelectorNameException extends RuntimeException { public IllegalCompactionSelectorNameException(String msg) { super(msg); } }
apache/iotdb
1,098
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/exception/metadata/cache/MNodeNotCachedException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.db.exception.metadata.cache; import org.apache.iotdb.commons.exception.MetadataException; public class MNodeNotCachedException extends MetadataException { public MNodeNotCachedException() { super("MNode has not been cached or has been evicted."); } }
apache/jackrabbit-oak
1,100
oak-benchmarks/src/main/java/org/apache/jackrabbit/oak/benchmark/OrderedIndexQueryNoIndexTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.benchmark; /** * Benchmark the query performance of an ORDER BY clause when No index are involved */ public class OrderedIndexQueryNoIndexTest extends OrderedIndexQueryBaseTest { @Override String getQuery() { return QUERY_WITH_ORDER; } }
apache/jackrabbit-oak
1,133
oak-lucene/src/main/java/org/apache/lucene/util/Attribute.java
/* * COPIED FROM APACHE LUCENE 4.7.2 * * Git URL: git@github.com:apache/lucene.git, tag: releases/lucene-solr/4.7.2, path: lucene/core/src/java * * (see https://issues.apache.org/jira/browse/OAK-10786 for details) */ package org.apache.lucene.util; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Base interface for attributes. */ public interface Attribute { }
apache/jackrabbit
1,120
jackrabbit-spi2jcr/src/test/java/org/apache/jackrabbit/spi2jcr/jcr2spi/TestAll.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.spi2jcr.jcr2spi; import junit.framework.TestCase; import junit.framework.Test; import org.apache.jackrabbit.jcr2spi.Jcr2SpiTestSuite; /** <code>TestAll</code>... */ public class TestAll extends TestCase { public static Test suite() { return new Jcr2SpiTestSuite(); } }
apache/jclouds
1,129
common/googlecloud/src/main/java/org/jclouds/googlecloud/domain/ListPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.googlecloud.domain; import java.util.List; import org.jclouds.javax.annotation.Nullable; /** An immutable list that includes a token, if there is another page available. */ public interface ListPage<T> extends List<T> { /** Indicates more data is available. */ @Nullable String nextPageToken(); }
apache/jena
1,132
jena-tdb2/src/test/java/org/apache/jena/tdb2/sys/TestNormalizationTDB2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.tdb2.sys; import org.apache.jena.graph.Node; import org.apache.jena.riot.process.AbstractTestNormalization; public class TestNormalizationTDB2 extends AbstractTestNormalization { @Override protected Node normalize(Node node) { return NormalizeTermsTDB2.normalizeTDB2(node); } }
apache/jena
1,135
jena-core/src/main/java/org/apache/jena/shared/NotFoundException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.shared; /** Exception thrown when an attempt is made find something and it is not found. */ public class NotFoundException extends JenaException { /** The entity <code>name</code> does not exist. */ public NotFoundException( String name ) { super( name ); } }
apache/jena
1,144
jena-arq/src/test/java/org/apache/jena/query/TS_Query.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.query; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; @Suite @SelectClasses({ TestParameterizedSparqlString.class , TestResultSetFormatter.class , TestQueryCloningEssentials.class , TestQueryCloningCornerCases.class }) public class TS_Query { }
apache/joshua
1,152
src/main/java/org/apache/joshua/oracle/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. */ /** * Provides for extracting the target string from a hypergraph * that most closely matches a reference sentence. Much of the * code in this package is based on descriptions in Adam * Lopez's <a href="http://homepages.inf.ed.ac.uk/alopez/papers/adam.lopez.dissertation.pdf"> * doctoral thesis</a>. */ package org.apache.joshua.oracle;
apache/jspwiki
1,123
jspwiki-event/src/test/java/org/apache/wiki/event/TestWikiEventListener.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 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.wiki.event; public class TestWikiEventListener implements WikiEventListener { int invoked; /** {@inheritDoc} */ @Override public void actionPerformed( final WikiEvent event ) { invoked++; } public int getInvoked() { return invoked; } }
apache/kylin
1,115
src/core-metadata/src/main/java/org/apache/kylin/rest/security/NoneBCryptPasswordEncoder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.kylin.rest.security; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; public class NoneBCryptPasswordEncoder extends BCryptPasswordEncoder { @Override public boolean matches(CharSequence rawPassword, String encodedPassword) { return true; } }
apache/kylin
1,125
src/core-common/src/main/java/org/apache/kylin/common/storage/IStorageProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.kylin.common.storage; import java.io.IOException; import org.apache.hadoop.fs.ContentSummary; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; public interface IStorageProvider { ContentSummary getContentSummary(FileSystem fileSystem, Path path) throws IOException; }
apache/linkis
1,069
linkis-computation-governance/linkis-client/linkis-cli/src/main/java/org/apache/linkis/cli/application/interactor/command/SpecialMap.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.cli.application.interactor.command; import java.util.HashMap; import java.util.Map; public class SpecialMap<K, V> extends HashMap<K, V> { public SpecialMap() {} public SpecialMap(Map<? extends K, ? extends V> m) { super(m); } }
apache/linkis
1,085
linkis-public-enhancements/linkis-cs-server/src/main/java/org/apache/linkis/cs/server/protocol/ContextHistoryProtocol.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.server.protocol; import org.apache.linkis.cs.server.enumeration.ServiceType; public class ContextHistoryProtocol extends AbstractHttpRequestProtocol { @Override public String getServiceName() { return ServiceType.CONTEXT_HISTORY.name(); } }
apache/maven
1,104
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/BatchModeMavenTransferListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.maven.cli.transfer; import java.io.PrintStream; /** * BatchModeMavenTransferListener */ @Deprecated public class BatchModeMavenTransferListener extends AbstractMavenTransferListener { public BatchModeMavenTransferListener(PrintStream out) { super(out); } }
apache/mina-sshd
1,121
sshd-common/src/main/java/org/apache/sshd/common/random/AbstractRandom.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.sshd.common.random; /** * @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> */ public abstract class AbstractRandom implements Random { protected AbstractRandom() { super(); } @Override public String toString() { return getName(); } }
apache/myfaces
1,135
api/src/main/java/jakarta/faces/component/html/_LabelProperty.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package jakarta.faces.component.html; import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty; interface _LabelProperty { /** * A display name for this component. * * @return the new label value * @since 1.2 */ @JSFProperty public abstract String getLabel(); }
apache/myfaces
1,139
api/src/main/java/jakarta/faces/component/html/_AltProperty.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package jakarta.faces.component.html; import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty; interface _AltProperty { /** * HTML: Specifies alternative text that can be used by a browser that can't show this element. * */ @JSFProperty public abstract String getAlt(); }
apache/myfaces
1,142
api/src/main/java/jakarta/faces/view/facelets/MetaRule.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package jakarta.faces.view.facelets; /** * A potential rule for Metadata on the passed MetadataTarget */ public abstract class MetaRule { /** * @param name * @param attribute * @param meta * @return */ public abstract Metadata applyRule(String name, TagAttribute attribute, MetadataTarget meta); }
apache/nifi
1,065
nifi-extension-bundles/nifi-mqtt-bundle/nifi-mqtt-processors/src/main/java/org/apache/nifi/processors/mqtt/common/ReceivedMqttMessageHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.processors.mqtt.common; public interface ReceivedMqttMessageHandler { /** * Handler to process received MQTT message * * @param message to process */ void handleReceivedMessage(ReceivedMqttMessage message); }
apache/nifi
1,110
nifi-commons/nifi-security-ssl/src/main/java/org/apache/nifi/security/ssl/SslContextBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.security.ssl; import javax.net.ssl.SSLContext; /** * Builder interface for instances of javax.net.ssl.SSLContext */ public interface SslContextBuilder { /** * Build SSLContext using configured properties * * @return SSLContext */ SSLContext build(); }
apache/ozone
1,103
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/request/validation/RequestProcessingPhase.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.request.validation; /** * Processing phase defines when a request validator should run. * * There are two hooking point at the moment, before and after the generic * request processing code. */ public enum RequestProcessingPhase { PRE_PROCESS, POST_PROCESS }
apache/ozone
1,113
hadoop-hdds/rocks-native/src/main/java/org/apache/hadoop/hdds/utils/NativeConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.hdds.utils; /** * Native Constants. */ public final class NativeConstants { public static final String ROCKS_TOOLS_NATIVE_LIBRARY_NAME = "ozone_rocksdb_tools"; public static final String ROCKS_TOOLS_NATIVE_PROPERTY = "rocks_tools_native"; private NativeConstants() { } }
apache/ozone
1,113
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OmUpgradeAction.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.om.upgrade; import org.apache.hadoop.ozone.om.OzoneManager; import org.apache.hadoop.ozone.upgrade.LayoutFeature.UpgradeAction; /** * Upgrade Action for OzoneManager which takes in an 'OM' instance. */ public interface OmUpgradeAction extends UpgradeAction<OzoneManager> { }
apache/ozone
1,129
hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/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. */ /** * Ozone Filesystem. * * Except for the exceptions, it should all be hidden as implementation details. */ @InterfaceAudience.Private @InterfaceStability.Evolving package org.apache.hadoop.fs.ozone; import org.apache.hadoop.hdds.annotation.InterfaceAudience; import org.apache.hadoop.hdds.annotation.InterfaceStability;
apache/paimon
1,128
paimon-common/src/main/java/org/apache/paimon/lookup/LookupStoreReader.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.paimon.lookup; import javax.annotation.Nullable; import java.io.Closeable; import java.io.IOException; /** Reader, lookup value by key bytes. */ public interface LookupStoreReader extends Closeable { /** Lookup value by key. */ @Nullable byte[] lookup(byte[] key) throws IOException; }
apache/paimon
1,130
paimon-format/src/main/java/org/apache/paimon/format/avro/FieldWriter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.paimon.format.avro; import org.apache.paimon.data.DataGetters; import org.apache.avro.io.Encoder; import java.io.IOException; /** Writer to write field to Avro {@link Encoder}. */ public interface FieldWriter { void write(DataGetters container, int index, Encoder encoder) throws IOException; }
apache/pdfbox
1,121
pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fixup/processor/AbstractProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.pdfbox.pdmodel.fixup.processor; import org.apache.pdfbox.pdmodel.PDDocument; public abstract class AbstractProcessor implements PDDocumentProcessor { protected final PDDocument document; protected AbstractProcessor(PDDocument document) { this.document = document; } }
apache/pekko-http
1,118
http-core/src/main/java/org/apache/pekko/http/javadsl/model/headers/AcceptCharset.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * license agreements; and to You under the Apache License, version 2.0: * * https://www.apache.org/licenses/LICENSE-2.0 * * This file is part of the Apache Pekko project, which was derived from Akka. */ /* * Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com> */ package org.apache.pekko.http.javadsl.model.headers; import org.apache.pekko.http.impl.util.Util; import org.apache.pekko.http.javadsl.model.HttpCharsetRange; /** * Model for the `Accept-Charset` header. Specification: * http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-5.3.3 */ public abstract class AcceptCharset extends org.apache.pekko.http.scaladsl.model.HttpHeader { public abstract Iterable<HttpCharsetRange> getCharsetRanges(); public static AcceptCharset create(HttpCharsetRange... charsetRanges) { return new org.apache.pekko.http.scaladsl.model.headers.Accept$minusCharset( Util.<HttpCharsetRange, org.apache.pekko.http.scaladsl.model.HttpCharsetRange>convertArray( charsetRanges)); } }
apache/phoenix
1,126
phoenix-core-client/src/main/java/org/apache/phoenix/compile/MutationPlan.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.phoenix.compile; import java.sql.SQLException; import org.apache.phoenix.execute.MutationState; import org.apache.phoenix.schema.TableRef; public interface MutationPlan extends StatementPlan { MutationState execute() throws SQLException; TableRef getTargetRef(); QueryPlan getQueryPlan(); }
apache/pinot
1,105
pinot-controller/src/main/java/org/apache/pinot/controller/api/exception/NoTaskScheduledException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.pinot.controller.api.exception; public class NoTaskScheduledException extends RuntimeException { public NoTaskScheduledException(String message) { super(message); } public NoTaskScheduledException(String message, Throwable cause) { super(message, cause); } }
apache/pinot
1,105
pinot-controller/src/main/java/org/apache/pinot/controller/api/exception/UnknownTaskTypeException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.pinot.controller.api.exception; public class UnknownTaskTypeException extends RuntimeException { public UnknownTaskTypeException(String message) { super(message); } public UnknownTaskTypeException(String message, Throwable cause) { super(message, cause); } }
apache/pinot
1,119
pinot-minion/src/main/java/org/apache/pinot/minion/exception/TaskCancelledException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.pinot.minion.exception; /** * The class <code>TaskCancelledException</code> defines the exception should be thrown when task has been cancelled. */ public class TaskCancelledException extends RuntimeException { public TaskCancelledException(String message) { super(message); } }
apache/polygene-java
1,109
core/testsupport/src/main/java/org/apache/polygene/test/entity/model/legal/WillAmount.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.test.entity.model.legal; import java.math.BigDecimal; import org.apache.polygene.api.property.Property; import org.apache.polygene.test.entity.model.monetary.Currency; public interface WillAmount extends WillBenefit { Property<Currency> amount(); }
apache/qpid-jms
1,126
qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/MechanismFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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; /** * Interface for all SASL authentication mechanism implementations. */ public interface MechanismFactory { /** * Creates an instance of the authentication mechanism implementation. * * @return a new Mechanism instance. */ Mechanism createMechanism(); }
apache/reef
1,123
lang/java/reef-io/src/main/java/org/apache/reef/io/network/naming/NameResolver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.io.network.naming; import org.apache.reef.io.naming.Naming; import org.apache.reef.tang.annotations.DefaultImplementation; import org.apache.reef.wake.Stage; /** * NameClient interface. */ @DefaultImplementation(NameClient.class) public interface NameResolver extends Stage, Naming { }
apache/rocketmq-eventbridge
1,099
adapter/api/src/main/java/org/apache/rocketmq/eventbridge/adapter/api/dto/data/EventDTO.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.rocketmq.eventbridge.adapter.api.dto.data; import com.google.gson.annotations.SerializedName; import lombok.Data; import org.apache.rocketmq.eventbridge.adapter.api.dto.BaseDTO; @Data public class EventDTO extends BaseDTO { @SerializedName("Id") private String id; }
apache/royale-compiler
1,129
swfutils/src/main/java/flash/swf/types/GradientBevelFilter.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package flash.swf.types; /** * A value object for gradient bevel filter data. */ public class GradientBevelFilter extends BevelFilter { public final static int ID = 7; public int getID() { return ID; } public int numcolors; public int[] gradientColors; public int[] gradientRatio; }
apache/seatunnel-web
1,087
seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/dto/user/UserLoginLogDto.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.seatunnel.app.domain.dto.user; import lombok.Builder; import lombok.Data; @Data @Builder public class UserLoginLogDto { private Long id; private Integer userId; private String token; private Boolean tokenStatus; private Long workspaceId; }
apache/seatunnel
1,064
seatunnel-connectors-v2/connector-mongodb/src/main/java/org/apache/seatunnel/connectors/seatunnel/mongodb/source/split/MongoSplitStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.seatunnel.connectors.seatunnel.mongodb.source.split; import java.util.List; /** MongoSplitStrategy defines how to partition a Mongo data set into {@link MongoSplit}s. */ public interface MongoSplitStrategy { List<MongoSplit> split(); }
apache/sentry
1,092
sentry-service/sentry-service-server/src/test/java/org/apache/sentry/service/thrift/SentryStateBankTestHelper.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 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.sentry.service.thrift; /** * */ public class SentryStateBankTestHelper { public static void clearAllStates() { SentryStateBank.clearAllStates(); } public static void resetComponentState(String component) { SentryStateBank.resetComponentState(component); } }
apache/shardingsphere-elasticjob
1,071
ecosystem/executor/script/src/main/java/org/apache/shardingsphere/elasticjob/script/props/ScriptJobProperties.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.elasticjob.script.props; /** * Script job properties. */ public final class ScriptJobProperties { /** * Script command line to be executed. */ public static final String SCRIPT_KEY = "script.command.line"; }
apache/shenyu
1,125
shenyu-admin/src/test/java/org/apache/shenyu/admin/model/vo/UserRoleVOTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.shenyu.admin.model.vo; import org.apache.shenyu.admin.AbstractReflectGetterSetterTest; /** * Test cases for {@link UserRoleVO}. */ public class UserRoleVOTest extends AbstractReflectGetterSetterTest { @Override protected Class<?> getTargetClass() { return UserRoleVO.class; } }
apache/sis
1,133
endorsed/src/org.apache.sis.util/main/org/apache/sis/system/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. */ /** * A set of system-wide services for the SIS implementation. * * <STRONG>Do not use!</STRONG> * * This package is for internal use by SIS only. Classes in this package * may change in incompatible ways in any future version without notice. * * @author Martin Desruisseaux (Geomatys) */ package org.apache.sis.system;
apache/skywalking-java
1,079
apm-application-toolkit/apm-toolkit-meter/src/test/java/org/apache/skywalking/apm/toolkit/meter/GaugeTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.apm.toolkit.meter; import org.junit.Assert; import org.junit.Test; public class GaugeTest { @Test public void testBuild() { Assert.assertNotNull(MeterFactory.gauge("test_gauge1", () -> 1d).tag("k1", "v1").build()); } }
apache/solr
1,137
solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.cloud; /* * Implementation moved to AbstractChaosMonkeySafeLeaderTestBase as is used by HDFS contrib module test */ public class ChaosMonkeySafeLeaderTest extends AbstractChaosMonkeySafeLeaderTestBase { @Override protected String getDirectoryFactory() { return "solr.StandardDirectoryFactory"; } }
apache/struts
1,103
plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/ActionMessageHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.struts2.views.java.simple; public class ActionMessageHandler extends AbstractMessageListHandler { protected String getListExpression() { return "actionMessages"; } @Override protected String getDefaultClass() { return "actionMessage"; } }
apache/struts
1,128
core/src/main/java/org/apache/struts2/inject/InternalFactory.java
/** * Copyright (C) 2006 Google Inc. * <p> * 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 * </p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.struts2.inject; import java.io.Serializable; /** * Creates objects which will be injected. * * @author crazybob@google.com (Bob Lee) */ interface InternalFactory<T> extends Serializable { /** * Creates an object to be injected. * * @param context of this injection * @return instance to be injected */ T create(InternalContext context); /** * Returns a class of <T> * * @return class of the object */ Class<? extends T> type(); }
apache/struts
1,139
core/src/test/java/org/apache/struts2/test/TestArrayBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.struts2.test; import java.util.ArrayList; import java.util.List; public class TestArrayBean { private List<String> persons = new ArrayList<>(); public void setPersons(List<String> persons) { this.persons = persons; } public List<String> getPersons() { return persons; } }
apache/syncope
1,100
core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/WAConfigDataBinder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.core.provisioning.api.data; import org.apache.syncope.common.lib.Attr; import org.apache.syncope.core.persistence.api.entity.am.WAConfigEntry; public interface WAConfigDataBinder { Attr get(WAConfigEntry waConfigEntry); WAConfigEntry set(Attr value); }