repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/harmony | 1,124 | classlib/modules/concurrent/src/main/java/java/util/concurrent/TimeoutException.java | /*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/licenses/publicdomain
*/
package java.util.concurrent;
/**
* Exception thrown when a blocking operation times out. Blocking
* operations for which a timeout is specified need a means to
* indicate that the timeout has occurred. For many such operations it
* is possible to return a value that indicates timeout; when that is
* not possible or desirable then <tt>TimeoutException</tt> should be
* declared and thrown.
*
* @since 1.5
* @author Doug Lea
*/
public class TimeoutException extends Exception {
private static final long serialVersionUID = 1900926677490660714L;
/**
* Constructs a <tt>TimeoutException</tt> with no specified detail
* message.
*/
public TimeoutException() {}
/**
* Constructs a <tt>TimeoutException</tt> with the specified detail
* message.
*
* @param message the detail message
*/
public TimeoutException(String message) {
super(message);
}
}
|
apache/hbase | 1,127 | hbase-server/src/main/java/org/apache/hadoop/hbase/master/region/UpdateMasterRegion.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.master.region;
import java.io.IOException;
import org.apache.hadoop.hbase.regionserver.HRegion;
import org.apache.yetus.audience.InterfaceAudience;
@InterfaceAudience.Private
@FunctionalInterface
public interface UpdateMasterRegion {
void update(HRegion region) throws IOException;
}
|
apache/hertzbeat | 1,079 | template-marketplace/hertzbeat-template-hub/src/main/java/org/apache/hertzbeat/templatehub/service/impl/DataConflictException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hertzbeat.templatehub.service.impl;
/**
* data conflict exception
* @author tomsun28
* @date 22:55 2020-04-27
*/
public class DataConflictException extends RuntimeException {
public DataConflictException(String msg) {
super(msg);
}
}
|
apache/hive | 1,133 | ql/src/test/org/apache/hadoop/hive/ql/exec/vector/util/FakeCaptureOutputDesc.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.util;
import org.apache.hadoop.hive.ql.plan.AbstractOperatorDesc;
/**
* Descriptor used for the FakeCaptureOutputOperator.
* Used in unit test only.
*
*/
public class FakeCaptureOutputDesc extends AbstractOperatorDesc {
private static final long serialVersionUID = 1L;
}
|
apache/hive | 1,143 | serde/src/java/org/apache/hadoop/hive/serde2/ColumnSet.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.serde2;
import java.util.ArrayList;
/**
* ColumnSet.
*
*/
public class ColumnSet {
public ArrayList<String> col;
public ColumnSet() {
}
public ColumnSet(ArrayList<String> col) {
this();
this.col = col;
}
@Override
public String toString() {
return col.toString();
}
}
|
apache/hop | 1,139 | plugins/tech/aws/src/main/java/org/apache/hop/vfs/s3/s3n/vfs/S3NFileObject.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.vfs.s3.s3n.vfs;
import org.apache.commons.vfs2.provider.AbstractFileName;
import org.apache.hop.vfs.s3.s3common.S3CommonFileObject;
public class S3NFileObject extends S3CommonFileObject {
public S3NFileObject(final AbstractFileName name, final S3NFileSystem fileSystem) {
super(name, fileSystem);
}
}
|
apache/hudi | 1,121 | hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/storage/HoodieSparkFileReader.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.io.storage;
import org.apache.spark.sql.catalyst.InternalRow;
/**
* Marker interface for every {@link HoodieFileReader} reading in Catalyst (Spark native types, i.e.,
* producing {@link InternalRow}s)
*/
public interface HoodieSparkFileReader extends HoodieFileReader<InternalRow> {}
|
apache/ignite-3 | 1,051 | migration-tools/tools/e2e-tests-framework/framework-core/src/main/java/org/apache/ignite/migrationtools/tests/e2e/framework/core/ExampleBasedCacheTestProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.migrationtools.tests.e2e.framework.core;
import java.util.Collection;
/** ExampleBasedCacheTestProvider. */
public interface ExampleBasedCacheTestProvider {
Collection<ExampleBasedCacheTest> provideTestClasses();
}
|
apache/ignite-3 | 1,095 | modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/client/ItNullsEmbeddedClientTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.runner.app.client;
import org.apache.ignite.Ignite;
/**
* Embedded client nulls in operations test.
*/
public class ItNullsEmbeddedClientTest extends ItNullsThinClientTest {
@Override
protected Ignite ignite() {
return server();
}
}
|
apache/ignite-3 | 1,121 | modules/network-api/src/main/java/org/apache/ignite/internal/network/ClusterIdSupplier.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
import java.util.UUID;
import org.jetbrains.annotations.Nullable;
/**
* Supplies with ID of the cluster.
*/
public interface ClusterIdSupplier {
/** Returns ID of the cluster ({@code null} if the node has never joined a cluster). */
@Nullable UUID clusterId();
}
|
apache/ignite | 1,125 | modules/core/src/main/java/org/apache/ignite/internal/management/api/CommandsProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.management.api;
import java.util.Collection;
/**
* Pluggable Ignite component that is responsible for providing list of commands for management API.
*/
public interface CommandsProvider {
/** Gets all supported by this provider commands. */
Collection<Command<?, ?>> commands();
}
|
apache/ignite | 1,142 | modules/core/src/main/java/org/apache/ignite/spi/metric/IntMetric.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.spi.metric;
/**
* Interface for the metrics that holds int primitive.
*/
public interface IntMetric extends Metric {
/** @return Value of the metric. */
public int value();
/** {@inheritDoc} */
@Override public default String getAsString() {
return Integer.toString(value());
}
}
|
apache/impala | 1,142 | fe/src/main/java/org/apache/impala/catalog/DatabaseNotFoundException.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.impala.catalog;
/**
* Thrown when a database cannot be found in the catalog.
*/
public class DatabaseNotFoundException extends CatalogException {
// Dummy serial ID to satisfy Eclipse
private static final long serialVersionUID = -2203080667446640542L;
public DatabaseNotFoundException(String s) { super(s); }
} |
apache/impala | 1,144 | fe/src/main/java/org/apache/impala/catalog/ColumnNotFoundException.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.impala.catalog;
/**
* Thrown when a column cannot be found in the catalog.
*/
public class ColumnNotFoundException extends CatalogException {
// Dummy serial UID to avoid Eclipse warnings
private static final long serialVersionUID = -2203080667446640542L;
public ColumnNotFoundException(String s) { super(s); }
} |
apache/incubator-crail | 1,137 | client/src/main/java/org/apache/crail/CrailOutputStream.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.crail;
import java.io.IOException;
import java.util.concurrent.Future;
public interface CrailOutputStream {
CrailNode getFile();
Future<CrailResult> write(CrailBuffer dataBuf) throws Exception;
Future<Void> sync() throws IOException;
long position();
long getWriteHint();
void close() throws Exception;
}
|
apache/incubator-heron | 1,116 | heron/common/src/java/org/apache/heron/common/utils/misc/TupleKeyGenerator.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common.utils.misc;
import java.util.Random;
/**
* Generate tuple key by using Random Class
*/
public class TupleKeyGenerator {
private final Random rand;
public TupleKeyGenerator() {
rand = new Random();
}
public long next() {
return rand.nextLong();
}
}
|
apache/incubator-heron | 1,130 | heron/api/src/java/org/apache/heron/streamlet/IStreamletBasicOperator.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.IBasicBolt;
/**
* The interface for streamlet operators. It can be used to create
* operators based on existing Bolts (subclasses of IBasicBolt).
*/
public interface IStreamletBasicOperator<R, T> extends IStreamletOperator<R, T>, IBasicBolt {
}
|
apache/incubator-hugegraph-toolchain | 1,098 | hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/RocksDBSerializer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS 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.serializer.direct;
/**
* TODO: review later
* <p>
* In this serializer, we only support normal type now:
* - number
* - string
* And they will be transferred to bytes directly
**/
public class RocksDBSerializer {
// TODO: Support write RocksDB directly
}
|
apache/incubator-kie-drools | 1,091 | drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatchers.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.index.matchers;
import org.drools.verifier.core.index.keys.UUIDKey;
import org.drools.verifier.core.index.query.Matchers;
public class UUIDMatchers
extends Matchers {
public UUIDMatchers() {
super(UUIDKey.UNIQUE_UUID);
}
}
|
apache/incubator-kie-drools | 1,123 | drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Join.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.tms.beliefsystem.defeasible;
public class Join {
private JoinEntry firstLeft;
private JoinEntry lastLeft;
private JoinEntry firstRight;
private JoinEntry lastRight;
private static interface JoinEntry {
JoinEntry getNext();
JoinEntry getPrevious();
}
}
|
apache/incubator-kie-drools | 1,127 | kie-api/src/main/java/org/kie/api/runtime/rule/AgendaGroup.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.runtime.rule;
public interface AgendaGroup {
/**
* Static reference to determine the default <code>AgendaGroup</code> name.
*/
String MAIN = "MAIN";
/**
* @return
* The AgendaGroup name
*/
String getName();
void clear();
void setFocus();
}
|
apache/incubator-kie-kogito-apps | 1,097 | jitexecutor/jitexecutor-runner/src/test/java/org/kie/kogito/jitexecutor/runner/OneOfEachTypeIT.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR 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.jitexecutor.runner;
import org.kie.kogito.jitexecutor.dmn.OneOfEachTypeTest;
import io.quarkus.test.junit.QuarkusIntegrationTest;
@QuarkusIntegrationTest
public class OneOfEachTypeIT extends OneOfEachTypeTest {
// Execute the same tests but in native mode.
}
|
apache/incubator-samoa | 1,100 | samoa-api/src/main/java/org/apache/samoa/learners/classifiers/rules/common/RulePassiveLearningNode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samoa.learners.classifiers.rules.common;
/**
* Interface for Rule's LearningNode that does not update statistics for expanding rule. It only updates statistics for
* computing predictions.
*
* @author Anh Thu Vu
*
*/
public interface RulePassiveLearningNode {
}
|
apache/inlong | 1,105 | inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/cos/DefaultCOSConfigHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.agent.plugin.utils.cos;
import com.qcloud.cos.ClientConfig;
import com.qcloud.cos.region.Region;
public class DefaultCOSConfigHandler extends COSConfigHandler {
public ClientConfig getClientConfig(String region) {
return new ClientConfig(new Region(region));
}
}
|
apache/iotdb | 1,061 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/approximate/ListNode2.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.iotdb.db.queryengine.execution.operator.source.relational.aggregation.approximate;
public class ListNode2<T> {
protected T value;
protected ListNode2<T> prev;
protected ListNode2<T> next;
public ListNode2(T value) {
this.value = value;
}
public ListNode2<T> getPrev() {
return prev;
}
public ListNode2<T> getNext() {
return next;
}
public T getValue() {
return value;
}
public void setValue(T value) {
this.value = value;
}
}
|
apache/iotdb | 1,103 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/component/NullOrdering.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.queryengine.plan.statement.component;
public enum NullOrdering {
FIRST,
LAST;
public boolean isFirst() {
return this == FIRST;
}
public NullOrdering reverse() {
return this == NullOrdering.FIRST ? NullOrdering.LAST : NullOrdering.FIRST;
}
}
|
apache/iotdb | 1,105 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/SourceOperator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.queryengine.execution.operator.source;
import org.apache.iotdb.db.queryengine.execution.operator.Operator;
import org.apache.iotdb.db.queryengine.plan.planner.plan.node.PlanNodeId;
public interface SourceOperator extends Operator {
PlanNodeId getSourceId();
}
|
apache/iotdb | 1,119 | integration-test/src/main/java/org/apache/iotdb/itbase/exception/InconsistentDataException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.itbase.exception;
import java.util.List;
public class InconsistentDataException extends RuntimeException {
public <T> InconsistentDataException(List<T> data, List<String> endpoints) {
super(String.format("Datasets are inconsistent: %s with data %s", endpoints, data));
}
}
|
apache/jclouds | 1,140 | providers/packet/src/main/java/org/jclouds/packet/domain/Href.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.packet.domain;
import org.jclouds.json.SerializedNames;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class Href {
public abstract String href();
@SerializedNames({ "href" })
public static Href create(String href) {
return new AutoValue_Href(href);
}
Href() {}
}
|
apache/jena | 1,073 | jena-extras/jena-serviceenhancer/src/test/java/org/apache/jena/sparql/service/enhancer/impl/TestServiceEnhancerResultSetLimitsWithoutCache.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sparql.service.enhancer.impl;
public class TestServiceEnhancerResultSetLimitsWithoutCache
extends AbstractTestServiceEnhancerResultSetLimits
{
public TestServiceEnhancerResultSetLimitsWithoutCache() {
super("loop:");
}
}
|
apache/jena | 1,120 | jena-permissions/src/test/java/org/apache/jena/permissions/contract/model/SecTestLiterals.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.permissions.contract.model;
import org.apache.jena.rdf.model.test.TestLiterals;
import org.apache.jena.rdf.model.test.TS3_Model1;
public class SecTestLiterals extends TestLiterals {
public SecTestLiterals() {
super(new TS3_Model1.PlainModelFactory(), "SecTestLiterals");
}
}
|
apache/jena | 1,140 | jena-core/src/main/java/org/apache/jena/shared/AlreadyExistsException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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 to throw when an attempt is made to create a named
object (eg persistent model) when an object of that name already
exists.
*/
public class AlreadyExistsException extends JenaException
{
public AlreadyExistsException( String name )
{ super( name ); }
}
|
apache/jmeter | 1,115 | src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBaseBeanInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jmeter.protocol.http.sampler;
import org.apache.jmeter.testelement.AbstractTestElementBeanInfo;
/**
* This is the BeanInfo class for the TestBean HTTPSamplerBase.
* (every TestBean has to have a BeanInfo class)
*/
public class HTTPSamplerBaseBeanInfo extends AbstractTestElementBeanInfo {
}
|
apache/jmeter | 1,142 | src/jorphan/src/main/java/org/apache/jorphan/reflect/ClassFilter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jorphan.reflect;
/**
* filter class when visiting the search path with {@link ClassFinder}
* @since 3.0
*/
public interface ClassFilter {
/**
* Returns true if class is included.
* @param className String class name
* @return true if class is included
*/
boolean accept(String className);
}
|
apache/kafka | 1,137 | streams/src/main/java/org/apache/kafka/streams/processor/CommitCallback.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kafka.streams.processor;
import org.apache.kafka.common.annotation.InterfaceStability.Evolving;
import java.io.IOException;
/**
* Stores can register this callback to be notified upon successful commit.
*/
@Evolving
@FunctionalInterface
public interface CommitCallback {
void onCommit() throws IOException;
}
|
apache/kafka | 1,149 | server-common/src/main/java/org/apache/kafka/timeline/Delta.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kafka.timeline;
/**
* An API which snapshot delta structures implement.
*/
interface Delta {
/**
* Merge the source delta into this one.
*
* @param destinationEpoch The epoch of this delta.
* @param source The source delta.
*/
void mergeFrom(long destinationEpoch, Delta source);
}
|
apache/kylin | 1,115 | src/common-service/src/main/java/org/apache/kylin/rest/request/ProjectGeneralInfoRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.request;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class ProjectGeneralInfoRequest {
@JsonProperty("description")
private String description;
@JsonProperty("semi_automatic_mode")
private Boolean isSemiAutoMode;
}
|
apache/linkis | 1,104 | linkis-public-enhancements/linkis-pes-common/src/main/java/org/apache/linkis/udf/excepiton/UDFException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.udf.excepiton;
import org.apache.linkis.common.exception.ErrorException;
public class UDFException extends ErrorException {
public UDFException(String desc) {
super(202011, desc);
}
public UDFException(int errCode, String desc) {
super(errCode, desc);
}
}
|
apache/logging-log4j2 | 1,132 | log4j-api/src/main/java/org/apache/logging/log4j/message/Clearable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.logging.log4j.message;
/**
* {@link Clearable} objects may be reset to a reusable state.
*
* This type should be combined into {@link ReusableMessage} as a default method for 3.0.
*
* @since 2.11.1
*/
interface Clearable {
/**
* Resets the object to a clean state.
*/
void clear();
}
|
apache/maven-javadoc-plugin | 1,127 | src/test/resources/unit/jdk5-test/jdk5/test/MyAnnotationType.java | package jdk5.test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Sample annotation type
*
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
*/
@Retention(RUNTIME)
public @interface MyAnnotationType
{
public String value();
}
|
apache/maven | 1,125 | compat/maven-artifact/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadata.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.artifact.metadata;
/**
* Contains metadata about an artifact, and methods to retrieve/store it from an artifact repository.
*/
@Deprecated
public interface ArtifactMetadata extends org.apache.maven.repository.legacy.metadata.ArtifactMetadata {
void merge(ArtifactMetadata metadata);
}
|
apache/nifi | 1,055 | nifi-extension-bundles/nifi-standard-services/nifi-database-dialect-service-api/src/main/java/org/apache/nifi/database/dialect/service/api/StatementResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.database.dialect.service.api;
/**
* SQL Statement Response with standard properties
*/
public interface StatementResponse {
/**
* Rendered SQL statement
*
* @return SQL statement
*/
String sql();
}
|
apache/nifi | 1,100 | nifi-extension-bundles/nifi-redis-bundle/nifi-redis-utils/src/main/java/org/apache/nifi/redis/util/RedisAction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.redis.util;
import org.springframework.data.redis.connection.RedisConnection;
import java.io.IOException;
/**
* An action to be executed with a RedisConnection.
*/
public interface RedisAction<T> {
T execute(RedisConnection redisConnection) throws IOException;
}
|
apache/olingo-odata4 | 1,105 | lib/server-core/src/main/java/org/apache/olingo/server/core/uri/queryoption/apply/IdentityImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.olingo.server.core.uri.queryoption.apply;
import org.apache.olingo.server.api.uri.queryoption.apply.Identity;
/**
* Represents the identity transformation.
*/
public class IdentityImpl implements Identity {
@Override
public Kind getKind() {
return Kind.IDENTITY;
}
}
|
apache/openjpa | 1,111 | openjpa-persistence/src/main/java/org/apache/openjpa/persistence/query/LiteralExpression.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openjpa.persistence.query;
/**
* Denotes a Literal Expression.
*
* @author Pinaki Poddar
*
*/
public class LiteralExpression extends ConstantExpression {
private static final long serialVersionUID = 1L;
public LiteralExpression(Object literal) {
super(literal);
}
}
|
apache/openmeetings | 1,120 | openmeetings-util/src/main/java/org/apache/openmeetings/util/logging/TimedDatabase.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License") + you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openmeetings.util.logging;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface TimedDatabase {
}
|
apache/ozone | 1,117 | hadoop-hdds/framework/src/main/java/org/apache/hadoop/ozone/audit/AuditEventStatus.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.audit;
/**
* Enum to define AuditEventStatus values.
*/
public enum AuditEventStatus {
SUCCESS("SUCCESS"),
FAILURE("FAILURE");
private String status;
AuditEventStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
}
|
apache/ozone | 1,121 | hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestO3FSWithFSPaths.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs.ozone;
import org.apache.hadoop.ozone.om.helpers.BucketLayout;
import org.junit.jupiter.api.TestInstance;
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class TestO3FSWithFSPaths extends AbstractOzoneFileSystemTest {
TestO3FSWithFSPaths() {
super(true, BucketLayout.LEGACY);
}
}
|
apache/ozone | 1,129 | hadoop-ozone/ozonefs-hadoop2/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/ozone | 1,129 | hadoop-ozone/ozonefs-hadoop3/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,146 | paimon-core/src/main/java/org/apache/paimon/lookup/ListState.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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 java.io.IOException;
import java.util.List;
/** {@link State} interface for list state in Operations. */
public interface ListState<K, V> extends State<K, V> {
void add(K key, V value) throws IOException;
List<V> get(K key) throws IOException;
ListBulkLoader createBulkLoader();
}
|
apache/pinot | 1,099 | pinot-core/src/main/java/org/apache/pinot/core/segment/processing/lifecycle/PinotSegmentLifecycleEventListener.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.core.segment.processing.lifecycle;
import org.apache.helix.HelixManager;
public interface PinotSegmentLifecycleEventListener {
SegmentLifecycleEventType getType();
void init(HelixManager helixManager);
void onEvent(SegmentLifecycleEventDetails event);
}
|
apache/pinot | 1,111 | pinot-controller/src/main/java/org/apache/pinot/controller/api/exception/TaskAlreadyExistsException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 TaskAlreadyExistsException extends RuntimeException {
public TaskAlreadyExistsException(String message) {
super(message);
}
public TaskAlreadyExistsException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/polaris | 1,106 | runtime/service/src/test/java/org/apache/polaris/service/catalog/iceberg/IcebergViewCatalogRelationalTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.catalog.iceberg;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.TestProfile;
@QuarkusTest
@TestProfile(AbstractIcebergCatalogViewTest.Profile.class)
public class IcebergViewCatalogRelationalTest extends AbstractIcebergCatalogViewTest {}
|
apache/polygene-java | 1,093 | libraries/logging/src/main/java/org/apache/polygene/library/logging/trace/records/CompositeTraceRecordEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.library.logging.trace.records;
import org.apache.polygene.api.composite.Composite;
import org.apache.polygene.api.property.Property;
public interface CompositeTraceRecordEntity extends TraceRecord
{
Property<Composite> source();
}
|
apache/polygene-java | 1,122 | core/spi/src/main/java/org/apache/polygene/spi/entitystore/helpers/Migration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.spi.entitystore.helpers;
import javax.json.JsonException;
import javax.json.JsonObject;
/**
* State Migration SPI.
*/
public interface Migration
{
JsonObject migrate( JsonObject state, String toVersion, StateStore stateStore )
throws JsonException;
}
|
apache/polygene-java | 1,129 | libraries/rdf/src/main/java/org/apache/polygene/library/rdf/DcRdf.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.library.rdf;
import org.openrdf.model.URI;
import org.openrdf.model.impl.URIImpl;
public interface DcRdf
{
String NAMESPACE = "http://purl.org/dc/elements/1.1/";
URI ABOUT = new URIImpl( NAMESPACE + "about" );
URI TITLE = new URIImpl( NAMESPACE + "title" );
}
|
apache/ratis | 1,128 | ratis-test/src/test/java/org/apache/ratis/grpc/cli/TestPeerCommandIntegrationWithGrpc.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ratis.grpc.cli;
import org.apache.ratis.grpc.MiniRaftClusterWithGrpc;
import org.apache.ratis.shell.cli.sh.PeerCommandIntegrationTest;
public class TestPeerCommandIntegrationWithGrpc
extends PeerCommandIntegrationTest<MiniRaftClusterWithGrpc>
implements MiniRaftClusterWithGrpc.FactoryGet{
}
|
apache/reef | 1,107 | lang/java/reef-examples/src/main/java/org/apache/reef/examples/group/bgd/operatornames/MinEtaBroadcaster.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.examples.group.bgd.operatornames;
import org.apache.reef.tang.annotations.Name;
import org.apache.reef.tang.annotations.NamedParameter;
/**
* The name of the MinEta broadcast operator.
*/
@NamedParameter()
public final class MinEtaBroadcaster implements Name<String> {
}
|
apache/reef | 1,114 | lang/java/reef-examples/src/main/java/org/apache/reef/examples/group/bgd/parameters/NumSplits.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.examples.group.bgd.parameters;
import org.apache.reef.tang.annotations.Name;
import org.apache.reef.tang.annotations.NamedParameter;
/**
* Number of splits.
*/
@NamedParameter(short_name = "splits", default_value = "5")
public final class NumSplits implements Name<Integer> {
}
|
apache/reef | 1,119 | lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/files/RuntimePathProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.runtime.common.files;
import org.apache.reef.tang.annotations.DefaultImplementation;
/**
* Supplies the path to the executable for process (Driver, Evaluator) launches.
*/
@DefaultImplementation(UnixJVMPathProvider.class)
public interface RuntimePathProvider {
String getPath();
}
|
apache/rocketmq-connect | 1,064 | connectors/rocketmq-connect-debezium/rocketmq-connect-debezium-core/src/main/java/org/apache/rocketmq/connect/debezium/DebeziumConnector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.connect.debezium;
import org.apache.rocketmq.connect.kafka.connect.adaptor.connector.KafkaSourceAdaptorConnector;
/**
* debezium connector
*/
public abstract class DebeziumConnector extends KafkaSourceAdaptorConnector {
}
|
apache/samza | 1,122 | samza-core/src/main/java/org/apache/samza/coordinator/InputStreamsDiscoveredException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.coordinator;
import org.apache.samza.SamzaException;
/**
* Exception to indicate that the new input streams have been added.
*/
public class InputStreamsDiscoveredException extends SamzaException {
public InputStreamsDiscoveredException(String message) {
super(message);
}
}
|
apache/seatunnel-web | 1,111 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/dal/dao/IJobLineDao.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.dal.dao;
import org.apache.seatunnel.app.dal.entity.JobLine;
import java.util.List;
public interface IJobLineDao {
void deleteLinesByVersionId(long jobVersionId);
void insertLines(List<JobLine> lines);
List<JobLine> getLinesByVersionId(long jobVersionId);
}
|
apache/seatunnel | 1,042 | seatunnel-engine/seatunnel-engine-storage/imap-storage-plugins/imap-storage-file/src/main/java/org/apache/seatunnel/engine/imap/storage/file/wal/writer/OssWriter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.engine.imap.storage.file.wal.writer;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class OssWriter extends CloudWriter {
@Override
public String identifier() {
return "oss";
}
}
|
apache/seatunnel | 1,051 | seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/serialize/source/SeaTunnelRowDeserializer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.elasticsearch.serialize.source;
import org.apache.seatunnel.api.table.type.SeaTunnelRow;
public interface SeaTunnelRowDeserializer {
SeaTunnelRow deserialize(ElasticsearchRecord rowRecord);
}
|
apache/seatunnel | 1,124 | seatunnel-api/src/main/java/org/apache/seatunnel/api/event/LoggingEventHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.api.event;
import com.google.auto.service.AutoService;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@AutoService(EventHandler.class)
public class LoggingEventHandler implements EventHandler {
@Override
public void handle(Event event) {
log.info("log event: {}", event);
}
}
|
apache/servicecomb-java-chassis | 1,075 | swagger/swagger-generator/generator-core/src/test/java/org/apache/servicecomb/swagger/generator/core/pojo/PojoExample1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.swagger.generator.core.pojo;
public class PojoExample1 {
public TestType1 testOneParameter(TestType1 testType1) {
return null;
}
public TestType1 testMultiParameter(TestType1 testType1, String testString) {
return null;
}
}
|
apache/servicecomb-java-chassis | 1,106 | governance/src/test/java/org/apache/servicecomb/governance/MockCircuitBreakerExtension.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.governance;
import org.apache.servicecomb.governance.handler.ext.AbstractCircuitBreakerExtension;
public class MockCircuitBreakerExtension extends AbstractCircuitBreakerExtension {
@Override
protected String extractStatusCode(Object result) {
return "200";
}
}
|
apache/shardingsphere-elasticjob | 1,083 | kernel/src/test/java/org/apache/shardingsphere/elasticjob/kernel/infra/yaml/fixture/FooYamlConfiguration.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.kernel.infra.yaml.fixture;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public final class FooYamlConfiguration {
private String foo;
private String bar;
private FooYamlConfiguration nest;
}
|
apache/shardingsphere | 1,088 | kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/job/progress/JobOffsetInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.data.pipeline.core.job.progress;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* Job offset info.
*/
@RequiredArgsConstructor
@Getter
public final class JobOffsetInfo {
private final boolean targetSchemaTableCreated;
}
|
apache/shindig | 1,125 | java/sample-container/src/main/java/org/apache/shindig/sample/shiro/ShiroGuiceModule.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.shindig.sample.shiro;
import com.google.inject.AbstractModule;
public class ShiroGuiceModule extends AbstractModule {
protected void configure() {
// We do this so that jsecurity realms can get access to the jsondbservice singleton
requestStaticInjection(SampleShiroRealm.class);
}
}
|
apache/skywalking | 1,077 | oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/dsl/EntityDescription/EntityDescription.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.meter.analyzer.dsl.EntityDescription;
import java.util.List;
import org.apache.skywalking.oap.server.core.analysis.meter.ScopeType;
public interface EntityDescription {
ScopeType getScopeType();
List<String> getLabelKeys();
}
|
apache/skywalking | 1,088 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/type/EBPFProfilingAnalyzeTimeRange.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.server.core.query.type;
import lombok.Data;
/**
* eBPF Profiling analysis the time range for query
*/
@Data
public class EBPFProfilingAnalyzeTimeRange {
// start timestamp
private long start;
// end timestamp
private long end;
} |
apache/skywalking | 1,093 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/type/EBPFProfilingTaskPrepare.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.server.core.query.type;
import lombok.Data;
import java.util.List;
/**
* eBPF Profiling prepare to create task needs data
*/
@Data
public class EBPFProfilingTaskPrepare {
private boolean couldProfiling;
private List<String> processLabels;
} |
apache/solr | 1,128 | solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/RebalanceLeadersPayload.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.client.solrj.request.beans;
import org.apache.solr.common.annotation.JsonProperty;
import org.apache.solr.common.util.ReflectMapWriter;
public class RebalanceLeadersPayload implements ReflectMapWriter {
@JsonProperty public Integer maxAtOnce;
@JsonProperty public Integer maxWaitSeconds = 60;
}
|
apache/solr | 1,133 | solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZooKeeperException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.cloud;
import org.apache.solr.common.SolrException;
public class ZooKeeperException extends SolrException {
public ZooKeeperException(ErrorCode code, String msg, Throwable th) {
super(code, msg, th);
}
public ZooKeeperException(ErrorCode code, String msg) {
super(code, msg);
}
}
|
apache/solr | 1,145 | solr/api/src/java/org/apache/solr/client/api/model/ListLevelsResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.client.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Response format for the 'GET /api/node/logging/levels' API. */
public class ListLevelsResponse extends LoggingResponse {
@JsonProperty public List<String> levels;
@JsonProperty public List<LogLevelInfo> loggers;
}
|
apache/solr | 1,146 | solr/core/src/test/org/apache/solr/pkg/ValueAugmenterPublicTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.pkg;
import org.apache.solr.response.transform.ValueAugmenterFactory;
import org.junit.Test;
public class ValueAugmenterPublicTest {
@Test
public void testValueAugmenterIsOpenForExtension() {
// this should compile from this package
new ValueAugmenterFactory.ValueAugmenter("bee_sI", new Object());
}
}
|
apache/storm | 1,135 | storm-client/src/jvm/org/apache/storm/utils/WrappedIllegalStateException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.storm.utils;
import org.apache.storm.generated.IllegalStateException;
public class WrappedIllegalStateException extends IllegalStateException {
public WrappedIllegalStateException(String msg) {
super(msg);
}
@Override
public String getMessage() {
return this.get_msg();
}
}
|
apache/stratos | 1,093 | components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/exception/LockNotReleasedException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.stratos.common.exception;
/**
* Lock not released exception.
*/
public class LockNotReleasedException extends RuntimeException {
public LockNotReleasedException() {
}
public LockNotReleasedException(String message) {
super(message);
}
}
|
apache/streampipes | 1,052 | streampipes-extensions/streampipes-pipeline-elements-experimental-flink/src/main/java/org/apache/streampipes/pe/flink/extensions/TimestampMappingFunction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.streampipes.pe.flink.extensions;
import org.apache.flink.api.common.functions.Function;
import java.io.Serializable;
public interface TimestampMappingFunction<T> extends Function, Serializable {
Long getTimestamp(T in);
}
|
apache/streampipes | 1,084 | streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/declarer/IStreamPipesFunctionDeclarer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.streampipes.extensions.api.declarer;
import java.util.List;
public interface IStreamPipesFunctionDeclarer {
IFunctionConfig getFunctionConfig();
List<String> requiredStreamIds();
void invokeRuntime(String serviceGroup);
void discardRuntime();
}
|
apache/syncope | 1,116 | client/idrepo/console/src/main/java/org/apache/syncope/client/console/chartjs/LineChartData.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.client.console.chartjs;
/**
* Provides chart data used by line charts.
*
* @param <T> the generic type of it's dataset
*/
public class LineChartData<T extends PointColorDataSet> extends ChartData<T> {
private static final long serialVersionUID = 9057475640743455047L;
}
|
apache/tajo | 1,133 | tajo-core/src/main/java/org/apache/tajo/ws/rs/requests/NewDatabaseRequest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tajo.ws.rs.requests;
import com.google.gson.annotations.Expose;
public class NewDatabaseRequest {
@Expose private String databaseName;
public String getDatabaseName() {
return databaseName;
}
public void setDatabaseName(String databaseName) {
this.databaseName = databaseName;
}
}
|
apache/tomcat80 | 1,122 | modules/tomcat-lite/java/org/apache/tomcat/lite/io/FileConnectorJavaIo.java | /*
*/
package org.apache.tomcat.lite.io;
import java.io.File;
import java.io.IOException;
/**
* Catalina uses JNDI to abstract filesystem - this is both heavy and
* a bit complex.
*
* This is also a bit complex - but hopefully we can implement it as
* non-blocking and without much copy.
*
*/
public class FileConnectorJavaIo extends FileConnector {
File base;
public FileConnectorJavaIo(File file) {
this.base = file;
}
@Override
public boolean isDirectory(String path) {
File file = new File(base, path);
return file.isDirectory();
}
@Override
public boolean isFile(String path) {
File file = new File(base, path);
return file.exists() && !file.isDirectory();
}
@Override
public void acceptor(ConnectedCallback sc,
CharSequence port,
Object extra) throws IOException {
// TODO: unix domain socket impl.
// Maybe: detect new files in the filesystem ?
}
@Override
public void connect(String host, int port, ConnectedCallback sc)
throws IOException {
}
} |
apache/velocity-engine | 1,107 | velocity-engine-core/src/test/java/org/apache/velocity/test/provider/NullToStringObject.java | package org.apache.velocity.test.provider;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Used to confirm that a null to string is processed properly
* @author <a href="mailto:wglass@apache.org">Will Glass-Husain</a>
* @version $Id$
*/
public class NullToStringObject
{
public String toString()
{
return null;
}
}
|
apache/wicket | 1,122 | wicket-core-tests/src/test/java/org/apache/wicket/resource/DummyPage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.resource;
import org.apache.wicket.markup.html.WebPage;
/**
* Dummy page used for resource testing.
*
* @author Chris Turner
*/
public class DummyPage extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*/
public DummyPage()
{
super();
}
}
|
google/bindiff | 1,077 | java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/tabpanels/projecttabpanel/treenodepanels/AbstractTreeNodeContextPanel.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.bindiff.gui.tabpanels.projecttabpanel.treenodepanels;
import com.google.security.zynamics.bindiff.gui.tabpanels.projecttabpanel.treenodepanels.tables.AbstractTable;
import java.awt.BorderLayout;
import java.util.List;
import javax.swing.JPanel;
public abstract class AbstractTreeNodeContextPanel extends JPanel {
public AbstractTreeNodeContextPanel() {
super(new BorderLayout());
}
public abstract List<AbstractTable> getTables();
}
|
google/binnavi | 1,095 | src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultBackgroundPressedRightAction.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.states.CBackgroundPressedRightState;
import java.awt.event.MouseEvent;
public class CDefaultBackgroundPressedRightAction implements
IStateAction<CBackgroundPressedRightState> {
@Override
public void execute(final CBackgroundPressedRightState state, final MouseEvent event) {
}
}
|
google/cel-java | 1,145 | runtime/src/test/java/dev/cel/runtime/CelValueInterpreterTest.java | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package dev.cel.runtime;
import com.google.testing.junit.testparameterinjector.TestParameterInjector;
// import com.google.testing.testsize.MediumTest;
import dev.cel.testing.BaseInterpreterTest;
import org.junit.runner.RunWith;
/** Tests for {@link Interpreter} and related functionality using {@code CelValue}. */
// @MediumTest
@RunWith(TestParameterInjector.class)
public class CelValueInterpreterTest extends BaseInterpreterTest {
public CelValueInterpreterTest() {
super(newBaseCelOptions().toBuilder().enableCelValue(true).build());
}
}
|
google/depan | 1,098 | DepanNodeUI/prod/src/com/google/devtools/depan/nodes/filters/persistence/ContextualFilterResourcesInstaller.java | /**
* Copyright 2017 The Depan Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.devtools.depan.nodes.filters.persistence;
import com.google.devtools.depan.resources.ResourceContainer;
import com.google.devtools.depan.resources.analysis.AnalysisResourceInstaller;
/**
* @author <a href="leeca@pnambic.com">Lee Carver</a>
*/
public class ContextualFilterResourcesInstaller
implements AnalysisResourceInstaller {
@Override
public void installResource(ResourceContainer root) {
ContextualFilterResources.installResources(root);
}
}
|
google/depan | 1,123 | DepanNodeUI/prod/src/com/google/devtools/depan/eclipse/ui/nodes/NodesUILogger.java | /*
* Copyright 2015 The Depan Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.devtools.depan.eclipse.ui.nodes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Provide a common logger for the entire view/tools
* package. Simply import this class, and use the
* available {@link #LOG} member.
*
* @author <a href="mailto:leeca@pnambic.com">Lee Carver</a>
*/
public class NodesUILogger {
public static final Logger LOG =
LoggerFactory.getLogger(NodesUILogger.class.getName());
private NodesUILogger() {
// Prevent instantiation.
}
}
|
google/gdata-java-client | 1,134 | java/src/com/google/gdata/data/calendar/AttendeeFeed.java | /* Copyright (c) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.gdata.data.calendar;
import com.google.gdata.data.BaseFeed;
import com.google.gdata.data.ExtensionProfile;
/**
* For attendee feeds
*
*
*/
public class AttendeeFeed extends BaseFeed<AttendeeFeed, AttendeeEntry> {
public AttendeeFeed() { super(AttendeeEntry.class); }
@Override
public void declareExtensions(ExtensionProfile extProfile) {
// Add any feed-level extension declarations here.
super.declareExtensions(extProfile);
}
// Any feed-level extension accessor APIs would go here
}
|
google/graphicsfuzz | 1,127 | ast/src/main/java/com/graphicsfuzz/common/glslversion/Glsl150.java | /*
* Copyright 2018 The GraphicsFuzz Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.graphicsfuzz.common.glslversion;
final class Glsl150 extends CompositeShadingLanguageVersion {
static final ShadingLanguageVersion INSTANCE = new Glsl150(Glsl140.INSTANCE);
private Glsl150(ShadingLanguageVersion prototype) {
super(prototype);
// Singleton
}
@Override
public String getVersionString() {
return "150";
}
@Override
public boolean supportedDeterminant() {
return true;
}
@Override
public boolean supportedInverse() {
return true;
}
}
|
google/guice | 1,169 | core/src/com/google/inject/Exposed.java | /*
* Copyright (C) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.inject;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Accompanies a {@literal @}{@link com.google.inject.Provides Provides} method annotation in a
* private module to indicate that the provided binding is exposed.
*
* @author jessewilson@google.com (Jesse Wilson)
* @since 2.0
*/
@Target(ElementType.METHOD)
@Retention(RUNTIME)
@Documented
public @interface Exposed {}
|
google/j2cl | 1,125 | junit/generator/java/com/google/j2cl/junit/runtime/InternalAssumptionViolatedException.java | /*
* Copyright 2024 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.j2cl.junit.runtime;
/** A base exception for when an Assumption fails during the execution of a test. */
public abstract class InternalAssumptionViolatedException extends RuntimeException {
/** An assumption exception with the given message only. */
public InternalAssumptionViolatedException(String message) {
super(message);
}
/** An assumption exception with the given message and a cause. */
public InternalAssumptionViolatedException(String message, Throwable t) {
super(message, t);
}
}
|
google/j2objc | 1,085 | jre_emul/apache_harmony/classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/SampleListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Maxim V. Berkultsev
*/
package org.apache.harmony.beans.tests.support;
/**
* @author Maxim V. Berkultsev
*/
import java.util.EventListener;
public interface SampleListener extends EventListener {
public void fireSampleEvent(SampleEvent event);
}
|
googleapis/google-cloud-java | 1,047 | java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1beta1/tensorboard_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.aiplatform.v1beta1;
public interface WriteTensorboardExperimentDataResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse)
com.google.protobuf.MessageOrBuilder {}
|
googlearchive/caja | 1,152 | src/com/google/caja/parser/js/ControlOperation.java | // Copyright (C) 2008 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.caja.parser.js;
import com.google.caja.lexer.FilePosition;
import java.util.List;
/**
* An Operation that executes some of its operands conditionally, depending on
* the results of evaluating other operands.
*
* @author erights@gmail.com
*/
public final class ControlOperation extends Operation {
private static final long serialVersionUID = -4244849102163868055L;
@ReflectiveCtor
public ControlOperation(
FilePosition pos, Operator value, List<? extends Expression> children) {
super(pos, value, children);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.