repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/plc4x
1,055
plc4j/tools/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.scraper.triggeredscraper; import org.apache.plc4x.java.scraper.Scraper; /** * MBean for {@link Scraper} */ public interface TriggeredScraperMBean { boolean isRunning(); int getNumberOfActiveTasks(); }
apache/polygene-java
1,061
tutorials/introduction/twominutes/src/main/java/org/apache/polygene/demo/twominute/Speaker.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.demo.twominute; import org.apache.polygene.api.mixin.Mixins; // START SNIPPET: documentation @Mixins( SpeakerMixin.class ) public interface Speaker { String sayHello(); } // END SNIPPET: documentation
apache/pulsar
1,065
pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/protocol/MetadataResolver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.client.impl.auth.oauth2.protocol; import java.io.IOException; /** * Resolves OAuth 2.0 authorization server metadata as described in RFC 8414. */ public interface MetadataResolver { Metadata resolve() throws IOException; }
apache/pulsar
1,069
pulsar-client-admin-api/src/main/java/org/apache/pulsar/common/policies/data/ResourceGroup.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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; import lombok.Data; @Data public class ResourceGroup { private Integer publishRateInMsgs; private Long publishRateInBytes; private Integer dispatchRateInMsgs; private Long dispatchRateInBytes; }
apache/qpid-broker-j
1,063
broker-core/src/test/java/org/apache/qpid/server/model/testmodels/hierarchy/TestHybridEngine.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.qpid.server.model.testmodels.hierarchy; import org.apache.qpid.server.model.ManagedObject; @ManagedObject (category = false) public interface TestHybridEngine<X extends TestHybridEngine<X>> extends TestEngine<X>, TestRechargeable { }
apache/qpid-broker-j
1,083
broker-core/src/main/java/org/apache/qpid/server/model/GroupProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.model; import java.security.Principal; import java.util.Set; @ManagedObject public interface GroupProvider<X extends GroupProvider<X>> extends ConfiguredObject<X> { Set<Principal> getGroupPrincipalsForUser(Principal userPrincipal); }
apache/ranger
1,064
security-admin/src/main/java/org/apache/ranger/common/annotation/RangerAnnotationJSMgrName.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * */ package org.apache.ranger.common.annotation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * */ @Retention(RetentionPolicy.RUNTIME) public @interface RangerAnnotationJSMgrName { String value(); }
apache/reef
1,083
lang/java/reef-tests/src/main/java/org/apache/reef/tests/evaluatorreuse/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * This package contains a test of the Evaluator reuse. It submits the EchoTask several times to the same Evaluator. * This test also incidentally tests whether the memento is transferred correctly from and to the Task. */ package org.apache.reef.tests.evaluatorreuse;
apache/rocketmq-dashboard
1,077
src/main/java/org/apache/rocketmq/dashboard/model/request/AclRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.dashboard.model.request; import lombok.Data; import org.apache.rocketmq.auth.migration.v1.PlainAccessConfig; @Data public class AclRequest { private PlainAccessConfig config; private String topicPerm; private String groupPerm; }
apache/royale-compiler
1,073
royale-maven-plugin/src/main/java/org/apache/royale/maven/ClassExclude.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.maven; /** */ public class ClassExclude { private String className; public String getClassName() { return className; } public void setClassName(String className) { this.className = className; } }
apache/seatunnel-web
1,042
seatunnel-datasource/seatunnel-datasource-client/src/main/java/org/apache/seatunnel/datasource/DataSourceClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.datasource; import org.apache.seatunnel.datasource.annotation.ThreadSafe; @ThreadSafe public class DataSourceClient extends AbstractDataSourceClient { public DataSourceClient() { super(); } }
apache/servicecomb-java-chassis
1,060
edge/edge-core/src/main/java/org/apache/servicecomb/edge/core/EdgeRestServerVerticle.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.edge.core; import org.apache.servicecomb.transport.rest.vertx.RestServerVerticle; public class EdgeRestServerVerticle extends RestServerVerticle { @Override public void start() throws Exception { super.start(); } }
apache/shardingsphere-elasticjob
1,026
spring/namespace/src/test/java/org/apache/shardingsphere/elasticjob/spring/namespace/fixture/service/FooServiceImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shardingsphere.elasticjob.spring.namespace.fixture.service; public class FooServiceImpl implements FooService { @Override public String foo() { return "this is fooService."; } }
apache/shardingsphere
1,044
infra/common/src/test/java/org/apache/shardingsphere/infra/props/fixture/typed/PropertiesTypedSPIFixtureImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shardingsphere.infra.props.fixture.typed; public final class PropertiesTypedSPIFixtureImpl implements PropertiesTypedSPIFixture { @Override public String getType() { return "TYPED.SPI.PROPS"; } }
apache/shardingsphere
1,066
infra/common/src/test/java/org/apache/shardingsphere/infra/instance/util/IpUtilsTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shardingsphere.infra.instance.util; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertNotNull; class IpUtilsTest { @Test void assertGetIp() { assertNotNull(IpUtils.getIp()); } }
apache/skywalking-java
1,038
apm-sniffer/optional-plugins/mybatis-3.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/mybatis/Constants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.skywalking.apm.plugin.mybatis; public class Constants { public static final String MYBATIS_SHELL_METHOD_NAME = "mybatis_shell_method_name"; public static final Object COLLECTED_FLAG = new Object(); }
apache/skywalking
1,054
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/watermark/WatermarkEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.watermark; import lombok.Data; @Data public class WatermarkEvent { private final Type type; public enum Type { HEAP_MEMORY_USAGE_PERCENTAGE, DIRECT_HEAP_MEMORY_USAGE, } }
apache/skywalking
1,055
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/exporter/ExporterService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.exporter; import org.apache.skywalking.oap.server.library.module.Service; public interface ExporterService<T> extends Service { void start(); void export(T data); boolean isEnabled(); }
apache/solr
1,074
solr/api/src/java/org/apache/solr/client/api/model/CreateCollectionSnapshotRequestBody.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.client.api.model; import com.fasterxml.jackson.annotation.JsonProperty; public class CreateCollectionSnapshotRequestBody { @JsonProperty(value = "followAliases", defaultValue = "false") public boolean followAliases; public String async; }
apache/solr
1,094
solr/api/src/java/org/apache/solr/client/api/model/BackupDeletionData.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.client.api.model; import com.fasterxml.jackson.annotation.JsonProperty; public class BackupDeletionData { @JsonProperty public String startTime; @JsonProperty public Integer backupId; @JsonProperty public Long size; @JsonProperty public Integer numFiles; }
apache/solr
1,096
solr/core/src/java/org/apache/solr/cluster/events/NodesDownEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.cluster.events; import java.util.Iterator; /** Event generated when some nodes went down. */ public interface NodesDownEvent extends ClusterEvent { @Override default EventType getType() { return EventType.NODES_DOWN; } Iterator<String> getNodeNames(); }
apache/stanbol
1,035
ontologymanager/sources/clerezza/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/AbstractClerezzaGraphInputSource.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.ontologymanager.ontonet.api.io; @Deprecated public abstract class AbstractClerezzaGraphInputSource extends org.apache.stanbol.ontologymanager.sources.clerezza.AbstractClerezzaGraphInputSource { }
apache/streampipes
1,048
streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/migration/MigrationComparison.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.migration; public class MigrationComparison { public static boolean isEqual(IModelMigrator<?, ?> first, IModelMigrator<?, ?> second) { return first.config().equals(second.config()); } }
apache/synapse
1,077
modules/commons/src/main/java/org/apache/synapse/commons/jmx/MBeanRepository.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.commons.jmx; /** */ public interface MBeanRepository { public void addMBean(String name, Object MBean); public Object getMBean(String name); public void removeMBean(String name); public void clear(); }
apache/syncope
1,061
core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/dao/keymaster/ConfParamDAO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.dao.keymaster; import org.apache.syncope.core.persistence.api.dao.DAO; import org.apache.syncope.core.persistence.api.entity.keymaster.ConfParam; public interface ConfParamDAO extends DAO<ConfParam> { }
apache/syncope
1,064
core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/dao/keymaster/DomainDAO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.dao.keymaster; import org.apache.syncope.core.persistence.api.dao.DAO; import org.apache.syncope.core.persistence.api.entity.keymaster.DomainEntity; public interface DomainDAO extends DAO<DomainEntity> { }
apache/tapestry-5
1,063
tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentInstanceProcessor.java
// Copyright 2009 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.internal.services; import java.lang.annotation.*; /** * Marker for {@link org.apache.tapestry5.services.ComponentEventResultProcessor} to identify the particular * implementation used for handling {@link org.apache.tapestry5.runtime.Component} instances (i.e., pages). */ @Target({ElementType.PARAMETER, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ComponentInstanceProcessor { }
apache/tapestry-5
1,075
tapestry-core/src/main/java/org/apache/tapestry5/services/PageDocumentGenerator.java
// Copyright 2008 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.services; import org.apache.tapestry5.dom.Document; /** * Interface used to programatically render a page, forming a {@link org.apache.tapestry5.dom.Document} which can then * be manipulated or {@linkplain org.apache.tapestry5.dom.Document#toMarkup(java.io.PrintWriter) streamed to a * PrintWriter}. */ public interface PageDocumentGenerator { /** * Renders the page. */ Document render(String logicalPageName); }
apache/tomee
1,083
container/openejb-jee/src/main/java/org/apache/openejb/jee/TimerConsumer.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.jee; import java.util.List; /** * @version $Rev$ $Date$ */ public interface TimerConsumer { NamedMethod getTimeoutMethod(); void setTimeoutMethod(NamedMethod value); String getTimerConsumerName(); List<Timer> getTimer(); }
apache/uniffle
1,078
common/src/main/java/org/apache/uniffle/common/exception/InvalidRequestException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.uniffle.common.exception; public class InvalidRequestException extends RssException { public InvalidRequestException(String message) { super(message); } public InvalidRequestException(String message, Throwable e) { super(message, e); } }
apache/wicket
1,084
wicket-core/src/main/java/org/apache/wicket/javascript/IJavaScriptCompressor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.javascript; import org.apache.wicket.resource.ITextResourceCompressor; /** * Allow for different implementation of a javascript compressor * * @author Juergen Donnerstag */ public interface IJavaScriptCompressor extends ITextResourceCompressor { }
google-cloudsearch/connector-sdk
1,050
identity/src/main/java/com/google/enterprise/cloudsearch/sdk/identity/IdentityStateLoader.java
/* * Copyright © 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.enterprise.cloudsearch.sdk.identity; import java.io.IOException; /** Abstract object to load initial {@link IdentityState} */ public interface IdentityStateLoader { /** * Returns {@link IdentityState} synced with Google. * * @return {@link IdentityState} synced with Google. * @throws IOException if retrieval of previously synced identities fails */ IdentityState getInitialIdentityState() throws IOException; }
google/bindiff
1,052
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/layouters/HierarchicOrientation.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.layouters; public enum HierarchicOrientation { VERTICAL, HORIZONTAL; public static HierarchicOrientation parseInt(final int orientation) { if (orientation == VERTICAL.ordinal()) { return VERTICAL; } else if (orientation == HORIZONTAL.ordinal()) { return HORIZONTAL; } else { throw new IllegalStateException("Internal Error: Invalid orientation value"); } } }
google/binnavi
1,061
src/main/java/com/google/security/zynamics/binnavi/disassembly/CNaviInstructionAddressComparator.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.disassembly; import java.io.Serializable; import java.util.Comparator; /** * This class compares two INaviInstructions by there respective instruction addresses. */ public class CNaviInstructionAddressComparator implements Comparator<INaviInstruction>, Serializable { @Override public int compare(final INaviInstruction o1, final INaviInstruction o2) { return o1.getAddress().compareTo(o2.getAddress()); } }
google/caliper
1,100
caliper-util/src/main/java/com/google/caliper/util/Stderr.java
/* * Copyright (C) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.caliper.util; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; import javax.inject.Qualifier; /** A binding annotation for standard err. */ @Retention(RUNTIME) @Target({FIELD, PARAMETER, METHOD}) @Qualifier public @interface Stderr {}
google/caliper
1,100
caliper-util/src/main/java/com/google/caliper/util/Stdout.java
/* * Copyright (C) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.caliper.util; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; import javax.inject.Qualifier; /** A binding annotation for standard out. */ @Retention(RUNTIME) @Target({FIELD, PARAMETER, METHOD}) @Qualifier public @interface Stdout {}
google/cel-java
1,092
common/src/main/java/dev/cel/common/types/CelProtoMessageTypes.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. package dev.cel.common.types; import dev.cel.expr.Type; import com.google.protobuf.Descriptors.Descriptor; /** * Utility class for working with {@link Type} that require a full protobuf dependency (i.e: * descriptors). */ public final class CelProtoMessageTypes { /** Create a message {@code Type} for {@code Descriptor}. */ public static Type createMessage(Descriptor descriptor) { return CelProtoTypes.createMessage(descriptor.getFullName()); } private CelProtoMessageTypes() {} }
google/closure-templates
1,074
java/src/com/google/template/soy/shared/restricted/ExternMigration.java
/* * Copyright 2021 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.template.soy.shared.restricted; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; /** * Optional annotation for SoySourceFunction indicating that uses can be migrated to an equivalent * extern. */ @Target(TYPE) @Retention(RUNTIME) public @interface ExternMigration { String file(); String name() default ""; }
google/crunchy
1,072
crunchy/java/src/main/java/com/google/security/crunchy/internal/algs/sign/SubtleSigner.java
// Copyright 2017 The CrunchyCrypt 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.security.crunchy.algs.sign; import java.security.GeneralSecurityException; /** An interface for asymmetric cryptographic signing. */ public interface SubtleSigner { /** * Signs a message. * * @param message The message to be signed. * @return The signature of the message. * @throws GeneralSecurityException If the underlying crypto library returns an error. */ byte[] sign(byte[] message) throws GeneralSecurityException; }
google/depan
1,078
DepanJson/prod/src/com/google/devtools/depan/pushjson/ElementHandler.java
/* * Copyright 2017 The Depan Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.devtools.depan.pushjson; import java.math.BigDecimal; import java.math.BigInteger; public interface ElementHandler { ElementHandler newObject(); void endObject(); void fieldName(String text); void newArray(); void endArray(); void withString(String stringValue); void withBigInteger(BigInteger bigIntegerValue); void withBigDecimal(BigDecimal bigDecimalValue); void withBoolean(boolean boolValue); void withNull(); }
google/graphicsfuzz
1,069
generator/src/main/java/com/graphicsfuzz/generator/fuzzer/FuzzedIntoACornerException.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.generator.fuzzer; /* This class is used to catch cases where fuzzing has failed and needs to backtrack, * e.g. where we need a mat4 l-value and do not have one. An alternative to consider * is to ensure that fuzzing always succeeds by generating additional program constructs * where necessary */ public class FuzzedIntoACornerException extends RuntimeException { private static final long serialVersionUID = 1L; }
google/guava
1,081
android/guava-testlib/src/com/google/common/collect/testing/features/Feature.java
/* * Copyright (C) 2008 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.collect.testing.features; import com.google.common.annotations.GwtCompatible; import java.util.Set; /** * Base class for enumerating the features of an interface to be tested. * * @param <T> The interface whose features are to be enumerated. * @author George van den Driessche */ @GwtCompatible public interface Feature<T> { /** Returns the set of features that are implied by this feature. */ Set<Feature<? super T>> getImpliedFeatures(); }
google/guava
1,086
guava-testlib/src/com/google/common/collect/testing/TestListGenerator.java
/* * Copyright (C) 2007 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import java.util.List; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Creates sets, containing sample elements, to be tested. * * @author Kevin Bourrillion */ @GwtCompatible @NullMarked public interface TestListGenerator<E extends @Nullable Object> extends TestCollectionGenerator<E> { @Override List<E> create(Object... elements); }
google/guice
1,099
core/src/com/google/inject/multibindings/StringMapKey.java
/* * Copyright (C) 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.inject.multibindings; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; /** * Allows {@literal @}{@link ProvidesIntoMap} to specify a string map key. * * @since 4.0 */ @MapKey(unwrapValue = true) @Documented @Target(METHOD) @Retention(RUNTIME) public @interface StringMapKey { String value(); }
google/j2cl
1,052
transpiler/javatests/com/google/j2cl/readable/java/localclasswithconstructor/LocalClassWithConstructor.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 localclasswithconstructor; public class LocalClassWithConstructor { public void test(final int p) { final int localVar = 1; // local class with non-default constructor and this() call class LocalClass { public int field; public LocalClass(int a, int b) { field = localVar + a + b; } public LocalClass(int a) { this(a, p); field = localVar; } } new LocalClass(1); } }
google/j2cl
1,083
transpiler/java/com/google/j2cl/common/visitor/ProcessorError.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. */ package com.google.j2cl.common.visitor; /** Wrapper for exceptions thrown from processors. */ public class ProcessorError extends Error { public ProcessorError(Object context, Object node, Throwable cause) { super("Context:\n\n" + context + "\n"); initCause( context != node ? new ProcessorError("Error while processing:\n\n" + node + "\n", cause) : cause); } private ProcessorError(String msg, Throwable cause) { super(msg, cause); } }
google/oss-fuzz
1,104
projects/apache-commons-compress/CompressorGzipFuzzer.java
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT 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.commons.compress.compressors.gzip.GzipCompressorInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; public class CompressorGzipFuzzer extends BaseTests { public static void fuzzerTestOneInput(byte[] data) { try { fuzzCompressorInputStream(new GzipCompressorInputStream(new ByteArrayInputStream(data))); } catch (IOException ignored) { } } }
google/sagetv
1,116
third_party/Ogle/java/sage/dvd/sml_pbi_audio_t.java
/* * Copyright 2015 The SageTV Authors. All Rights Reserved. * * Adapted from Ogle - A video player * Copyright (C) 2000, 2001 Håkan Hjort * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ package sage.dvd; class sml_pbi_audio_t extends Struct { public Unsigned32 stp_ptm1 = new Unsigned32(); public Unsigned32 stp_ptm2 = new Unsigned32(); public Unsigned32 gap_len1 = new Unsigned32(); public Unsigned32 gap_len2 = new Unsigned32(); }
googleads/google-ads-java
1,035
google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/ProductLegacyConditionInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v19/common/criteria.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v19.common; public interface ProductLegacyConditionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.ProductLegacyConditionInfo) com.google.protobuf.MessageOrBuilder { /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return Whether the value field is set. */ boolean hasValue(); /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return The value. */ java.lang.String getValue(); /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); }
googleads/google-ads-java
1,035
google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/ProductLegacyConditionInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v20/common/criteria.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v20.common; public interface ProductLegacyConditionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.ProductLegacyConditionInfo) com.google.protobuf.MessageOrBuilder { /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return Whether the value field is set. */ boolean hasValue(); /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return The value. */ java.lang.String getValue(); /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); }
googleads/google-ads-java
1,035
google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/ProductLegacyConditionInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v21/common/criteria.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v21.common; public interface ProductLegacyConditionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.ProductLegacyConditionInfo) com.google.protobuf.MessageOrBuilder { /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return Whether the value field is set. */ boolean hasValue(); /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return The value. */ java.lang.String getValue(); /** * <pre> * String value of the product legacy condition. * </pre> * * <code>optional string value = 1;</code> * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); }
googleads/google-ads-java
1,043
google-ads-stubs-lib/src/main/java/com/google/ads/googleads/lib/stubs/annotations/DefaultExceptionFactory.java
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // 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.ads.googleads.lib.stubs.annotations; /** * The default value for the googleAdsExceptionFactory method in VersionDescriptor.java. Ensures * that all VersionDescriptor annotations contain a googleAdsExceptionFactory parameter. */ class DefaultExceptionFactory { public DefaultExceptionFactory() throws Exception { throw new Exception( "VersionDescriptor annotation missing googleAdsExceptionFactory parameter."); } }
googleads/google-ads-java
1,045
google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/CustomIntentInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v19/common/criteria.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v19.common; public interface CustomIntentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.CustomIntentInfo) com.google.protobuf.MessageOrBuilder { /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return Whether the customIntent field is set. */ boolean hasCustomIntent(); /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return The customIntent. */ java.lang.String getCustomIntent(); /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return The bytes for customIntent. */ com.google.protobuf.ByteString getCustomIntentBytes(); }
googleads/google-ads-java
1,045
google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/CustomIntentInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v20/common/criteria.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v20.common; public interface CustomIntentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.CustomIntentInfo) com.google.protobuf.MessageOrBuilder { /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return Whether the customIntent field is set. */ boolean hasCustomIntent(); /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return The customIntent. */ java.lang.String getCustomIntent(); /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return The bytes for customIntent. */ com.google.protobuf.ByteString getCustomIntentBytes(); }
googleads/google-ads-java
1,045
google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/CustomIntentInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v21/common/criteria.proto // Protobuf Java Version: 3.25.7 package com.google.ads.googleads.v21.common; public interface CustomIntentInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.CustomIntentInfo) com.google.protobuf.MessageOrBuilder { /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return Whether the customIntent field is set. */ boolean hasCustomIntent(); /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return The customIntent. */ java.lang.String getCustomIntent(); /** * <pre> * The CustomInterest resource name. * </pre> * * <code>optional string custom_intent = 2;</code> * @return The bytes for customIntent. */ com.google.protobuf.ByteString getCustomIntentBytes(); }
googleapis/google-cloud-java
1,026
java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyReportableTypeEnumOrBuilder.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/ads/admanager/v1/custom_targeting_key_enums.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; public interface CustomTargetingKeyReportableTypeEnumOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum) com.google.protobuf.MessageOrBuilder {}
hibernate/hibernate-orm
1,024
hibernate-core/src/test/java/org/hibernate/orm/test/ternary/Employee.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.ternary; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * @author Gavin King */ public class Employee { private String name; private Date hireDate; private Map managerBySite = new HashMap(); private Set underlings = new HashSet(); Employee() {} public Employee(String name) { this.name=name; } public Map getManagerBySite() { return managerBySite; } public void setManagerBySite(Map managerBySite) { this.managerBySite = managerBySite; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUnderlings() { return underlings; } public void setUnderlings(Set underlings) { this.underlings = underlings; } public Date getHireDate() { return hireDate; } public void setHireDate(Date hireDate) { this.hireDate = hireDate; } }
hibernate/hibernate-orm
1,026
hibernate-core/src/main/java/org/hibernate/boot/models/annotations/internal/IdJpaAnnotation.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.boot.models.annotations.internal; import java.lang.annotation.Annotation; import java.util.Map; import org.hibernate.models.spi.ModelsContext; import jakarta.persistence.Id; @SuppressWarnings({ "ClassExplicitlyAnnotation", "unused" }) @jakarta.annotation.Generated("org.hibernate.orm.build.annotations.ClassGeneratorProcessor") public class IdJpaAnnotation implements Id { /** * Used in creating dynamic annotation instances (e.g. from XML) */ public IdJpaAnnotation(ModelsContext modelContext) { } /** * Used in creating annotation instances from JDK variant */ public IdJpaAnnotation(Id annotation, ModelsContext modelContext) { } /** * Used in creating annotation instances from Jandex variant */ public IdJpaAnnotation(Map<String, Object> attributeValues, ModelsContext modelContext) { } @Override public Class<? extends Annotation> annotationType() { return Id.class; } }
hibernate/hibernate-reactive
1,025
hibernate-reactive-core/src/main/java/org/hibernate/reactive/provider/service/ReactiveMarkerServiceInitiator.java
/* Hibernate, Relational Persistence for Idiomatic Java * * SPDX-License-Identifier: Apache-2.0 * Copyright: Red Hat Inc. and Hibernate Authors */ package org.hibernate.reactive.provider.service; import java.util.Map; import org.hibernate.boot.registry.StandardServiceInitiator; import org.hibernate.service.spi.ServiceRegistryImplementor; /** * A Hibernate {@linkplain StandardServiceInitiator service initiator} for * {@link ReactiveMarkerService}. */ public final class ReactiveMarkerServiceInitiator implements StandardServiceInitiator<ReactiveMarkerService> { public static final ReactiveMarkerServiceInitiator INSTANCE = new ReactiveMarkerServiceInitiator(); private ReactiveMarkerServiceInitiator(){} @Override public ReactiveMarkerService initiateService(final Map configurationValues, final ServiceRegistryImplementor registry) { return ReactiveMarkerServiceSingleton.INSTANCE; } @Override public Class<ReactiveMarkerService> getServiceInitiated() { return ReactiveMarkerService.class; } }
hibernate/hibernate-search
1,032
engine/src/main/java/org/hibernate/search/engine/backend/document/model/dsl/spi/ImplicitFieldCollector.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.search.engine.backend.document.model.dsl.spi; import org.hibernate.search.engine.backend.types.IndexFieldType; import org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactory; import org.hibernate.search.util.common.annotation.Incubating; @Incubating public interface ImplicitFieldCollector { /** * Returned factory can be used to easily create a field type for {@link #addImplicitField(String, IndexFieldType)}. * * @return A factory for types of index fields. */ IndexFieldTypeFactory indexFieldTypeFactory(); /** * Create a new implicit field. It is expected that the field will be present in the created index. Mapping will not * be modified. * * @param fieldName The relative name of the field * @param indexFieldType The type of the field * @param <F> The type of values for the field */ <F> void addImplicitField(String fieldName, IndexFieldType<F> indexFieldType); }
hibernate/hibernate-search
1,034
backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/aggregation/impl/AggregationExtractContext.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.search.backend.lucene.search.aggregation.impl; import org.hibernate.search.backend.lucene.lowlevel.collector.impl.CollectorKey; import org.hibernate.search.backend.lucene.lowlevel.join.impl.NestedDocsProvider; import org.hibernate.search.backend.lucene.search.predicate.impl.PredicateRequestContext; import org.hibernate.search.engine.backend.types.converter.runtime.FromDocumentValueConvertContext; import org.apache.lucene.index.IndexReader; import org.apache.lucene.search.Collector; import org.apache.lucene.search.Query; public interface AggregationExtractContext { PredicateRequestContext toPredicateRequestContext(String absolutePath); IndexReader getIndexReader(); FromDocumentValueConvertContext fromDocumentValueConvertContext(); <C extends Collector, T> T getCollectorResults(CollectorKey<C, T> key); NestedDocsProvider createNestedDocsProvider(String nestedDocumentPath, Query nestedFilter); }
hibernate2011/RosClient
1,093
app/src/main/java/com/jilk/ros/rosbridge/indication/AsArray.java
/** * Copyright (c) 2014 Jilk Systems, Inc. * * This file is part of the Java ROSBridge Client. * * The Java ROSBridge Client is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Java ROSBridge Client 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 for more details. * * You should have received a copy of the GNU General Public License * along with the Java ROSBridge Client. If not, see http://www.gnu.org/licenses/. * */ package com.jilk.ros.rosbridge.indication; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface AsArray { }
openjdk/jdk8
1,097
langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/ParamTest.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg2; public class ParamTest<E> { }
openjdk/jdk8
1,107
langtools/test/com/sun/javadoc/AccessAsciiArt/p1/subpkg/SSC.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 p1.subpkg; public class SSC extends p1.SC { }
openjdk/jdk8
1,113
langtools/test/com/sun/javadoc/testNavigation/pkg/E.java
/* * Copyright (c) 2003, 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. */ package pkg; /** * Sample Enum. */ public enum E {}
openjdk/jdk8
1,114
langtools/test/com/sun/javadoc/testModifier/Interface.java
/* * Copyright (c) 1999, 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. */ public interface Interface { public void method(); }
openjdk/jdk8
1,114
langtools/test/com/sun/javadoc/testSubTitle/pkg/C.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 pkg; /** * Source file for C */ public class C { }
openjdk/jdk8
1,115
langtools/test/tools/javac/processing/6634138/Dummy.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. */ /** * A dummy class to be compiled. */ public class Dummy {}
openjdk/jdk8
1,117
langtools/test/tools/javac/ImportCycle/foo/Middle2.java
/* * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package foo; public interface Middle2 extends Bottom2 { }
openjdk/jdk8
1,122
langtools/test/com/sun/javadoc/testJavaFX/D.java
/* * Copyright (c) 2012, 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. */ /** * @expert Expert tag text */ public class D extends C {}
openjdk/jtreg
1,114
test/modlibs/buildAction/usermods/BuildUserModClass.java
/* * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @build um1/module-info um1/um1_p1.um1_p1_B */
openjdk/jtreg
1,142
test/processid/Test.java
/* * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test */ public class Test { public static void main(String[] args) { } }
oracle-samples/oracle-db-examples
1,039
java/23ai-springboot3-jpa-ucp/src/main/java/com/oracle/dev/jdbc/springboot3/jpa/ucp/EmployeeRepository.java
/* Copyright (c) 2024, Oracle and/or its affiliates. This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 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.oracle.dev.jdbc.springboot3.jpa.ucp; import org.springframework.data.jpa.repository.JpaRepository; interface EmployeeRepository extends JpaRepository<Employee, Long> { }
oracle/coherence
1,073
prj/coherence-core/src/main/java/com/oracle/coherence/common/base/Disposable.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.common.base; /** * The Disposable interface is used for life-cycle management of resources. * * Disposable is also AutoCloseable and thus is compatible with the try-with-resources pattern. * * @author ch 2010.01.11 */ public interface Disposable extends AutoCloseable { /** * Invoked when all resources owned by the implementer can safely be * released. * <p> * Once disposed of the object should no longer be considered to be * usable. * <p> * Note the Disposable interface is compatible with try-with-resources which will automatically * invoke this method. */ public void dispose(); /** * Default implementation invokes {@link #dispose}, it is not recommended that this be overridden. */ @Override public default void close() { dispose(); } }
oracle/nosql
1,069
kvmain/src/main/java/oracle/nosql/common/sklogger/measure/MeasureResultProcessor.java
/*- * Copyright (c) 2011, 2022 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package oracle.nosql.common.sklogger.measure; import oracle.nosql.common.jss.JsonSerializable; /** * Processes a measure result. */ public interface MeasureResultProcessor { /** * Prepare before processing a batch of results. */ void prepare(long obtainTimeMillis); /** * Processes an obtained result. */ void process(JsonSerializable result); /** * Processes an occurred error. */ default void process(Throwable t) { } /** * Finish after processing a batch of results. */ default void finish() { } }
apache/commons-rdf
1,081
commons-rdf-jena/src/test/java/org/apache/commons/rdf/jena/TestGraphJena.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.rdf.jena; import org.apache.commons.rdf.api.AbstractGraphTest; import org.apache.commons.rdf.api.RDF; public class TestGraphJena extends AbstractGraphTest { @Override public RDF createFactory() { return new JenaRDF(); } }
apache/curator
1,062
curator-framework/src/main/java/org/apache/curator/framework/api/transaction/TransactionDeleteBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.curator.framework.api.transaction; import org.apache.curator.framework.api.Pathable; import org.apache.curator.framework.api.Versionable; public interface TransactionDeleteBuilder<T> extends Pathable<T>, Versionable<Pathable<T>> {}
apache/cxf
1,084
testutils/src/main/java/org/apache/cxf/customer/book/BookNotFoundDetails.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.customer.book; import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class BookNotFoundDetails { private long id; public long getId() { return id; } public void setId(long id) { this.id = id; } }
apache/directory-kerby
1,081
kerby-pkix/src/main/java/org/apache/kerby/x509/type/ExtendedKeyUsage.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.kerby.x509.type; import org.apache.kerby.asn1.type.Asn1SequenceOf; /** * <pre> * extendedKeyUsage ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId * </pre> */ public class ExtendedKeyUsage extends Asn1SequenceOf<KeyPurposeId> { }
apache/directory-server
1,069
protocol-ntp/src/main/java/org/apache/directory/server/ntp/service/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ /** * Provides the implementation of the {@link org.apache.directory.server.ntp.NtpService}. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.ntp.service;
apache/directory-studio
1,039
tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/SchemaEditorBot.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.directory.studio.test.integration.ui.bots; public class SchemaEditorBot extends BaseSchemaEditorBot { public SchemaEditorBot( String title ) { super( title ); } }
apache/doris-spark-connector
1,035
spark-doris-connector/spark-doris-connector-base/src/main/java/org/apache/doris/spark/client/write/DorisCommitter.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.spark.client.write; import java.io.Serializable; public interface DorisCommitter extends Serializable { void commit(String message) throws Exception; void abort(String message) throws Exception; }
apache/druid
1,078
multi-stage-query/src/main/java/org/apache/druid/msq/rpc/ResourcePermissionMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.msq.rpc; import org.apache.druid.server.security.ResourceAction; import java.util.List; public interface ResourcePermissionMapper { List<ResourceAction> getAdminPermissions(); List<ResourceAction> getQueryPermissions(String queryId); }
apache/dubbo-go-samples
1,036
java_interop/non-protobuf-triple/java-client/src/main/java/org/apache/dubbo/tri/hessian2/api/GreetRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.tri.hessian2.api; public class GreetRequest implements java.io.Serializable { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }
apache/dubbo-go-samples
1,036
java_interop/non-protobuf-triple/java-server/src/main/java/org/apache/dubbo/tri/hessian2/api/GreetRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.tri.hessian2.api; public class GreetRequest implements java.io.Serializable { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }
apache/dubbo-samples
1,049
10-task/dubbo-samples-shop/dubbo-samples-shop-user-api/src/main/java/org/apache/dubbo/samples/UserService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.samples; public interface UserService { boolean register(User user); User login(String username, String password); User timeoutLogin(String username, String password); User getInfo(String username); }
apache/dubbo-spi-extensions
1,041
dubbo-rpc-extensions/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/message/HttpMessageEncode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.protocol.rest.message; import org.apache.dubbo.common.URL; public interface HttpMessageEncode<OutputStream> { void encode(OutputStream outputStream, Object unSerializedBody, URL url) throws Exception; }
apache/dubbo
1,066
dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/MetadataServiceDetector.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.metadata; import org.apache.dubbo.rpc.model.BuiltinServiceDetector; public class MetadataServiceDetector implements BuiltinServiceDetector { @Override public Class<?> getService() { return MetadataService.class; } }
apache/fineract
1,054
fineract-core/src/main/java/org/apache/fineract/infrastructure/event/external/config/TaskExecutorConstant.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.event.external.config; public final class TaskExecutorConstant { private TaskExecutorConstant() {} public static final String EVENT_MARKS_AS_SENT_EXECUTOR_BEAN_NAME = "eventMarksAsSentExecutor"; }
apache/fineract
1,059
fineract-provider/src/main/java/org/apache/fineract/infrastructure/sms/data/request/SmsUpdateRequest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.sms.data.request; import java.io.Serial; import java.io.Serializable; public record SmsUpdateRequest(String message) implements Serializable { @Serial private static final long serialVersionUID = 1L; }
apache/fineract
1,075
fineract-cob/src/main/java/org/apache/fineract/cob/data/OldestCOBProcessedLoanDTO.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.cob.data; import java.time.LocalDate; import java.util.List; import lombok.Data; @Data public class OldestCOBProcessedLoanDTO { private List<Long> loanIds; private LocalDate cobProcessedDate; private LocalDate cobBusinessDate; }
apache/geode
1,073
geode-junit/src/main/java/org/apache/geode/management/internal/cli/commands/TestObjectSizer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.management.internal.cli.commands; import org.apache.geode.cache.Declarable; import org.apache.geode.cache.util.ObjectSizer; public class TestObjectSizer implements ObjectSizer, Declarable { @Override public int sizeof(Object o) { return 77; } }
apache/gobblin
1,077
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/cluster/TemporalWorker.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.temporal.cluster; /** Marker interface for a temporal.io "worker", with capability to `start()` and `shutdown()` */ public interface TemporalWorker { /** Starts the worker */ void start(); /** Shuts down the worker */ void shutdown(); }
apache/groovy
1,081
src/test/groovy/org/codehaus/groovy/transform/ClassImplementingANonPublicInterface.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.codehaus.groovy.transform; /** * Implementation of a package-scoped interface. * Fix for GROOVY-3380 */ public class ClassImplementingANonPublicInterface implements NonPublicInterface { public String returnConstant() { return CONSTANT; } }
apache/hadoop
1,049
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/NodeUpdateType.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.yarn.api.records; /** * <p>Taxonomy of the <code>NodeState</code> that a * <code>Node</code> might transition into.</p> * */ public enum NodeUpdateType { NODE_USABLE, NODE_UNUSABLE, NODE_DECOMMISSIONING }
apache/hadoop
1,081
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/tools/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * S3A Command line tools independent of S3Guard. */ @InterfaceAudience.Private @InterfaceStability.Unstable package org.apache.hadoop.fs.s3a.tools; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/hawq
1,053
src/pl/pljava/src/java/examples/org/postgresql/example/SetOfRecordTest.java
/* * Copyright (c) 2004 TADA AB - Taby Sweden * Distributed under the terms shown in the file COPYRIGHT * found in the root directory of this distribution or at * http://eng.tada.se/osprojects/COPYRIGHT.html */ package org.postgresql.example; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.postgresql.pljava.ResultSetHandle; public class SetOfRecordTest implements ResultSetHandle { private final PreparedStatement m_statement; public static ResultSetHandle executeSelect(String selectSQL) throws SQLException { return new SetOfRecordTest(selectSQL); } public SetOfRecordTest(String selectSQL) throws SQLException { Connection conn = DriverManager .getConnection("jdbc:default:connection"); m_statement = conn.prepareStatement(selectSQL); } public void close() throws SQLException { m_statement.close(); } public ResultSet getResultSet() throws SQLException { return m_statement.executeQuery(); } }
apache/hop
1,093
engine/src/main/java/org/apache/hop/pipeline/transforms/dummy/DummyData.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.pipeline.transforms.dummy; import org.apache.hop.pipeline.transform.BaseTransformData; import org.apache.hop.pipeline.transform.ITransformData; public class DummyData extends BaseTransformData implements ITransformData { public DummyData() { super(); } }
apache/iceberg
1,073
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/LogUtil.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.flink.maintenance.operator; class LogUtil { static final String MESSAGE_PREFIX = "[For table {} with {}[{}] at {}]: "; static final String MESSAGE_FORMAT_PREFIX = "[For table %s with {%s}[{%d}] at {%d}]: "; private LogUtil() {} }
apache/iceberg
1,087
core/src/test/java/org/apache/iceberg/avro/TestAvroPartitionStatsHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.avro; import org.apache.iceberg.FileFormat; import org.apache.iceberg.PartitionStatsHandlerTestBase; public class TestAvroPartitionStatsHandler extends PartitionStatsHandlerTestBase { public FileFormat format() { return FileFormat.AVRO; } }