repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/ignite-3
1,063
modules/rest-api/src/main/java/org/apache/ignite/internal/rest/api/deployment/InitialDeployMode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.rest.api.deployment; import io.swagger.v3.oas.annotations.media.Schema; /** Initial set of nodes to deploy. */ @Schema(description = "Initial set of nodes to deploy.") public enum InitialDeployMode { MAJORITY, ALL }
apache/ignite-3
1,081
modules/core/src/main/java/org/apache/ignite/internal/util/TrackerClosedException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.util; /** * Exception that will be thrown when the {@link PendingComparableValuesTracker} is closed. */ public class TrackerClosedException extends RuntimeException { private static final long serialVersionUID = -3685913884384983930L; }
apache/incubator-datalab
1,050
services/self-service/src/main/java/com/epam/datalab/backendapi/domain/SchedulerConfigurationData.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.epam.datalab.backendapi.domain; import lombok.Data; import javax.validation.constraints.NotNull; @Data public class SchedulerConfigurationData { private final boolean enabled; @NotNull private final String cron; }
apache/incubator-kie-drools
1,044
drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.mvel.compiler; public class PersonHolder { private Person person; public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; } }
apache/incubator-kie-drools
1,063
drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeReference.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.model; public class TypeReference<T> { public final Class<?> rawType; public TypeReference(Class<?> rawType) { this.rawType = rawType; } public Class<T> getType() { return (Class<T>) rawType; } }
apache/incubator-kie-drools
1,063
drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ResourceProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.wiring.api; import java.io.IOException; import java.io.InputStream; import java.net.URL; public interface ResourceProvider { URL getResource( String name ); InputStream getResourceAsStream( String name ) throws IOException; }
apache/incubator-kie-drools
1,064
kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Filter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.trisotech.model.api; import org.kie.dmn.model.api.Expression; public interface Filter extends Expression { Expression getIn(); Expression getMatch(); void setIn(Expression expr); void setMatch(Expression expr); }
apache/incubator-kie-drools
1,068
drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex4.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.model; import org.drools.model.functions.Function4; public interface BetaIndex4<A, B, C, D, E, V> extends BetaIndexN<A, V> { Function4<B, C, D, E, ?> getRightOperandExtractor(); default int getArity() { return 4; } }
apache/incubator-kie-drools
1,079
kie-api/src/main/java/org/kie/api/event/rule/ObjectInsertedEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.api.event.rule; import org.kie.api.definition.rule.Rule; import org.kie.api.runtime.rule.FactHandle; public interface ObjectInsertedEvent extends RuleRuntimeEvent { FactHandle getFactHandle(); Object getObject(); Rule getRule(); }
apache/incubator-kie-optaplanner
1,056
core/optaplanner-core-impl/src/main/java/org/optaplanner/core/config/solver/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. */ @XmlSchema( namespace = SolverConfig.XML_NAMESPACE, elementFormDefault = XmlNsForm.QUALIFIED) package org.optaplanner.core.config.solver; import jakarta.xml.bind.annotation.XmlNsForm; import jakarta.xml.bind.annotation.XmlSchema;
apache/incubator-retired-slider
1,056
slider-core/src/main/java/org/apache/slider/server/appmaster/AppMasterActionOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.slider.server.appmaster; import org.apache.slider.server.appmaster.operations.RMOperationHandlerActions; /** * Interface of AM operations */ public interface AppMasterActionOperations extends RMOperationHandlerActions { }
apache/incubator-retired-wave
1,064
wave/src/main/java/org/waveprotocol/wave/client/wavepanel/view/RootThreadView.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.waveprotocol.wave.client.wavepanel.view; /** * The topmost thread in a conversation. * */ public interface RootThreadView extends ThreadView { @Override ConversationView getParent(); @Override ReplyBoxView getReplyIndicator(); }
apache/incubator-seata-samples
1,045
at-sample/spring-seata/src/main/java/org/apache/seata/service/AccountService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seata.service; /** * The interface Account service. */ public interface AccountService { /** * 余额扣款 * * @param userId 用户ID * @param money 扣款金额 */ void debit(String userId, int money); }
apache/iotdb-extras
1,062
examples/mybatisplus-generator/src/main/java/org/apache/iotdb/service/Table1Service.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.service; import org.apache.iotdb.entity.Table1; import com.baomidou.mybatisplus.extension.service.IService; /** * 服务类 * * @author IoTDB * @since 2025-06-24 */ public interface Table1Service extends IService<Table1> {}
apache/iotdb-extras
1,062
examples/mybatisplus-generator/src/main/java/org/apache/iotdb/service/Table2Service.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.service; import org.apache.iotdb.entity.Table2; import com.baomidou.mybatisplus.extension.service.IService; /** * 服务类 * * @author IoTDB * @since 2025-06-24 */ public interface Table2Service extends IService<Table2> {}
apache/iotdb-web-workbench
1,083
backend/src/main/java/org/apache/iotdb/admin/mapper/ViewModeMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.admin.mapper; import org.apache.iotdb.admin.model.entity.ViewMode; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.springframework.stereotype.Component; @Component public interface ViewModeMapper extends BaseMapper<ViewMode> {}
apache/iotdb
1,062
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/ClusterSchemaQuotaLevel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.commons.schema; public enum ClusterSchemaQuotaLevel { TIMESERIES(0), DEVICE(1); private final int code; ClusterSchemaQuotaLevel(int code) { this.code = code; } public int getCode() { return code; } }
apache/jclouds
1,075
loadbalancer/src/main/java/org/jclouds/loadbalancer/reference/LoadBalancerConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.loadbalancer.reference; public final class LoadBalancerConstants { public static final String LOADBALANCER_LOGGER = "jclouds.loadbalancer"; private LoadBalancerConstants() { throw new AssertionError("intentionally unimplemented"); } }
apache/jclouds
1,090
compute/src/main/java/org/jclouds/compute/strategy/SuspendNodeStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.compute.strategy; import org.jclouds.compute.domain.NodeMetadata; /** * Reboots a node unless it is in the state {@link org.jclouds.compute.domain.NodeState#SUSPENDED suspended} */ public interface SuspendNodeStrategy { NodeMetadata suspendNode(String id); }
apache/jena
1,044
jena-extras/jena-serviceenhancer/src/main/java/org/apache/jena/sparql/service/enhancer/slice/impl/SliceMetaDataWithPages.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.sparql.service.enhancer.slice.impl; import org.apache.jena.sparql.service.enhancer.slice.api.SliceMetaDataBasic; public interface SliceMetaDataWithPages extends SliceMetaDataBasic { int getPageSize(); }
apache/jena
1,051
jena-fuseki2/jena-fuseki-main/src/test/java/org/apache/jena/fuseki/main/access/TestFusekiSecurityAssemblerShared.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.fuseki.main.access; public class TestFusekiSecurityAssemblerShared extends AbstractTestFusekiSecurityAssembler { public TestFusekiSecurityAssemblerShared() { super(DIR+"assem-security-shared.ttl"); } }
apache/jena
1,083
jena-shacl/src/test/java/org/apache/jena/shacl/tests/jena_shacl/TS_JenaShacl.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.shacl.tests.jena_shacl; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; @Suite @SelectClasses({ // jena tests TestJenaShaclByCode.class, TestJenaShacl.class } ) public class TS_JenaShacl { }
apache/jmeter
1,074
src/components/src/main/java/org/apache/jmeter/extractor/BeanShellPostProcessorBeanInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jmeter.extractor; import org.apache.jmeter.util.BeanShellBeanInfoSupport; public class BeanShellPostProcessorBeanInfo extends BeanShellBeanInfoSupport { public BeanShellPostProcessorBeanInfo() { super(BeanShellPostProcessor.class); } }
apache/kafka
1,091
metadata/src/main/java/org/apache/kafka/metadata/placement/PlacementSpec.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.metadata.placement; import org.apache.kafka.common.annotation.InterfaceStability; /** * Specifies a replica placement that we want to make. */ @InterfaceStability.Unstable public record PlacementSpec(int startPartition, int numPartitions, short numReplicas) { }
apache/karaf
1,084
shell/core/src/main/java/org/apache/karaf/shell/api/console/SignalListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.karaf.shell.api.console; /** * Define a listener to receive signals */ public interface SignalListener { /** * Callback method called when a signal occurs. * * @param signal the signal event. */ void signal(Signal signal); }
apache/linkis
1,063
linkis-public-enhancements/linkis-configuration/src/test/java/org/apache/linkis/configuration/Scan.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.configuration; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.mybatis.spring.annotation.MapperScan; @EnableAutoConfiguration @MapperScan("org.apache.linkis.configuration.dao") public class Scan {}
apache/logging-log4j2
1,052
log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/CompositeFilterComponentBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.logging.log4j.core.config.builder.api; /** * Wraps multiple Filter Component builders. * * @since 2.4 */ public interface CompositeFilterComponentBuilder extends FilterableComponentBuilder<CompositeFilterComponentBuilder> {}
apache/lucene
1,105
lucene/core/src/java/org/apache/lucene/index/ImpactsEnum.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.lucene.index; /** * Extension of {@link PostingsEnum} which also provides information about upcoming impacts. * * @lucene.experimental */ public abstract class ImpactsEnum extends PostingsEnum implements ImpactsSource { /** Sole constructor. */ protected ImpactsEnum() {} }
apache/maven-plugins
1,065
maven-javadoc-plugin/src/test/resources/unit/quotedpath'test/quotedpath/test/App.java
package quotedpath.test; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class App { public static void main( String[] args ) { System.out.println( "Sample Application." ); } protected void sampleMethod( String str ) { System.out.println( str ); } }
apache/maven-surefire
1,072
maven-surefire-common/src/test/java/org/apache/maven/surefire/spi/DefaultImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.surefire.spi; /** * @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a> * @since 2.20 */ public class DefaultImpl implements IDefault { @Override public boolean isDefault() { return true; } }
apache/maven
1,071
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellCommandRegistryFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.cling.invoker.mvnsh; import org.apache.maven.cling.invoker.LookupContext; import org.jline.console.CommandRegistry; public interface ShellCommandRegistryFactory { CommandRegistry createShellCommandRegistry(LookupContext context); }
apache/metamodel
1,095
core/src/main/java/org/apache/metamodel/factory/ResourceFactory.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.metamodel.factory; import org.apache.metamodel.util.Resource; public interface ResourceFactory { public boolean accepts(ResourceProperties properties); public Resource create(ResourceProperties properties) throws UnsupportedResourcePropertiesException; }
apache/nifi
1,027
nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/exception/SNMPClientInitializationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.snmp.exception; public class SNMPClientInitializationException extends SNMPException { public SNMPClientInitializationException(final String errorMessage) { super(errorMessage); } }
apache/openwebbeans
1,064
webbeans-impl/src/test/java/org/apache/webbeans/test/interceptors/inheritance/DeckType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.interceptors.inheritance; import java.util.List; public interface DeckType { public String getName(); public void shuffle(); public void setIntercepted(String name); public List<String> getInterceptors(); }
apache/pekko-samples
1,064
pekko-sample-persistence-dc-java/src/test/java/sample/persisetnce/multidc/SerializationSpec.java
package sample.persisetnce.multidc; import org.apache.pekko.actor.testkit.typed.javadsl.TestKitJunitResource; import org.junit.ClassRule; import org.junit.Test; import sample.persistence.res.counter.ThumbsUpCounter; public class SerializationSpec { @ClassRule public static final TestKitJunitResource testKit = new TestKitJunitResource(); @Test public void testSerialization() { testKit.serializationTestKit().verifySerialization(new ThumbsUpCounter.GaveThumbsUp("id1"), false); testKit.serializationTestKit().verifySerialization(new ThumbsUpCounter.State(), false); testKit.serializationTestKit().verifySerialization(new ThumbsUpCounter.GetCount("r1", testKit.<Long>createTestProbe().ref()), false); testKit.serializationTestKit().verifySerialization(new ThumbsUpCounter.GetUsers("r1", testKit.<ThumbsUpCounter.State>createTestProbe().ref()), false); testKit.serializationTestKit().verifySerialization(new ThumbsUpCounter.GiveThumbsUp("r1", "u1", testKit.<Long>createTestProbe().ref()), false); } }
apache/pig
1,124
src/org/apache/pig/builtin/SIN.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.pig.builtin; /** * SIN implements a binding to the Java function * {@link java.lang.Math#sin(double) Math.sin(double)}. * Given a single data atom it Returns the sine of the argument. * */ public class SIN extends DoubleBase{ Double compute(Double input){ return Math.sin(input); } }
apache/pinot
1,056
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/merger/columnar/ForceOverwriteMerger.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.segment.local.upsert.merger.columnar; public class ForceOverwriteMerger implements PartialUpsertColumnMerger { @Override public Object merge(Object previousValue, Object currentValue) { return currentValue; } }
apache/pinot
1,066
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/StringResultResponse.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.controller.api.resources; public final class StringResultResponse { private final String _result; public StringResultResponse(String result) { _result = result; } public String getResult() { return _result; } }
apache/plc4x-extras
1,055
plc4j/examples/plc4j-s7event/src/main/java/org/apache/plc4x/examples/plc4j/s7event/PlcWriteS71200.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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.examples.plc4j.s7event; public class PlcWriteS71200 { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here } }
apache/polygene-java
1,047
libraries/sql-generator/src/main/java/org/apache/polygene/library/sql/generator/grammar/modification/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 syntax elements relevant to SQL modification clauses ({@code INSERT INTO}, {@code DELETE FROM}, and {@code UPDATE}). */ package org.apache.polygene.library.sql.generator.grammar.modification;
apache/polygene-java
1,066
core/runtime/src/test/java/org/apache/polygene/runtime/query/model/entities/PersonEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.runtime.query.model.entities; import org.apache.polygene.api.entity.EntityComposite; import org.apache.polygene.runtime.query.model.Person; public interface PersonEntity extends Person, EntityComposite { }
apache/polygene-java
1,081
core/testsupport/src/main/java/org/apache/polygene/test/model/Nameable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.test.model; import org.apache.polygene.api.identity.HasIdentity; import org.apache.polygene.api.property.Property; /** * JAVADOC Add JavaDoc */ public interface Nameable extends HasIdentity { Property<String> name(); }
apache/pulsar
1,095
pulsar-common/src/main/java/org/apache/pulsar/common/util/Hash.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.util; /** * This interface declares a hash function. */ public interface Hash { /** * Generate the hash of a given byte array. * * @return The hash of {@code b}, which is non-negative integer. */ int makeHash(byte[] b); }
apache/qpid-broker-j
1,069
broker-core/src/main/java/org/apache/qpid/server/store/ConfiguredObjectIdDependency.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.store; import org.apache.qpid.server.model.ConfiguredObject; import java.util.UUID; public interface ConfiguredObjectIdDependency<C extends ConfiguredObject<C>> extends ConfiguredObjectDependency<C> { UUID getId(); }
apache/qpid-broker-j
1,071
broker-core/src/main/java/org/apache/qpid/server/model/BrokerConnectionLimitProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 org.apache.qpid.server.security.limit.ConnectionLimitProvider; @ManagedObject public interface BrokerConnectionLimitProvider<X extends BrokerConnectionLimitProvider<X>> extends ConnectionLimitProvider<X> { }
apache/ratis
1,076
ratis-test/src/test/java/org/apache/ratis/server/simulation/TestGroupInfoWithSimulatedRpc.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.server.simulation; import org.apache.ratis.server.impl.GroupInfoBaseTest; public class TestGroupInfoWithSimulatedRpc extends GroupInfoBaseTest<MiniRaftClusterWithSimulatedRpc> implements MiniRaftClusterWithSimulatedRpc.FactoryGet { }
apache/royale-compiler
1,067
compiler/src/main/java/org/apache/royale/compiler/tree/as/INonResolvingIdentifierNode.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.royale.compiler.tree.as; /** * A marker interface to expose identifiers which need not resolve to a * definition. Example : property name identifiers on a dynamic object. */ public interface INonResolvingIdentifierNode { }
apache/seatunnel-web
1,053
seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/dal/mapper/JobInstanceHistoryMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.app.dal.mapper; import org.apache.seatunnel.app.dal.entity.JobInstanceHistory; import com.baomidou.mybatisplus.core.mapper.BaseMapper; public interface JobInstanceHistoryMapper extends BaseMapper<JobInstanceHistory> {}
apache/seatunnel
1,027
seatunnel-connectors-v2/connector-iotdb/src/main/java/org/apache/seatunnel/connectors/seatunnel/iotdb/serialize/SeaTunnelRowSerializer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.connectors.seatunnel.iotdb.serialize; import org.apache.seatunnel.api.table.type.SeaTunnelRow; public interface SeaTunnelRowSerializer { IoTDBRecord serialize(SeaTunnelRow seaTunnelRow); }
apache/seatunnel
1,029
seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/state/CKAggCommitInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.connectors.seatunnel.clickhouse.state; import java.io.Serializable; public class CKAggCommitInfo implements Serializable { private static final long serialVersionUID = 7725191558817348241L; }
apache/seatunnel
1,032
seatunnel-connectors-v2/connector-kudu/src/main/java/org/apache/seatunnel/connectors/seatunnel/kudu/state/KuduAggregatedCommitInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.connectors.seatunnel.kudu.state; import java.io.Serializable; public class KuduAggregatedCommitInfo implements Serializable { private static final long serialVersionUID = 1942126095088508489L; }
apache/servicecomb-java-chassis
1,036
foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/server/TcpBufferHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.foundation.vertx.server; import io.vertx.core.buffer.Buffer; /** * TcpBufferHandler * * */ public interface TcpBufferHandler { void handle(long msgId, Buffer headerBuffer, Buffer bodyBuffer); }
apache/servicecomb-samples
1,042
java-chassis-samples/use-log4j2-sample/src/main/java/org/apache/servicecomb/samples/uselog4j2/HelloImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.samples.uselog4j2; import org.apache.servicecomb.provider.pojo.RpcSchema; @RpcSchema(schemaId = "hello") public class HelloImpl implements Hello { public String hello() { return "Hello World!"; } }
apache/servicecomb-samples
1,047
ServiceComb-SpringMVC/src/main/java/com/huawei/servicecomb/controller/ServicecombspringmvcDelegate.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.huawei.servicecomb.controller; import org.springframework.stereotype.Component; @Component public class ServicecombspringmvcDelegate { public String helloworld(String name) { // Do Some Magic Here! return name; } }
apache/servicemix
1,058
examples/cxf/cxf-wsn/cxf-wsn-base/src/main/java/org/apache/servicemix/examples/cxf/base/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. */ @XmlSchema( namespace = "urn:org.apache.servicemix:wsn", elementFormDefault = XmlNsForm.QUALIFIED) package org.apache.servicemix.examples.cxf.base; import javax.xml.bind.annotation.XmlNsForm; import javax.xml.bind.annotation.XmlSchema;
apache/shardingsphere
1,050
infra/common/src/main/java/org/apache/shardingsphere/infra/config/rule/function/EnhancedRuleConfiguration.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.config.rule.function; import org.apache.shardingsphere.infra.config.rule.RuleConfiguration; /** * Enhanced rule configuration. */ public interface EnhancedRuleConfiguration extends RuleConfiguration { }
apache/solr
1,076
solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/DefaultZkCredentialsInjector.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.common.cloud; import java.util.Collections; import java.util.List; public class DefaultZkCredentialsInjector implements ZkCredentialsInjector { @Override public List<ZkCredential> getZkCredentials() { return Collections.emptyList(); } }
apache/solr
1,094
solr/api/src/java/org/apache/solr/client/api/model/IndexType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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; public enum IndexType { COLLECTION("collections"), CORE("cores"); private final String pathString; IndexType(String pathString) { this.pathString = pathString; } @Override public String toString() { return pathString; } }
apache/storm
1,091
storm-client/src/jvm/org/apache/storm/streams/operations/IdentityFunction.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package org.apache.storm.streams.operations; /** * A {@link Function} that returns the input argument itself as the result. * * @param <T> the type of the input */ public class IdentityFunction<T> implements Function<T, T> { @Override public T apply(T input) { return input; } }
apache/streampipes
1,031
streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/template/instances/DefaultPipelineTemplateProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.manager.template.instances; import org.apache.streampipes.model.template.CompactPipelineTemplate; public interface DefaultPipelineTemplateProvider { CompactPipelineTemplate getTemplate(); }
apache/synapse
1,085
modules/core/src/main/java/org/apache/synapse/metrics/MetricsConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.synapse.metrics; /** * */ public final class MetricsConstants { public static final String GLOBAL_REQUEST_COUNTER = "__GLOBAL_REQUEST_COUNTER__"; public static final String REQUEST_RECEIVED_TIME = "__REQUEST_RECEIVED_TIME__"; }
apache/syncope
1,051
core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/job/StoppableSchedTaskJobDelegate.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.core.provisioning.api.job; public interface StoppableSchedTaskJobDelegate extends SchedTaskJobDelegate { /** * Request the current Job to stop the execution of the running Task. */ void stop(); }
apache/syncope
1,059
core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/policy/AccessPolicy.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.core.persistence.api.entity.policy; import org.apache.syncope.common.lib.policy.AccessPolicyConf; public interface AccessPolicy extends Policy { AccessPolicyConf getConf(); void setConf(AccessPolicyConf conf); }
apache/tinkerpop
1,047
hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/mapreduce/MapReduceGraphComputer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.tinkerpop.gremlin.hadoop.process.computer.mapreduce; /** * @author Marko A. Rodriguez (http://markorodriguez.com) */ public final class MapReduceGraphComputer { // TODO: A MapReduce implementation of GraphComputer }
apache/tomee
1,063
tck/microprofile-tck/config/src/test/java/org/apache/tomee/microprofile/tck/config/ConfigurationBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomee.microprofile.tck.config; import org.eclipse.microprofile.config.ConfigProvider; public class ConfigurationBean { public String getConfig() { return ConfigProvider.getConfig().getValue("config.test", String.class); } }
apache/tomee
1,093
container/openejb-api/src/main/java/org/apache/openejb/api/LocalClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.api; import java.lang.annotation.Target; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface LocalClient { }
apache/tsfile
1,092
java/tsfile/src/test/java/org/apache/tsfile/read/common/FieldTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.tsfile.read.common; import org.apache.tsfile.exception.NullFieldException; import org.junit.Test; public class FieldTest { @Test(expected = NullFieldException.class) public void construct() { Field field = new Field(null); field.getIntV(); } }
apache/uniffle
1,087
common/src/main/java/org/apache/uniffle/common/metrics/EmptyGRPCMetrics.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.metrics; import org.apache.uniffle.common.config.RssConf; public class EmptyGRPCMetrics extends GRPCMetrics { public EmptyGRPCMetrics(RssConf rssConf, String tags) { super(rssConf, tags); } @Override public void registerMetrics() {} }
apache/wicket
1,069
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/autolink/SubPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup.html.autolink; /** * */ public class SubPage extends QuickStartPage { private static final long serialVersionUID = 1L; /** * Construct. */ public SubPage() { // this is just here so that something could link here } }
apache/zeppelin
1,081
zeppelin-interpreter/src/main/java/org/apache/zeppelin/scheduler/JobListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.zeppelin.scheduler; import org.apache.zeppelin.scheduler.Job.Status; /** * Listener for job execution. */ public interface JobListener { void onProgressUpdate(Job<?> job, int progress); void onStatusChange(Job<?> job, Status before, Status after); }
google/binnavi
1,083
src/test/java/com/google/security/zynamics/binnavi/Gui/CriteriaDialog/AllTests.java
/* Copyright 2014 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package com.google.security.zynamics.binnavi.Gui.CriteriaDialog; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses({com.google.security.zynamics.binnavi.Gui.CriteriaDialog.Cache.AllTests.class, com.google.security.zynamics.binnavi.Gui.CriteriaDialog.Conditions.AllTests.class, com.google.security.zynamics.binnavi.Gui.CriteriaDialog.Implementations.AllTests.class}) public final class AllTests { }
google/guice
1,078
extensions/grapher/test/com/google/inject/grapher/demo/EnergySourceProvider.java
/* * Copyright (C) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.inject.grapher.demo; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.name.Named; class EnergySourceProvider implements Provider<EnergySource> { @Inject void setSources(@Nuclear EnergySource nuclear, @Renewable EnergySource renewable) {} // This will demonstrate a ConvertedConstantBinding. @Inject void setYear(@Named("year") int year) {} @Override public EnergySource get() { return null; } }
google/j2cl
1,068
transpiler/javatests/com/google/j2cl/integration/java/jsproperties/Bar.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 jsproperties; import jsinterop.annotations.JsProperty; /** * Tests for non native instance JsProperty. */ public class Bar { private int f = 10; public int getF() { return f; } @JsProperty public int getA() { return f + 1; } @JsProperty public void setA(int a) { f = a + 2; } @JsProperty(name = "abc") public int getB() { return f + 3; } @JsProperty(name = "abc") public void setB(int a) { f = a + 4; } }
google/j2objc
1,063
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Assert.java
/* GENERATED SOURCE. DO NOT MODIFY. */ // © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html#License /* ******************************************************************************* * Copyright (C) 2005-2006, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* */ package android.icu.impl; // 1.3 compatibility layer /** * @hide Only a subset of ICU is exposed in Android */ public class Assert { public static void fail(Exception e) { fail(e.toString()); // can't wrap exceptions in jdk 1.3 } public static void fail(String msg) { throw new IllegalStateException("failure '" + msg + "'"); } public static void assrt(boolean val) { if (!val) throw new IllegalStateException("assert failed"); } public static void assrt(String msg, boolean val) { if (!val) throw new IllegalStateException("assert '" + msg + "' failed"); } }
google/nomulus
1,095
core/src/main/java/google/registry/model/annotations/IdAllocation.java
// Copyright 2022 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package google.registry.model.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * This annotation is needed for any ID field that needs to be allocated with {@link * google.registry.persistence.transaction.TransactionManager#allocateId} class */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface IdAllocation {}
google/nomulus
1,105
core/src/main/java/google/registry/rde/DepositFragment.java
// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package google.registry.rde; import java.io.Serial; import java.io.Serializable; /** Container of RDE resource marshalled by {@link RdeMarshaller}. */ public record DepositFragment(RdeResourceType type, String xml, String error) implements Serializable { @Serial private static final long serialVersionUID = -5241410684255467454L; public static DepositFragment create(RdeResourceType type, String xml, String error) { return new DepositFragment(type, xml, error); } }
google/sagetv
1,106
java/sage/epg/sd/json/map/SDMapMetadata.java
/* * Copyright 2015 The SageTV Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package sage.epg.sd.json.map; public class SDMapMetadata { private String lineup; private String modified; private String transport; private String modulation; // This is populated when the channel is QAM to distinguish from cable. public String getLineup() { return lineup; } public String getModified() { return modified; } public String getTransport() { return transport; } public String getModulation() { return modulation; } }
google/sagetv
1,119
third_party/Ogle/java/sage/dvd/DVDSource.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; /** * * @author Narflex */ public interface DVDSource { public boolean readBlocks(byte [] buf, int offset, int block, int count); public int readBytes(byte [] buf, int size); public int seek(int position); public void close(); }
googleapis/api-compiler
1,087
src/main/java/com/google/api/tools/framework/model/Location.java
/* * Copyright (C) 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.api.tools.framework.model; /** * An abstraction of a source location. */ public interface Location { /** * Get the location as a string readable to users and interpretable by IDEs. The actual * semantics depends on the underlying source type. This may or not be the same as * toString(). */ String getDisplayString(); /** * Get the name of the containing entity of this location, in most cases its a file name. */ String getContainerName(); }
googlearchive/gwt-google-apis
1,080
gadgets/gadgets/src/com/google/gwt/gadgets/client/NeedsAds.java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.gadgets.client; import com.google.gwt.gadgets.client.GadgetFeature.FeatureName; /** * Indicates that a Gadget requires access to the Ads features of the container. */ @FeatureName("ads") public interface NeedsAds { /** * Entry point that gets called back to handle the Ads feature initialization. * * @param feature An instance of the feature to use to invoke feature specific * methods */ void initializeFeature(AdsFeature feature); }
hibernate/hibernate-ogm
1,043
core/src/main/java/org/hibernate/ogm/datastore/keyvalue/options/navigation/spi/BaseKeyValueStoreEntityContext.java
/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.datastore.keyvalue.options.navigation.spi; import org.hibernate.ogm.datastore.keyvalue.options.navigation.KeyValueStoreEntityContext; import org.hibernate.ogm.datastore.keyvalue.options.navigation.KeyValueStorePropertyContext; import org.hibernate.ogm.options.navigation.spi.BaseEntityContext; import org.hibernate.ogm.options.navigation.spi.ConfigurationContext; /** * Converts key/value store entity-level options. * * @author Gunnar Morling */ public abstract class BaseKeyValueStoreEntityContext<E extends KeyValueStoreEntityContext<E, P>, P extends KeyValueStorePropertyContext<E, P>> extends BaseEntityContext<E, P> implements KeyValueStoreEntityContext<E, P> { public BaseKeyValueStoreEntityContext(ConfigurationContext context) { super( context ); } }
hibernate/hibernate-orm
1,033
hibernate-envers/src/test/java/org/hibernate/envers/test/integration/tm/TestInterceptor.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.envers.test.integration.tm; import java.util.HashMap; import java.util.Map; import org.hibernate.Interceptor; import org.hibernate.Transaction; import org.jboss.logging.Logger; /** * @author Chris Cranford */ public class TestInterceptor implements Interceptor { private static final Logger LOGGER = Logger.getLogger( TestInterceptor.class ); private static Map<TestInterceptor, Integer> interceptorInvocations = new HashMap<>(); public TestInterceptor() { interceptorInvocations.put( this, 0 ); } @Override public void beforeTransactionCompletion(Transaction tx) { interceptorInvocations.put( this, interceptorInvocations.get( this ) + 1 ); LOGGER.info( "Interceptor beforeTransactionCompletion invoked" ); } public static Map<TestInterceptor, Integer> getBeforeCompletionCallbacks() { return interceptorInvocations; } public static void reset() { interceptorInvocations.clear(); } }
openjdk/jdk8
1,077
jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/IllegalCharException.java
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * $Id: IllegalCharException.java,v 1.2.4.1 2005/09/13 12:39:15 pvedula Exp $ */ package com.sun.org.apache.xalan.internal.xsltc.compiler; /** * @author Jacek Ambroziak * @author Santiago Pericas-Geertsen */ class IllegalCharException extends Exception { static final long serialVersionUID = -667236676706226266L; public IllegalCharException(String s) { super(s); } }
openjdk/jdk8
1,109
langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I0.java
/* * Copyright (c) 2003, 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 pkg3; public interface I0 extends I2, I3, I4 {}
openjdk/jdk8
1,109
langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I1.java
/* * Copyright (c) 2003, 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 pkg3; public interface I1 extends I2, I4, I3 {}
openjdk/jdk8
1,115
langtools/test/com/sun/javadoc/DocRootSlash/p2/C2.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 p2; /** * Source file for C2 */ public class C2 { }
openjdk/jdk8
1,115
langtools/test/tools/javadoc/nestedClass/NestedClassB.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. */ public class NestedClassB { public static class Inner {} }
openjdk/jdk8
1,116
langtools/test/tools/javadoc/parser/7091528/p/q/C2.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 p.q; /** This is class p.q.C2. */ public class C2 { }
openjdk/jdk8
1,117
langtools/test/tools/javac/ImportCycle/foo/Bottom.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; import foo.Top; public interface Bottom { }
openjdk/jdk8
1,118
langtools/test/tools/javac/miranda/6964669/pkg/B.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. */ package pkg; public class B extends A { public void a() {} }
openjdk/jdk8
1,129
jdk/test/java/beans/XMLEncoder/EnumPublic.java
/* * Copyright (c) 2007, 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 enum EnumPublic {A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z}
openjdk/jtreg
1,142
test/share/simple/Error.java
/* * Copyright (c) 2017, 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 * @summary This test should give an error, because the class is not found */
oracle/nosql
1,089
kvmain/src/main/java/com/sleepycat/je/rep/utilint/IntRunningTotalStat.java
/*- * Copyright (C) 2002, 2025, 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 com.sleepycat.je.rep.utilint; import com.sleepycat.je.utilint.IntStat; import com.sleepycat.je.utilint.StatDefinition; import com.sleepycat.je.utilint.StatGroup; /** * Used to create running totals across the lifetime of the StatGroup. They * cannot be cleared. */ public class IntRunningTotalStat extends IntStat { private static final long serialVersionUID = 1L; public IntRunningTotalStat(StatGroup group, StatDefinition definition) { super(group, definition); } @Override public void clear() { /* Don't clear it because it's a running total. */ } }
oracle/oci-java-sdk
1,070
bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/RequestSignerImplStaticTest.java
/** * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. * 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. */ package com.oracle.bmc.http.signing.internal; import java.nio.charset.StandardCharsets; import org.junit.Test; import static org.junit.Assert.assertEquals; public class RequestSignerImplStaticTest { private static final String DATA = "Though I admire, your angel eyes. There's something else, I idolize! Your nose! Oh whoa whoa whoa your nose!"; @Test public void testEncode() { String base64Encode = RequestSignerImpl.base64Encode(DATA.getBytes(StandardCharsets.UTF_8)); assertEquals( "VGhvdWdoIEkgYWRtaXJlLCB5b3VyIGFuZ2VsIGV5ZXMuIFRoZXJlJ3Mgc29tZXRoaW5nIGVsc2UsIEkgaWRvbGl6ZSEgWW91ciBub3NlISBPaCB3aG9hIHdob2Egd2hvYSB5b3VyIG5vc2Uh", base64Encode); } }
apache/commons-jcs
1,062
commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/MockAuxiliaryCacheAttributes.java
package org.apache.commons.jcs3.auxiliary; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.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. */ /** For testing. */ public class MockAuxiliaryCacheAttributes extends AbstractAuxiliaryCacheAttributes { /** Don't change. */ private static final long serialVersionUID = 1091238902450504108L; }
apache/crunch
1,095
crunch-lambda/src/main/java/org/apache/crunch/lambda/fn/SBiFunction.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.crunch.lambda.fn; import java.io.Serializable; import java.util.function.BiFunction; /** * Serializable version of the Java BiFunction functional interface. */ @FunctionalInterface public interface SBiFunction<K, V, T> extends BiFunction<K, V, T>, Serializable { }
apache/cxf
1,082
systests/uncategorized/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.systest.cxf993; import testnotification.NotificationServicePort; /** * */ public class Cxf993Impl implements NotificationServicePort { public String sendNotification(testnotification.SendNotification parameters) { return "dummy"; } }
apache/datafu
1,098
datafu-hourglass/src/main/java/datafu/hourglass/schemas/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. */ /** * Classes that help manage the Avro schemas used by the jobs. * These are used internally by {@link datafu.hourglass.jobs.AbstractPartitionPreservingIncrementalJob} * and {@link datafu.hourglass.jobs.AbstractPartitionCollapsingIncrementalJob}. */ package datafu.hourglass.schemas;
apache/deltaspike
1,060
deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/OneToOne.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.data.test.domain; import jakarta.persistence.Entity; @Entity public class OneToOne extends NamedEntity { public OneToOne() { super(); } public OneToOne(String name) { super(name); } }
apache/derby
1,095
java/org.apache.derby.tools/org/apache/derby/info/tools/DerbyModule.java
/* Derby - Class org.apache.derby.info.tools.DerbyModule Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.derby.info.tools; import org.apache.derby.shared.api.DerbyModuleAPI; /** * The vacuous provider class which lets * the shared module find all Derby modules. */ public class DerbyModule implements DerbyModuleAPI {}