repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/incubator-samoa | 1,113 | samoa-apex/src/main/java/org/apache/samoa/apex/topology/impl/DefaultInputPortSerializable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.apex.topology.impl;
import java.io.Serializable;
import com.datatorrent.api.DefaultInputPort;
public abstract class DefaultInputPortSerializable<T> extends DefaultInputPort<T> implements Serializable {
private static final long serialVersionUID = -8903550075465894319L;
}
|
apache/inlong | 1,107 | inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/service/tube/IpIdRelation.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.tubemq.manager.service.tube;
import lombok.Data;
/**
* The relation of broker IP and broker id.
*/
@Data
public class IpIdRelation {
private Integer brokerId;
private String brokerIp;
private String success;
private Integer errCode;
private String errInfo;
}
|
apache/inlong | 1,108 | inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/conversion/HoursToMinute.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.common.conversion;
import org.springframework.stereotype.Component;
/**
* Convert hours to minute.
*/
@Component
public class HoursToMinute implements ConversionStrategy {
@Override
public Integer unitConversion(Integer value) {
return value * 60;
}
}
|
apache/iotdb | 1,121 | iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/impl/DoNothingAutoGauge.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.metrics.impl;
import org.apache.iotdb.metrics.type.AutoGauge;
import org.apache.iotdb.metrics.utils.AbstractMetricMBean;
public class DoNothingAutoGauge extends AbstractMetricMBean implements AutoGauge, DoNothingMetric {
@Override
public double getValue() {
return 0d;
}
}
|
apache/jackrabbit-oak | 1,105 | oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/cache/ModificationStamp.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.oak.plugins.document.cache;
public final class ModificationStamp {
public final long modCount;
public final long modified;
public ModificationStamp(long modCount, long modified) {
this.modCount = modCount;
this.modified = modified;
}
}
|
apache/jclouds | 1,146 | apis/s3/src/main/java/org/jclouds/s3/blobstore/S3BlobStoreContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.s3.blobstore;
import org.jclouds.blobstore.BlobStoreContext;
import org.jclouds.s3.blobstore.internal.S3BlobStoreContextImpl;
import com.google.inject.ImplementedBy;
@ImplementedBy(S3BlobStoreContextImpl.class)
public interface S3BlobStoreContext extends BlobStoreContext {
@Override
S3BlobStore getBlobStore();
}
|
apache/jena | 1,130 | jena-benchmarks/jena-benchmarks-jmh/src/test/java/org/apache/jena/JenaVersion.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
public enum JenaVersion {
CURRENT(JenaVersion.class.getPackage().getImplementationVersion()),
JENA_4_8_0("4.8.0");
private final String version;
JenaVersion(String version) {
this.version = version;
}
public String getVersion() {
return version;
}
}
|
apache/jena | 1,136 | jena-arq/src/main/java/org/apache/jena/sparql/function/library/leviathan/cos.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.function.library.leviathan;
import org.apache.jena.sparql.expr.NodeValue;
import org.apache.jena.sparql.function.FunctionBase1;
public class cos extends FunctionBase1 {
@Override
public NodeValue exec(NodeValue v) {
return NodeValue.makeDouble(Math.cos(v.getDouble()));
}
}
|
apache/jena | 1,136 | jena-arq/src/main/java/org/apache/jena/sparql/function/library/leviathan/sin.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.function.library.leviathan;
import org.apache.jena.sparql.expr.NodeValue;
import org.apache.jena.sparql.function.FunctionBase1;
public class sin extends FunctionBase1 {
@Override
public NodeValue exec(NodeValue v) {
return NodeValue.makeDouble(Math.sin(v.getDouble()));
}
}
|
apache/jena | 1,136 | jena-arq/src/main/java/org/apache/jena/sparql/function/library/leviathan/tan.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.function.library.leviathan;
import org.apache.jena.sparql.expr.NodeValue;
import org.apache.jena.sparql.function.FunctionBase1;
public class tan extends FunctionBase1 {
@Override
public NodeValue exec(NodeValue v) {
return NodeValue.makeDouble(Math.tan(v.getDouble()));
}
}
|
apache/jena | 1,136 | jena-core/src/test/java/org/apache/jena/mem2/store/legacy/LegacyTripleStoreTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.mem2.store.legacy;
import org.apache.jena.mem2.store.AbstractTripleStoreTest;
import org.apache.jena.mem2.store.TripleStore;
public class LegacyTripleStoreTest extends AbstractTripleStoreTest {
@Override
protected TripleStore createTripleStore() {
return new LegacyTripleStore();
}
} |
apache/jena | 1,143 | jena-arq/src/test/java/org/apache/jena/system/buffering/TS_Buffering.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.system.buffering;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;
@Suite
@SelectClasses({
TestBufferingPrefixMap.class
, TestBufferingDatasetGraph.class
, TestBufferingGraph.class
, TestBufferingPrefixMapping.class
})
public class TS_Buffering {
}
|
apache/jena | 1,145 | jena-shex/src/main/java/org/apache/jena/shex/expressions/Satisfies.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.shex.expressions;
import org.apache.jena.graph.Node;
import org.apache.jena.shex.sys.ValidationContext;
/** The "satisfies" realtionship. */
public interface Satisfies {
/** The "satisfies" function. Return true for OK, false for not OK. */
public boolean satisfies(ValidationContext vCxt, Node data);
}
|
apache/kylin | 1,125 | src/common-service/src/main/java/org/apache/kylin/rest/request/DiagPackageRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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 DiagPackageRequest {
private String start;
private String end;
@JsonProperty("job_id")
private String jobId;
@JsonProperty("project")
private String project;
}
|
apache/kylin | 1,128 | src/modeling-service/src/main/java/org/apache/kylin/tool/bisync/model/MeasureDef.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.tool.bisync.model;
import org.apache.kylin.metadata.model.NDataModel;
import lombok.Data;
@Data
public class MeasureDef {
private boolean isHidden = true;
private NDataModel.Measure measure;
public MeasureDef(NDataModel.Measure measure) {
this.measure = measure;
}
}
|
apache/lens | 1,147 | lens-cube/src/main/java/org/apache/lens/cube/metadata/Segment.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.lens.cube.metadata;
import java.util.Map;
import lombok.Getter;
public class Segment implements Named {
@Getter
private String name;
@Getter
private Map<String, String> properties;
public Segment(String name, Map<String, String> properties) {
this.name = name;
this.properties = properties;
}
}
|
apache/linkis | 1,096 | linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/test/java/org/apache/linkis/manager/Scan.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.manager;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.*;
import org.mybatis.spring.annotation.MapperScan;
@EnableAutoConfiguration
@MapperScan("org.apache.linkis.manager")
public class Scan {}
|
apache/maven-javadoc-plugin | 1,131 | src/main/java/org/apache/maven/plugins/javadoc/AdditionalDependency.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.plugins.javadoc;
import org.apache.maven.model.Dependency;
/**
* Provides syntactic sugar for using the standard {@code Dependency}
* model as a parameter to {@link AbstractJavadocMojo}'s {@code additionalDependencies}.
*/
public class AdditionalDependency extends Dependency {
// no op
}
|
apache/nifi-minifi | 1,097 | minifi-c2/minifi-c2-api/src/main/java/org/apache/nifi/minifi/c2/api/security/authorization/AuthorizationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.minifi.c2.api.security.authorization;
import org.apache.nifi.minifi.c2.api.ConfigurationProviderException;
public class AuthorizationException extends ConfigurationProviderException {
public AuthorizationException(String message) {
super(message);
}
}
|
apache/openjpa | 1,101 | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/PreAttachCallback.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.jdbc.common.apps;
/**
* <p>Kodo 3.x callback.</p>
*
* @deprecated
*/
@Deprecated
public interface PreAttachCallback {
/**
* Invoked on the detached instance immediately before it is
* to be attached.
*/
void jdoPreAttach();
}
|
apache/openjpa | 1,102 | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/fetchgroups/TestFetchGroupStacksXML.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.fetchgroups;
public class TestFetchGroupStacksXML extends TestFetchGroupStacks {
@Override
public void setUp() {
super.setUp();
}
@Override
protected String getPersistenceUnitName() {
return "fetch-groups-xml";
}
}
|
apache/openjpa | 1,106 | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizAppA.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.jdbc.common.apps;
public interface HorizAppA {
void setPk1(String pk1);
String getPk1();
void setPk2(int pk2);
int getPk2();
void setStringA(String stringA);
String getStringA();
void setIntA(int intA);
int getIntA();
}
|
apache/openjpa | 1,107 | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.delimited.identifiers;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
@Entity
@DiscriminatorValue("Pontiac")
public class Pontiac extends Car {
public Pontiac() {}
public Pontiac(int id) {
super(id);
}
}
|
apache/openjpa | 1,113 | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/EntityL3.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.inheritance;
import jakarta.persistence.Entity;
@Entity
public class EntityL3
extends MappedSuperclassL2 {
private int l3data;
public int getL3Data() {
return l3data;
}
public void setL3Data(int data) {
l3data = data;
}
}
|
apache/opennlp | 1,120 | opennlp-extensions/opennlp-uima/src/main/java/opennlp/uima/sentdetect/SentenceModelResource.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package opennlp.uima.sentdetect;
import opennlp.tools.sentdetect.SentenceModel;
/**
* A resource encapsulating an OpenNLP {@link SentenceModel} which can be shared between
* <i>analysis engines</i> and loaded via the UIMA resource model.
*/
public interface SentenceModelResource {
SentenceModel getModel();
}
|
apache/openwebbeans | 1,116 | samples/reservation/src/main/java/org/apache/webbeans/reservation/util/CalendarUtil.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.webbeans.reservation.util;
import java.util.Date;
import java.util.GregorianCalendar;
public class CalendarUtil
{
/**
* Gets date.
*
* @return the date
*/
public static Date getCurrentDate()
{
return GregorianCalendar.getInstance().getTime();
}
}
|
apache/ozhera | 1,088 | ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/BaseParam.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ozhera.prometheus.agent.param;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
@Data
@ToString
public class BaseParam implements ArgCheck, Serializable {
@Override
public boolean argCheck() {
return false;
}
} |
apache/pdfbox | 1,124 | pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/AnnotationFilter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.pdfbox.pdmodel.interactive.annotation;
/**
* Simple interface allowing the use of an annotation filter visitor.
*
* @author <a href="mailto:maxime.veron.pro@gmail.com">Maxime Veron</a>
*
*/
@FunctionalInterface
public interface AnnotationFilter
{
boolean accept(PDAnnotation annotation);
}
|
apache/plc4x | 1,124 | plc4j/drivers/opcua/src/test/java/org/apache/plc4x/java/opcua/OpcuaParserSerializerTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.plc4x.java.opcua;
import org.apache.plc4x.test.parserserializer.ParserSerializerTestsuiteRunner;
public class OpcuaParserSerializerTest extends ParserSerializerTestsuiteRunner {
public OpcuaParserSerializerTest() {
super("/protocols/opcua/ParserSerializerTestsuite.xml");
}
}
|
apache/polaris | 1,117 | runtime/service/src/main/java/org/apache/polaris/service/auth/external/tenant/OidcTenantResolver.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.auth.external.tenant;
import io.quarkus.security.identity.SecurityIdentity;
/** Resolves the Polaris OIDC tenant to use for the given {@link SecurityIdentity}. */
public interface OidcTenantResolver {
OidcTenantConfiguration resolveConfig(SecurityIdentity identity);
}
|
apache/polygene-java | 1,106 | libraries/sql-generator/src/test/java/org/apache/polygene/library/sql/generator/H2ModificationTest.java | /*
* Copyright (c) 2012, Stanislav Muhametsin. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.polygene.library.sql.generator;
import org.apache.polygene.library.sql.generator.vendor.H2Vendor;
import org.apache.polygene.library.sql.generator.vendor.SQLVendor;
import org.apache.polygene.library.sql.generator.vendor.SQLVendorProvider;
public class H2ModificationTest extends AbstractModificationTest
{
@Override
protected SQLVendor loadVendor()
throws Exception
{
return SQLVendorProvider.createVendor( H2Vendor.class );
}
}
|
apache/pulsar | 1,114 | pulsar-client-admin-api/src/main/java/org/apache/pulsar/common/policies/data/SubscriptionAuthMode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.common.policies.data;
/**
* Subscription authorization for Pulsar policies.
*/
public enum SubscriptionAuthMode {
/** Every subscription name can be used by every role. */
None,
/** Subscription name with auth role prefix can be used by the role. */
Prefix,
}
|
apache/pulsar | 1,114 | pulsar-client-admin-api/src/main/java/org/apache/pulsar/common/policies/data/TransactionLogStats.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.common.policies.data;
/**
* Transaction log stats.
*/
public class TransactionLogStats {
/** The managed ledger name. */
public String managedLedgerName;
/** The manage ledger internal stats. */
public ManagedLedgerInternalStats managedLedgerInternalStats;
}
|
apache/reef | 1,127 | lang/java/reef-common/src/main/java/org/apache/reef/driver/catalog/RackDescriptor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.driver.catalog;
import org.apache.reef.annotations.Unstable;
import java.util.List;
/**
* A rack in the cluster.
*/
@Unstable
public interface RackDescriptor extends ResourceCatalog.Descriptor {
/**
* @return the list of nodes in this rack.
*/
List<NodeDescriptor> getNodes();
}
|
apache/rocketmq-clients | 1,105 | java/client-apis/src/main/java/org/apache/rocketmq/client/apis/consumer/FilterExpressionType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.client.apis.consumer;
public enum FilterExpressionType {
/**
* Follows SQL92 standard.
*/
SQL92,
/**
* Only support or operation such as
* "tag1 || tag2 || tag3", <br>
* If null or * expression,meaning subscribe all.
*/
TAG
}
|
apache/rocketmq-clients | 1,115 | java/client/src/main/java/org/apache/rocketmq/client/java/hook/MessageInterceptorContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.client.java.hook;
public interface MessageInterceptorContext {
MessageHookPoints getMessageHookPoints();
MessageHookPointsStatus getStatus();
<T> Attribute<T> getAttribute(AttributeKey<T> key);
<T> void putAttribute(AttributeKey<T> key, Attribute<T> attribute);
}
|
apache/rocketmq | 1,136 | common/src/main/java/org/apache/rocketmq/common/consumer/ConsumeFromWhere.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.consumer;
public enum ConsumeFromWhere {
CONSUME_FROM_LAST_OFFSET,
@Deprecated
CONSUME_FROM_LAST_OFFSET_AND_FROM_MIN_WHEN_BOOT_FIRST,
@Deprecated
CONSUME_FROM_MIN_OFFSET,
@Deprecated
CONSUME_FROM_MAX_OFFSET,
CONSUME_FROM_FIRST_OFFSET,
CONSUME_FROM_TIMESTAMP,
}
|
apache/royale-compiler | 1,130 | compiler/src/main/java/org/apache/royale/compiler/tree/as/IBlockNode.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.royale.compiler.tree.as;
/**
* An AST node representing a block (e.g., a section of code
* enclosed in curly braces).
* <p>
* The shape of this node is
* IBlockNode
* IASNode <-- getChild(0)
* IASNode <-- getChild(1)
* ...
*/
public interface IBlockNode extends IASNode
{
}
|
apache/samza | 1,148 | samza-rest/src/main/java/org/apache/samza/monitor/MonitorFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.monitor;
import org.apache.samza.metrics.MetricsRegistry;
/**
* Factory to build {@link org.apache.samza.monitor.Monitor} using provided config.
*/
public interface MonitorFactory {
Monitor getMonitorInstance(String monitorName, MonitorConfig config, MetricsRegistry metricsRegistry)
throws Exception;
}
|
apache/seatunnel-web | 1,099 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/response/job/SchemaError.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.app.domain.response.job;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class SchemaError {
private String database;
private String tableName;
private String fieldName;
private SchemaErrorType errorType;
}
|
apache/seatunnel | 1,084 | seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/config/MessageFormat.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.kafka.config;
public enum MessageFormat {
JSON,
TEXT,
CANAL_JSON,
DEBEZIUM_JSON,
COMPATIBLE_DEBEZIUM_JSON,
COMPATIBLE_KAFKA_CONNECT_JSON,
OGG_JSON,
AVRO,
MAXWELL_JSON,
PROTOBUF,
NATIVE
}
|
apache/servicecomb-java-chassis | 1,078 | clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/model/MicroserviceResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.service.center.client.model;
public class MicroserviceResponse {
private Microservice service;
public Microservice getService() {
return service;
}
public void setService(Microservice service) {
this.service = service;
}
}
|
apache/shardingsphere | 1,097 | test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/dialect/opengauss/OpenGaussBinderIT.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.test.it.sql.binder.dialect.opengauss;
import org.apache.shardingsphere.test.it.sql.binder.SQLBinderIT;
import org.apache.shardingsphere.test.it.sql.binder.SQLBinderITSettings;
@SQLBinderITSettings("openGauss")
class OpenGaussBinderIT extends SQLBinderIT {
}
|
apache/shardingsphere | 1,097 | test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/dialect/sqlserver/SQLServerBinderIT.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.test.it.sql.binder.dialect.sqlserver;
import org.apache.shardingsphere.test.it.sql.binder.SQLBinderIT;
import org.apache.shardingsphere.test.it.sql.binder.SQLBinderITSettings;
@SQLBinderITSettings("SQLServer")
class SQLServerBinderIT extends SQLBinderIT {
}
|
apache/shenyu | 1,131 | shenyu-admin/src/test/java/org/apache/shenyu/admin/model/query/AppAuthQueryTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shenyu.admin.model.query;
import org.apache.shenyu.admin.AbstractReflectGetterSetterTest;
/**
* Test case for AppAuthQuery.
*/
public final class AppAuthQueryTest extends AbstractReflectGetterSetterTest {
@Override
protected Class<?> getTargetClass() {
return AppAuthQuery.class;
}
}
|
apache/shenyu | 1,131 | shenyu-disruptor/src/main/java/org/apache/shenyu/disruptor/common/Data.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shenyu.disruptor.common;
public class Data<T> {
private T data;
/**
* get data.
* @return data
*/
public T getData() {
return data;
}
/**
* set data.
* @param data data
*/
public void setData(final T data) {
this.data = data;
}
}
|
apache/shenyu | 1,133 | shenyu-admin/src/main/java/org/apache/shenyu/admin/aspect/annotation/Pageable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shenyu.admin.aspect.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Pageable.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Pageable {
}
|
apache/skywalking-java | 1,072 | test/plugin/scenarios/spring-6.x-scenario/src/main/java/test/apache/skywalking/apm/testcase/spring3/component/TestComponentBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package test.apache.skywalking.apm.testcase.spring3.component;
import org.springframework.stereotype.Component;
@Component
public class TestComponentBean {
public String componentMethod(String name) {
return name + "-" + "dealWith-component";
}
}
|
apache/skywalking-java | 1,098 | apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/ExitTypeSpan.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.apm.agent.core.context.trace;
import org.apache.skywalking.apm.agent.core.context.ContextCarrier;
/**
* The exit span has some additional behaviours
*/
public interface ExitTypeSpan {
String getPeer();
ExitTypeSpan inject(ContextCarrier carrier);
}
|
apache/skywalking | 1,113 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/remote/Deserializable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.remote;
import org.apache.skywalking.oap.server.core.remote.grpc.proto.RemoteData;
/**
* Covert the {@link RemoteData} received from the network to the current data entity.
*/
public interface Deserializable {
void deserialize(RemoteData remoteData);
}
|
apache/streampipes | 1,105 | streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/pe/runtime/IDataSinkRuntime.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.streampipes.extensions.api.pe.runtime;
import org.apache.streampipes.extensions.api.pe.IStreamPipesDataSink;
import org.apache.streampipes.model.graph.DataSinkInvocation;
public interface IDataSinkRuntime extends IStreamPipesRuntime<IStreamPipesDataSink, DataSinkInvocation> {
}
|
apache/submarine | 1,099 | submarine-server/server-core/src/main/java/org/apache/submarine/server/workbench/websocket/NotebookSocketListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.submarine.server.workbench.websocket;
/**
* NotebookSocket listener.
*/
public interface NotebookSocketListener {
void onClose(NotebookSocket socket, int code, String message);
void onOpen(NotebookSocket socket);
void onMessage(NotebookSocket socket, String message);
}
|
apache/synapse | 1,127 | modules/extensions/src/main/java/org/apache/synapse/format/syslog/ProtocolException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.synapse.format.syslog;
/**
* Exception used by {@link InputStreamConsumer}.
*/
public class ProtocolException extends Exception {
private static final long serialVersionUID = 8130321223000903222L;
public ProtocolException(String message) {
super(message);
}
}
|
apache/synapse | 1,142 | modules/core/src/main/java/org/apache/synapse/metrics/Counter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.synapse.metrics;
/*
* This is the basic unit to get Global, Proxy Service or
* Proxy Opertaion Level hit count.
*/
public class Counter {
private long count = 0;
public synchronized void increment(){
count++;
}
public long getCount() {
return count;
}
}
|
apache/syncope | 1,116 | core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/AnyAbout.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.core.persistence.api.entity;
public interface AnyAbout extends Entity {
Notification getNotification();
void setNotification(Notification notification);
AnyType getAnyType();
void setAnyType(AnyType anyType);
String get();
void set(String filter);
}
|
apache/tajo | 1,122 | tajo-common/src/main/java/org/apache/tajo/exception/ValueTooLongForTypeCharactersException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.exception;
public class ValueTooLongForTypeCharactersException extends RuntimeException {
private static final long serialVersionUID = -7689027447969916150L;
public ValueTooLongForTypeCharactersException(int size) {
super("value too long for type character(" + size + ")");
}
}
|
apache/tajo | 1,138 | tajo-common/src/main/java/org/apache/tajo/tuple/memory/FixedSizeLimitSpec.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.tuple.memory;
/**
* Fixed size limit specification
*/
public class FixedSizeLimitSpec extends ResizableLimitSpec {
public FixedSizeLimitSpec(long size) {
super(size, size);
}
public FixedSizeLimitSpec(long size, float allowedOverflowRatio) {
super(size, size, allowedOverflowRatio);
}
}
|
apache/tapestry-5 | 1,129 | tapestry-jpa/src/test/java/org/example/app1/entities/Thang.java | // Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.example.app1.entities;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
@Entity
public class Thang
{
@Id
@GeneratedValue
private Long id;
private String name;
public Long getId()
{
return id;
}
public void setId(final Long id)
{
this.id = id;
}
public String getName()
{
return name;
}
public void setName(final String name)
{
this.name = name;
}
}
|
apache/tapestry-5 | 1,129 | tapestry-jpa/src/test/java/org/example/app6/entities/Thang.java | // Copyright 2014 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.example.app6.entities;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
@Entity
public class Thang
{
@Id
@GeneratedValue
private Long id;
private String name;
public Long getId()
{
return id;
}
public void setId(final Long id)
{
this.id = id;
}
public String getName()
{
return name;
}
public void setName(final String name)
{
this.name = name;
}
}
|
apache/teaclave-java-tee-sdk | 1,082 | third-party-libs/bouncycastle-native/src/test/java/org/apache/teaclave/javasdk/thirdpartylibs/bouncycatsle/BcService.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.teaclave.javasdk.thirdpartylibs.bouncycatsle;
public interface BcService {
String sm2Service(String plainText);
String sm3Service(String plainText);
String digestService(String type, String plainText);
String rsaService(String plainText);
}
|
apache/tez | 1,116 | tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/shuffle/ShuffleEventHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tez.runtime.library.common.shuffle;
import java.io.IOException;
import java.util.List;
import org.apache.tez.runtime.api.Event;
public interface ShuffleEventHandler {
public void handleEvents(List<Event> events) throws IOException;
public void logProgress(boolean updateOnClose);
}
|
apache/trafodion | 1,165 | core/sqf/src/seabed/test/t284exc.java | //------------------------------------------------------------------
//
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
// @@@ END COPYRIGHT @@@
package com.hp.traf;
/**
* t284exc
*
* exception
*/
public class t284exc extends Exception {
/**
* constructor
*
* @param message message
*/
public t284exc(String message) {
super(message);
}
}
|
apache/uima-uimaj | 1,162 | uimafit-core/src/test/java/DefaultPackageAE.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.fit.component.JCasAnnotator_ImplBase;
import org.apache.uima.jcas.JCas;
/**
*/
public class DefaultPackageAE extends JCasAnnotator_ImplBase {
@Override
public void process(JCas aJCas) throws AnalysisEngineProcessException {
// does nothing
}
}
|
apache/usergrid | 1,105 | stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/qakka/serialization/Result.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.usergrid.persistence.qakka.serialization;
import com.datastax.driver.core.PagingState;
import java.util.List;
/**
* Created by Dave Johnson (snoopdave@apache.org) on 8/8/16.
*/
public interface Result<T> {
PagingState getPagingState();
List<T> getEntities();
}
|
apache/usergrid | 1,120 | stack/core/src/main/java/org/apache/usergrid/persistence/entities/FailedImportEntity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.usergrid.persistence.entities;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Contains state information for an entity within a FileImport the failed to load
*/
@XmlRootElement
public class FailedImportEntity extends FailedImport {
public FailedImportEntity() {
}
}
|
apache/wicket | 1,116 | wicket-core-tests/src/test/java/org/apache/wicket/markup/html/link/subdir/Page1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.markup.html.link.subdir;
import org.apache.wicket.markup.html.WebPage;
/**
* Mock page for testing autolinks
*
* @author Chris Turner
*/
public class Page1 extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*
*/
public Page1()
{
}
}
|
apache/xmlbeans | 1,156 | src/main/java/org/apache/xmlbeans/XmlENTITY.java | /* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xmlbeans;
import org.apache.xmlbeans.impl.schema.XmlObjectFactory;
/**
* Corresponds to the XML Schema
* <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#ENTITY">xs:ENTITY</a> type.
* <p>
* Convertible to {@link String}.
*/
public interface XmlENTITY extends XmlNCName {
XmlObjectFactory<XmlENTITY> Factory = new XmlObjectFactory<>("_BI_ENTITY");
/**
* The constant {@link SchemaType} object representing this schema type.
*/
SchemaType type = Factory.getType();
}
|
apache/xmlgraphics-fop | 1,146 | fop-core/src/main/java/org/apache/fop/svg/FOPTextHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package org.apache.fop.svg;
/** an fop extension to text handler */
public interface FOPTextHandler extends org.apache.xmlgraphics.java2d.TextHandler {
/** @param font override font */
void setOverrideFont(org.apache.fop.fonts.Font font);
/** @return font info */
org.apache.fop.fonts.FontInfo getFontInfo();
}
|
google/bindiff | 1,091 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultBackgroundDraggedLeftAction.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.states.CBackgroundDraggedLeftState;
import java.awt.event.MouseEvent;
public class CDefaultBackgroundDraggedLeftAction
implements IStateAction<CBackgroundDraggedLeftState> {
@Override
public void execute(final CBackgroundDraggedLeftState state, final MouseEvent event) {}
}
|
google/bindiff | 1,091 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultBackgroundPressedLeftAction.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.states.CBackgroundPressedLeftState;
import java.awt.event.MouseEvent;
public class CDefaultBackgroundPressedLeftAction
implements IStateAction<CBackgroundPressedLeftState> {
@Override
public void execute(final CBackgroundPressedLeftState state, final MouseEvent event) {}
}
|
google/binnavi | 1,097 | src/main/java/com/google/security/zynamics/binnavi/Gui/Debug/MemoryPanel/Implementations/CEvaluationException.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.binnavi.Gui.Debug.MemoryPanel.Implementations;
/**
* Exception class used to signal problems during memory expression evaluation.
*/
public class CEvaluationException extends Exception {
/**
* Used for serialization.
*/
private static final long serialVersionUID = 3125194323767803991L;
/**
* Creates a new exception object.
*
* @param msg Detailed exception message.
*/
public CEvaluationException(final String msg) {
super(msg);
}
}
|
google/closure-compiler | 1,121 | src/com/google/javascript/jscomp/parsing/parser/trees/IdentifierExpressionTree.java | /*
* Copyright 2011 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.javascript.jscomp.parsing.parser.trees;
import com.google.javascript.jscomp.parsing.parser.IdentifierToken;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class IdentifierExpressionTree extends ParseTree {
public final IdentifierToken identifierToken;
public IdentifierExpressionTree(SourceRange location, IdentifierToken identifierToken) {
super(ParseTreeType.IDENTIFIER_EXPRESSION, location);
this.identifierToken = identifierToken;
}
}
|
google/conscrypt | 1,138 | common/src/main/java/org/conscrypt/ct/SerializationException.java | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.conscrypt.ct;
import org.conscrypt.Internal;
@Internal
public class SerializationException extends Exception {
private static final long serialVersionUID = -5317873136664833411L;
public SerializationException() {
}
public SerializationException(String message) {
super(message);
}
public SerializationException(String message, Throwable cause) {
super(message, cause);
}
public SerializationException(Throwable cause) {
super(cause);
}
}
|
google/depan | 1,128 | DepanCore/prod/src/com/google/devtools/depan/graph/basic/AbstractEdgeMatcher.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.graph.basic;
import com.google.devtools.depan.graph.api.Edge;
import com.google.devtools.depan.graph.api.EdgeMatcher;
/**
* @author <a href="mailto:leeca@pnambic.com">Lee Carver</a>
*/
public abstract class AbstractEdgeMatcher<T> implements EdgeMatcher<T> {
@Override
public boolean edgeForward(Edge<T> edge) {
return relationForward(edge.getRelation());
}
@Override
public boolean edgeReverse(Edge<T> edge) {
return relationReverse(edge.getRelation());
}
}
|
google/graphicsfuzz | 1,103 | common/src/main/java/com/graphicsfuzz/common/transformreduce/MergedVariablesComponentData.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.transformreduce;
public class MergedVariablesComponentData {
private final int offset;
private final int width;
private final String name;
public MergedVariablesComponentData(int offset, int width, String name) {
this.offset = offset;
this.width = width;
this.name = name;
}
public int getOffset() {
return offset;
}
public int getWidth() {
return width;
}
public String getName() {
return name;
}
}
|
google/guava | 1,153 | android/guava/src/com/google/common/io/IgnoreJRERequirement.java | /*
* Copyright 2019 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.common.io;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Target;
/**
* Disables Animal Sniffer's checking of compatibility with older versions of Java/Android.
*
* <p>Each package's copy of this annotation needs to be listed in our {@code pom.xml}.
*/
@Target({METHOD, CONSTRUCTOR, TYPE, FIELD})
@interface IgnoreJRERequirement {}
|
google/j2cl | 1,111 | transpiler/javatests/com/google/j2cl/integration/java/allsimplebridges/Tester515.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package allsimplebridges;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
import jsinterop.annotations.JsType;
public class Tester515 {
@JsType
static interface I1 {
String get(String value);
}
static class C1 implements I1 {
C1() {}
@Override
public String get(String value) {
return "C1.get";
}
}
public static void test() {
C1 s = new C1();
assertTrue(s.get("").equals("C1.get"));
assertTrue(((I1) s).get("").equals("C1.get"));
}
}
|
google/j2cl | 1,125 | transpiler/javatests/com/google/j2cl/integration/java/staticfieldinitializer/Main.java | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package staticfieldinitializer;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
/**
* Test static field initializer.
*/
public class Main {
public static int simpleValue = 5;
public static int calculatedValue = simpleValue * 5;
public static int someStaticMethod() {
return simpleValue * calculatedValue;
}
public static void main(String... args) {
assertTrue(Main.simpleValue == 5);
assertTrue(Main.calculatedValue == 25);
assertTrue(Main.someStaticMethod() == 125);
}
}
|
google/j2cl | 1,189 | jre/java/module-info.java | /*
* Copyright 2020 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.
*/
module java.base {
exports java.io;
exports java.lang.annotation;
exports java.lang.invoke;
exports java.lang.reflect;
exports java.lang.runtime;
exports java.lang;
exports java.math;
exports java.nio.charset;
exports java.security;
exports java.sql;
exports java.util;
exports java.util.concurrent;
exports java.util.concurrent.atomic;
exports java.util.function;
exports java.util.logging;
exports java.util.stream;
exports javax.annotation.processing;
// TODO(goktug): Provide a public API for array stamping and stop exporting this.
exports javaemul.internal;
}
|
google/j2objc | 1,111 | jre_emul/android/platform/libcore/luni/src/test/java/libcore/javax/crypto/MockKey2.java | /*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package libcore.javax.crypto;
import java.security.Key;
/**
* A mock Key class used for testing.
*/
@SuppressWarnings("serial")
public class MockKey2 implements Key {
@Override
public String getAlgorithm() {
throw new UnsupportedOperationException("not implemented");
}
@Override
public String getFormat() {
return "MOCK";
}
@Override
public byte[] getEncoded() {
throw new UnsupportedOperationException("not implemented");
}
}
|
google/nomulus | 1,141 | core/src/main/java/google/registry/model/domain/secdns/package-info.java | // Copyright 2017 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
@XmlSchema(
namespace = "urn:ietf:params:xml:ns:secDNS-1.1",
xmlns = @XmlNs(prefix = "secDNS", namespaceURI = "urn:ietf:params:xml:ns:secDNS-1.1"),
elementFormDefault = XmlNsForm.QUALIFIED)
@XmlAccessorType(XmlAccessType.FIELD)
package google.registry.model.domain.secdns;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlNs;
import jakarta.xml.bind.annotation.XmlNsForm;
import jakarta.xml.bind.annotation.XmlSchema;
|
googleads/google-ads-java | 1,095 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/SimilarUserListInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/user_lists.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface SimilarUserListInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.SimilarUserListInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return Whether the seedUserList field is set.
*/
boolean hasSeedUserList();
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return The seedUserList.
*/
java.lang.String getSeedUserList();
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return The bytes for seedUserList.
*/
com.google.protobuf.ByteString
getSeedUserListBytes();
}
|
googleads/google-ads-java | 1,095 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/SimilarUserListInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/user_lists.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface SimilarUserListInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.SimilarUserListInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return Whether the seedUserList field is set.
*/
boolean hasSeedUserList();
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return The seedUserList.
*/
java.lang.String getSeedUserList();
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return The bytes for seedUserList.
*/
com.google.protobuf.ByteString
getSeedUserListBytes();
}
|
googleads/google-ads-java | 1,095 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/SimilarUserListInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/user_lists.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface SimilarUserListInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.SimilarUserListInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return Whether the seedUserList field is set.
*/
boolean hasSeedUserList();
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return The seedUserList.
*/
java.lang.String getSeedUserList();
/**
* <pre>
* Seed UserList from which this list is derived.
* </pre>
*
* <code>optional string seed_user_list = 2;</code>
* @return The bytes for seedUserList.
*/
com.google.protobuf.ByteString
getSeedUserListBytes();
}
|
googleapis/google-cloud-java | 1,047 | java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/DeleteEventsResponseOrBuilder.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/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
// Protobuf Java Version: 3.25.8
package com.google.devtools.clouderrorreporting.v1beta1;
public interface DeleteEventsResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,048 | java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsResponseOrBuilder.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/metadata_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.aiplatform.v1beta1;
public interface AddContextArtifactsAndExecutionsResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,049 | java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeprovisionOrBuilder.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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.saasplatform.saasservicemgmt.v1beta1;
public interface DeprovisionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision)
com.google.protobuf.MessageOrBuilder {}
|
hibernate/hibernate-ogm | 1,108 | core/src/main/java/org/hibernate/ogm/model/key/spi/EntityKeyMetadata.java | /*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.model.key.spi;
/**
* Stores metadata information common to all keys related to a given entity.
*
* @author Emmanuel Bernard <emmanuel@hibernate.org>
*/
public interface EntityKeyMetadata {
/**
* Get the name of the table representing the entity
*
* @return the entity table name
*/
String getTable();
/**
* This class should be treated as immutable. While we expose this array, you should never make changes to it! This
* is a design tradeoff vs. raw performance and memory usage.
*
* @return the name of the columns
*/
String[] getColumnNames();
/**
* Whether the given column is part of this key family or not.
*
* @param columnName the column to check
* @return {@code true} if the given column is part of this key, {@code false} otherwise.
*/
boolean isKeyColumn(String columnName);
}
|
hibernate/hibernate-orm | 1,024 | hibernate-core/src/test/java/org/hibernate/orm/test/mapping/converted/converter/lob/PostalArea.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.mapping.converted.converter.lob;
import org.hibernate.annotations.Immutable;
/**
* @author Steve Ebersole
*/
@Immutable
public enum PostalArea {
_78729( "78729", "North Austin", "Austin", State.TX );
private final String zipCode;
private final String name;
private final String cityName;
private final State state;
PostalArea(
String zipCode,
String name,
String cityName,
State state) {
this.zipCode = zipCode;
this.name = name;
this.cityName = cityName;
this.state = state;
}
public static PostalArea fromZipCode(String zipCode) {
if ( _78729.zipCode.equals( zipCode ) ) {
return _78729;
}
throw new IllegalArgumentException( "Unknown zip code" );
}
public String getZipCode() {
return zipCode;
}
public String getName() {
return name;
}
public String getCityName() {
return cityName;
}
public State getState() {
return state;
}
}
|
hibernate/hibernate-orm | 1,042 | hibernate-core/src/test/java/org/hibernate/orm/test/any/xml2/NamedIntegerProperty.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.any.xml2;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
@Entity
@Table(name="int_property")
public class NamedIntegerProperty implements NamedProperty {
private Integer id;
private String name;
private Integer value;
public NamedIntegerProperty() {
super();
}
public NamedIntegerProperty(int id, String name, Integer value) {
super();
this.id = id;
this.name = name;
this.value = value;
}
public String asString() {
return Integer.toString(value);
}
public String getName() {
return name;
}
@Id
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@Column(name = "`value`")
public Integer getValue() {
return value;
}
public void setValue(Integer value) {
this.value = value;
}
public void setName(String name) {
this.name = name;
}
}
|
hibernate/hibernate-orm | 1,056 | hibernate-core/src/test/java/org/hibernate/orm/test/type/descriptor/java/LocalTimeJavaTypeDescriptorTest.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.type.descriptor.java;
import java.sql.Time;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.ZoneOffset;
import org.hibernate.type.descriptor.java.LocalTimeJavaType;
import org.hibernate.testing.orm.junit.BaseUnitTest;
import org.hibernate.testing.orm.junit.JiraKey;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
@BaseUnitTest
public class LocalTimeJavaTypeDescriptorTest {
@Test
@JiraKey("HHH-17229")
public void testWrap() {
final LocalTimeJavaType javaType = LocalTimeJavaType.INSTANCE;
final Time sqlTime = new Time(
LocalDate.EPOCH.atTime( LocalTime.of( 0, 1, 2, 0 ) )
.toInstant( ZoneOffset.ofHours( 4 ) )
.plusMillis( 123 )
.toEpochMilli()
);
final LocalTime wrappedSqlTime = javaType.wrap( sqlTime, null );
assertThat( wrappedSqlTime ).isEqualTo( LocalTime.of( 20, 1, 2, 123_000_000 ) );
}
}
|
hibernate/hibernate-orm | 1,060 | hibernate-core/src/test/java/org/hibernate/orm/test/annotations/backquotes/Bug.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.annotations.backquotes;
import java.util.List;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Index;
import jakarta.persistence.JoinTable;
import jakarta.persistence.ManyToMany;
import jakarta.persistence.Table;
@Entity
@Table(indexes = @Index(name="`titleindex`", columnList = "`title`"))
public class Bug
{
@Id
@Column(name="`bug_id`")
private int id;
@Column(name="`title`")
private String title;
@ManyToMany
@JoinTable(name="`bug_category`")
private List<Category> categories;
public List<Category> getCategories() {
return categories;
}
public void setCategories(List<Category> categories) {
this.categories = categories;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}
|
hibernate/hibernate-orm | 1,104 | hibernate-core/src/main/java/org/hibernate/mapping/PrimitiveArray.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.mapping;
import java.util.function.Supplier;
import org.hibernate.boot.spi.MetadataBuildingContext;
import org.hibernate.resource.beans.spi.ManagedBean;
import org.hibernate.usertype.UserCollectionType;
/**
* A primitive array has a primary key consisting of the key columns + index column.
*/
public class PrimitiveArray extends Array {
public PrimitiveArray(MetadataBuildingContext buildingContext, PersistentClass owner) {
super( buildingContext, owner );
}
public PrimitiveArray(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) {
super( customTypeBeanResolver, owner, buildingContext );
}
private PrimitiveArray(PrimitiveArray original) {
super( original );
}
@Override
public Array copy() {
return new PrimitiveArray( this );
}
public boolean isPrimitiveArray() {
return true;
}
public Object accept(ValueVisitor visitor) {
return visitor.accept(this);
}
}
|
hibernate/hibernate-search | 1,024 | backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/schema/management/impl/ElasticsearchIndexLifecycleExecutionOptions.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.backend.elasticsearch.schema.management.impl;
import org.hibernate.search.backend.elasticsearch.index.IndexStatus;
/**
* @author Gunnar Morling
*/
public class ElasticsearchIndexLifecycleExecutionOptions {
private final IndexStatus requiredStatus;
private final int requiredStatusTimeoutInMs;
public ElasticsearchIndexLifecycleExecutionOptions(
IndexStatus requiredStatus, int requiredStatusTimeoutInMs) {
this.requiredStatus = requiredStatus;
this.requiredStatusTimeoutInMs = requiredStatusTimeoutInMs;
}
/**
* @return the status the index needs to be at least in, otherwise we'll fail starting up.
*/
public IndexStatus getRequiredStatus() {
return requiredStatus;
}
/**
* @return the time to wait for the {@link #getRequiredStatus() required index status}, in milliseconds.
*/
public int getRequiredStatusTimeoutInMs() {
return requiredStatusTimeoutInMs;
}
}
|
openjdk/jdk8 | 1,147 | hotspot/agent/src/share/classes/sun/jvm/hotspot/asm/ImmediateOrRegister.java | /*
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
package sun.jvm.hotspot.asm;
public abstract class ImmediateOrRegister extends Operand {
}
|
openjdk/jdk8 | 1,147 | langtools/test/tools/javac/diags/examples/InaccessibleVarargsType/p1/B.java | /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p1;
public class B extends A {
public B() {}
public void foo(A... args) { }
}
|
openjdk/jdk8 | 1,152 | langtools/test/com/sun/javadoc/testMemberInheritence/diamond/A.java | /*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package diamond;
//6256068
public interface A {
/**
* aDoc.
*/
void aMethod();
}
|
openjdk/jdk8 | 1,153 | langtools/test/tools/javac/diags/examples/UnreachableStatement.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.unreachable.stmt
class X {
void m() {
return;
m();
}
}
|
openjdk/jdk8 | 1,154 | langtools/test/tools/javac/diags/examples/UnderscoreAsIdentifier.java | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.warn.underscore.as.identifier
class UnderscoreAsIdentifier {
String _ = null;
}
|
openjdk/jdk8 | 1,155 | langtools/test/tools/javac/staticImport/6695838/a/FooInterface.java | /*
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package a;
import a.Foo.InnerInterface;
public interface FooInterface extends Foo.InnerInterface {}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.