repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/tapestry-5
1,048
plastic/src/test/java/testsubjects/MultipleFields.java
// Copyright 2011 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package testsubjects; import java.util.List; public class MultipleFields { private int fred; private String barney; private List<Long> wilma; private Integer betty; public int getFred() { return fred; } public String getBarney() { return barney; } public List<Long> getWilma() { return wilma; } public Integer getBetty() { return betty; } }
apache/tapestry-5
1,063
plastic/src/test/java/testsubjects/ContextCatcher.java
// Copyright 2011 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package testsubjects; import org.apache.tapestry5.internal.plastic.StaticContext; import org.apache.tapestry5.plastic.InstanceContext; public class ContextCatcher { public final StaticContext staticContext; public final InstanceContext instanceContext; public ContextCatcher(StaticContext staticContext, InstanceContext instanceContext) { this.staticContext = staticContext; this.instanceContext = instanceContext; } }
apache/tika
1,027
tika-eval/tika-eval-core/src/main/java/org/apache/tika/eval/core/textstats/StringStatsCalculator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tika.eval.core.textstats; /** * Interface for calculators that require a string * * @param <T> */ public interface StringStatsCalculator<T> extends TextStatsCalculator { T calculate(String txt); }
apache/tomcat80
1,053
webapps/examples/WEB-INF/classes/jsp2/examples/FooBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jsp2.examples; public class FooBean { private String bar; public FooBean() { bar = "Initial value"; } public String getBar() { return this.bar; } public void setBar(String bar) { this.bar = bar; } }
apache/tomcat80
1,095
java/javax/ejb/EJBs.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.ejb; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface EJBs { EJB[] value(); }
apache/wicket
1,026
wicket-core-tests/src/test/java/org/apache/wicket/markup/parser/filter/PageWithScriptTemplate.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.parser.filter; import org.apache.wicket.markup.html.WebPage; /** * Test page for StyleAndScriptIdentifierTest * * @since 6.0 */ public class PageWithScriptTemplate extends WebPage { }
apache/wicket
1,028
wicket-examples/src/main/java/org/apache/wicket/examples/authentication1/AuthenticatedWebPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.examples.authentication1; /** * Marker interface to indicate that a page should be viewable by authenticated users only. * * @author Jonathan Locke */ public interface AuthenticatedWebPage { }
google/cel-java
1,056
policy/src/main/java/dev/cel/policy/CelPolicyParserFactory.java
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package dev.cel.policy; import org.yaml.snakeyaml.nodes.Node; /** Factory class for producing policy parser and policy config parsers. */ public final class CelPolicyParserFactory { /** * Configure a builder to construct a {@link CelPolicyParser} instance that takes in a YAML * document. */ public static CelPolicyParserBuilder<Node> newYamlParserBuilder() { return CelPolicyYamlParser.newBuilder(); } private CelPolicyParserFactory() {} }
google/flatbuffers
1,066
tests/MyGame/Example/StructOfStructsOfStructsT.java
// automatically generated by the FlatBuffers compiler, do not modify package MyGame.Example; import com.google.flatbuffers.BaseVector; import com.google.flatbuffers.BooleanVector; import com.google.flatbuffers.ByteVector; import com.google.flatbuffers.Constants; import com.google.flatbuffers.DoubleVector; import com.google.flatbuffers.FlatBufferBuilder; import com.google.flatbuffers.FloatVector; import com.google.flatbuffers.IntVector; import com.google.flatbuffers.LongVector; import com.google.flatbuffers.ShortVector; import com.google.flatbuffers.StringVector; import com.google.flatbuffers.Struct; import com.google.flatbuffers.Table; import com.google.flatbuffers.UnionVector; import java.nio.ByteBuffer; import java.nio.ByteOrder; public class StructOfStructsOfStructsT { private MyGame.Example.StructOfStructsT a; public MyGame.Example.StructOfStructsT getA() { return a; } public void setA(MyGame.Example.StructOfStructsT a) { this.a = a; } public StructOfStructsOfStructsT() { this.a = new MyGame.Example.StructOfStructsT(); } }
google/schemaorg-java
1,045
src/main/java/com/google/schemaorg/core/datatype/Date.java
/* * Copyright 2016 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.schemaorg.core.datatype; import com.google.schemaorg.core.CoreConstants; /** * Represents <a href="http://schema.org/Date">http://schema.org/Date</a>. */ public class Date extends DataType { Date(String value) { super(value); } @Override public String getFullTypeName() { return CoreConstants.NAMESPACE + "Date"; } public static Date of(String value) { return new Date(value); } }
google/schemaorg-java
1,045
src/main/java/com/google/schemaorg/core/datatype/Text.java
/* * Copyright 2016 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.schemaorg.core.datatype; import com.google.schemaorg.core.CoreConstants; /** * Represents <a href="http://schema.org/Text">http://schema.org/Text</a>. */ public class Text extends DataType { Text(String value) { super(value); } @Override public String getFullTypeName() { return CoreConstants.NAMESPACE + "Text"; } public static Text of(String value) { return new Text(value); } }
google/schemaorg-java
1,045
src/main/java/com/google/schemaorg/core/datatype/Time.java
/* * Copyright 2016 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.schemaorg.core.datatype; import com.google.schemaorg.core.CoreConstants; /** * Represents <a href="http://schema.org/Time">http://schema.org/Time</a>. */ public class Time extends DataType { Time(String value) { super(value); } @Override public String getFullTypeName() { return CoreConstants.NAMESPACE + "Time"; } public static Time of(String value) { return new Time(value); } }
googleapis/api-compiler
1,026
src/main/java/com/google/api/tools/framework/aspects/superquota/SuperQuotaConstants.java
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.api.tools.framework.aspects.superquota; /** Useful constants for SuperQuota config aspect */ public class SuperQuotaConstants { // The standard tier in service config. The value for STANDARD tier must be set in service config. public static final String STANDARD = "STANDARD"; // The value that is used in service config to indicate unlimited quota value. public static final long UNLIMITED_QUOTA = -1; }
googlearchive/gwt-google-apis
1,032
maps/maps/src/com/google/gwt/maps/client/control/LargeMapControl3D.java
/* * Copyright 2009 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.maps.client.control; import com.google.gwt.maps.client.impl.ControlImpl; /** * Creates a control with buttons to pan in four directions, and zoom in and * zoom out, and a zoom slider in a 3D style. */ public final class LargeMapControl3D extends Control { /** * Creates a new large control in a 3D style. */ public LargeMapControl3D() { super(ControlImpl.impl.createLargeMapControl3D()); } }
hibernate/hibernate-orm
1,025
hibernate-core/src/main/java/org/hibernate/query/sqm/tree/SqmDmlStatement.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.query.sqm.tree; import org.hibernate.query.criteria.JpaManipulationCriteria; import org.hibernate.query.criteria.JpaRoot; import org.hibernate.query.sqm.tree.cte.SqmCteContainer; import org.hibernate.query.sqm.tree.delete.SqmDeleteStatement; import org.hibernate.query.sqm.tree.from.SqmRoot; /** * Common extension of SqmStatement for DML (delete, update and insert-select) * statements. See {@link SqmDeleteStatement}, * {@link org.hibernate.query.sqm.tree.update.SqmUpdateStatement} and * {@link org.hibernate.query.sqm.tree.insert.SqmInsertSelectStatement} respectively * * @author Steve Ebersole */ public interface SqmDmlStatement<E> extends SqmStatement<E>, SqmCteContainer, JpaManipulationCriteria<E> { /** * Get the root path that is the target of the DML statement. */ @Override SqmRoot<E> getTarget(); /** * Set the root path */ @Override void setTarget(JpaRoot<E> root); }
openjdk/jdk8
1,078
langtools/test/com/sun/javadoc/testIndex/NoPackage.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class NoPackage {}
openjdk/jdk8
1,082
langtools/test/tools/javac/T6458823/TestClass.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. */ class TestClass<XYZ, ABC> { }
openjdk/jdk8
1,088
langtools/test/tools/javac/6627362/x/E.java
/* * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public enum E { a, b, c }
oracle-quickstart/oci-cloudnative
1,030
src/fulfillment/src/main/java/mushop/OrderUpdate.java
/** ** Copyright © 2020, Oracle and/or its affiliates. All rights reserved. ** Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. **/ package mushop; import io.micronaut.core.annotation.Introspected; @Introspected public class OrderUpdate { private Long orderId; private Shipment Shipment; public OrderUpdate() { } public OrderUpdate(Long orderId, mushop.Shipment shipment) { this.orderId = orderId; Shipment = shipment; } public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public mushop.Shipment getShipment() { return Shipment; } public void setShipment(mushop.Shipment shipment) { Shipment = shipment; } @Override public String toString() { return "OrderUpdate{" + "orderId='" + orderId + '\'' + ", Shipment=" + Shipment + '}'; } }
oracle/coherence
1,028
prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Monitorexit.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.dev.assembler; import java.io.IOException; import java.io.DataInput; import java.io.DataOutput; /** * The MONITOREXIT simple op leaves a synchronized section of code. * <p><code><pre> * JASM op : MONITOREXIT (0xc3) * JVM byte code(s): MONITOREXIT (0xc3) * Details : * </pre></code> * * @version 0.50, 06/12/98, assembler/dis-assembler * @author Cameron Purdy */ public class Monitorexit extends Op implements Constants { // ----- constructors --------------------------------------------------- /** * Construct the op. */ public Monitorexit() { super(MONITOREXIT); } // ----- data members --------------------------------------------------- /** * The name of this class. */ private static final String CLASS = "Monitorexit"; }
oracle/coherence
1,032
prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Dup_x2.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.dev.assembler; import java.io.IOException; import java.io.DataInput; import java.io.DataOutput; /** * The DUP_X2 simple op duplicates the top word of the stack and places it * three down in the stack. * <p><code><pre> * JASM op : DUP_X2 (0x5b) * JVM byte code(s): DUP_X2 (0x5b) * Details : * </pre></code> * * @version 0.50, 06/12/98, assembler/dis-assembler * @author Cameron Purdy */ public class Dup_x2 extends Op implements Constants { // ----- constructors --------------------------------------------------- /** * Construct the op. */ public Dup_x2() { super(DUP_X2); } // ----- data members --------------------------------------------------- /** * The name of this class. */ private static final String CLASS = "Dup_x2"; }
apache/commons-rng
1,047
commons-rng-client-api/src/main/java/org/apache/commons/rng/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 the library's interface to be used by client * code that needs a generator of sequences of pseudo-random numbers * that are <i>uniformly distributed</i> in a specified range. */ package org.apache.commons.rng;
apache/crunch
1,047
crunch-core/src/it/java/org/apache/crunch/lib/join/DefaultRightOuterJoinIT.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.lib.join; public class DefaultRightOuterJoinIT extends AbstractRightOuterJoinIT { @Override protected <K, U, V> JoinStrategy<K, U, V> getJoinStrategy() { return new DefaultJoinStrategy<K, U, V>(); } }
apache/cxf
1,024
systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/description/openapi/BookStoreApplication.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.jaxrs.description.openapi; import jakarta.ws.rs.ApplicationPath; import jakarta.ws.rs.core.Application; @ApplicationPath("/api") public class BookStoreApplication extends Application { }
apache/directory-kerby
1,046
kerby-pkix/src/main/java/org/apache/kerby/x509/type/GeneralNames.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.kerby.x509.type; import org.apache.kerby.asn1.type.Asn1SequenceOf; /* * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName */ public class GeneralNames extends Asn1SequenceOf<GeneralName> { }
apache/directory-server
1,031
protocol-dns/src/main/java/org/apache/directory/server/dns/util/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ /** * Provides utility code for working with enumerators. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.dns.util;
apache/eagle
1,029
eagle-metric/eagle-hdfs-web/src/main/java/org/apache/eagle/metric/HdfsMetricWebApplicationProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eagle.metric; import org.apache.eagle.app.StaticApplicationProvider; public class HdfsMetricWebApplicationProvider extends StaticApplicationProvider { // HdfsWebApplicationProvider SPI Interface }
apache/eagle
1,036
eagle-core/eagle-metric/src/main/java/org/apache/eagle/metric/reportor/EagleMetricKey.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.eagle.metric.reportor; import java.util.Map; public class EagleMetricKey { public String metricName; public Map<String, String> tags; public long timestamp; }
apache/fineract
1,029
fineract-provider/src/main/java/org/apache/fineract/cob/service/AsyncLoanCOBExecutorService.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.cob.service; import org.apache.fineract.infrastructure.core.domain.FineractContext; public interface AsyncLoanCOBExecutorService { void executeLoanCOBCatchUpAsync(FineractContext context); }
apache/geaflow
1,026
geaflow/geaflow-core/geaflow-api/src/main/java/org/apache/geaflow/api/collector/Collector.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.api.collector; import java.io.Serializable; public interface Collector<T> extends Serializable { /** * Partition data with value itself. */ void partition(T value); }
apache/geode
1,037
geode-core/src/integrationTest/java/org/apache/geode/distributed/UsesServerCommand.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.distributed; import java.util.List; public interface UsesServerCommand { String getJavaPath(); List<String> getJvmArguments(); String getClassPath(); String getName(); boolean getDisableDefaultServer(); }
apache/giraph
1,027
giraph-block-app/src/main/java/org/apache/giraph/block_app/framework/piece/global_comm/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. */ /** * Interfaces for Reducer and Broadcast Handles for automatic handling * of global communication within Pieces, hiding a lot of it's complexities. */ package org.apache.giraph.block_app.framework.piece.global_comm;
apache/gobblin
1,035
gobblin-yarn/src/main/java/org/apache/gobblin/yarn/event/DelegationTokenUpdatedEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.yarn.event; /** * A dummy class representing a type of events fired when the delegation token has been updated by the controller. * * @author Yinan Li */ public class DelegationTokenUpdatedEvent { }
apache/gobblin
1,042
gobblin-utility/src/main/java/org/apache/gobblin/util/request_allocation/Request.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.gobblin.util.request_allocation; /** * Represents an expensive request in the request allocation problem. See {@link RequestAllocator}. */ public interface Request<T extends Request> { Requestor<T> getRequestor(); }
apache/gobblin
1,057
gobblin-api/src/main/java/gobblin/source/workunit/MultiWorkUnit.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package gobblin.source.workunit; /*** * Shim layer for org.apache.gobblin.source.workunit.MultiWorkUnit */ public class MultiWorkUnit extends org.apache.gobblin.source.workunit.MultiWorkUnit { @Deprecated public MultiWorkUnit() { super(); } }
apache/hadoop-mapreduce
1,030
src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/dfs/DFSContent.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.eclipse.dfs; /** * Interface to define content entities in the DFS browser */ public interface DFSContent { boolean hasChildren(); DFSContent[] getChildren(); void refresh(); }
apache/harmony
1,026
classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/AType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Maxim V. Berkultsev */ package org.apache.harmony.beans.tests.support; /** * @author Maxim V. Berkultsev */ public class AType { public Object go() { return new Object(); } }
apache/hertzbeat
1,033
hertzbeat-common/src/main/java/org/apache/hertzbeat/common/constants/PluginType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hertzbeat.common.constants; /** * plugin type */ public enum PluginType { /** * do something after alter */ POST_ALERT, /** * do something after collect */ POST_COLLECT }
apache/hop
1,056
engine/src/test/java/org/apache/hop/core/injection/MetaBeanWrong4.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.core.injection; /** Wrong declaration - getter shouldn't have parameters. */ @InjectionSupported(localizationPrefix = "") public class MetaBeanWrong4 { @InjectionDeep public void getter(int index) { // Do nothing } }
apache/iceberg
1,042
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/ParquetBatchReadConf.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.spark; import java.io.Serializable; import org.immutables.value.Value; @Value.Immutable public interface ParquetBatchReadConf extends Serializable { int batchSize(); ParquetReaderType readerType(); }
apache/iceberg
1,042
spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/ParquetBatchReadConf.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.spark; import java.io.Serializable; import org.immutables.value.Value; @Value.Immutable public interface ParquetBatchReadConf extends Serializable { int batchSize(); ParquetReaderType readerType(); }
apache/iceberg
1,042
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/ParquetBatchReadConf.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.spark; import java.io.Serializable; import org.immutables.value.Value; @Value.Immutable public interface ParquetBatchReadConf extends Serializable { int batchSize(); ParquetReaderType readerType(); }
apache/ignite-extensions
1,028
modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/composition/boosting/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. */ /** * <!-- Package description. --> * Contains Gradient Boosting regression and classification abstract classes * allowing regressor type selecting in child classes. */ package org.apache.ignite.ml.composition.boosting;
apache/incubator-brooklyn
1,030
brooklyn-server/core/src/main/java/org/apache/brooklyn/core/entity/EntityTypes.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.core.entity; import org.apache.brooklyn.core.objs.BrooklynTypes; /** * @deprecated since 0.7.0; use {@link BrooklynTypes} */ @Deprecated public class EntityTypes extends BrooklynTypes { }
apache/incubator-kie-drools
1,035
drools-model/drools-canonical-model/src/main/java/org/drools/model/From3.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.Function3; public interface From3<A, B, C> extends From<A> { Variable<B> getVariable2(); Variable<C> getVariable3(); Function3<A,B,C,?> getProvider(); }
apache/incubator-tuweni
1,047
net/src/main/java/org/apache/tuweni/net/tls/TLSEnvironmentException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ package org.apache.tuweni.net.tls; final class TLSEnvironmentException extends RuntimeException { TLSEnvironmentException(String message) { super(message); } TLSEnvironmentException(String message, Throwable cause) { super(message, cause); } }
apache/iotdb-web-workbench
1,037
backend/src/main/java/org/apache/iotdb/admin/model/dto/IotDBUserDTO.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.model.dto; import lombok.Data; import java.io.Serializable; import java.util.List; @Data public class IotDBUserDTO implements Serializable { private List<PrivilegeInfoDTO> privilegesInfos; }
apache/jclouds
1,046
scriptbuilder/src/main/java/org/jclouds/scriptbuilder/domain/OsFamily.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.scriptbuilder.domain; /** * Type of an Operating System. */ public enum OsFamily { /** * All versions of Microsoft Windows */ WINDOWS, /** * All Unix and Unix-like operating systems */ UNIX }
apache/kafka
1,046
streams/src/main/java/org/apache/kafka/streams/state/internals/HasNextCondition.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.streams.state.internals; import org.apache.kafka.common.utils.Bytes; import org.apache.kafka.streams.state.KeyValueIterator; interface HasNextCondition { boolean hasNext(final KeyValueIterator<Bytes, ?> iterator); }
apache/kylin
1,025
src/spark-project/engine-spark/src/main/java/org/apache/kylin/engine/spark/application/SparkEntry.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kylin.engine.spark.application; import org.apache.spark.application.JobWorkSpace; public class SparkEntry { public static void main(String[] args) { JobWorkSpace.execute(args); } }
apache/lucene
1,049
lucene/luke/src/java/org/apache/lucene/luke/models/search/SearchFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.luke.models.search; import org.apache.lucene.index.IndexReader; /** Factory of {@link Search} */ public class SearchFactory { public Search newInstance(IndexReader reader) { return new SearchImpl(reader); } }
apache/lucene
1,081
lucene/expressions/src/java/module-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. */ @SuppressWarnings({"requires-automatic"}) module org.apache.lucene.expressions { requires org.antlr.antlr4.runtime; requires org.apache.lucene.core; requires org.apache.lucene.codecs; exports org.apache.lucene.expressions; exports org.apache.lucene.expressions.js; }
apache/manifoldcf
1,035
connectors/filenet/build-stub/src/main/java/com/filenet/api/constants/AccessLevel.java
/* $Id$ */ /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.filenet.api.constants; /** Stub class to allow the connector to build fully. */ public class AccessLevel implements java.io.Serializable { public static final int VIEW_AS_INT = 131201; public int getValue() { return 0; } }
apache/marmotta
1,026
libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/jmx/KiWiStatisticsMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.marmotta.kiwi.jmx; /** * Statistics collection for the KiWi triple store, to be published in JMX. * * @author Sebastian Schaffert (sschaffert@apache.org) */ public interface KiWiStatisticsMBean { }
apache/maven-plugins
1,026
maven-ant-plugin/src/it/test-default-selector-it/src/test/java/it/GoodTestCase.java
package it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; /** * @version $Id$ */ public class GoodTestCase extends TestCase { public void testPass() throws Exception { assertTrue( true ); } }
apache/maven-plugins
1,026
maven-compiler-plugin/src/it/mcompiler-21_methodname-change/src/main/java/BeanA2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * dumb test bean */ public class BeanA2 { private int i; private BeanA beanA; public int getI() { return beanA.getI(); } public void setI(int i) { beanA.setI(i); } }
apache/maven-plugins
1,033
maven-ejb-plugin/src/it/reactor/sub/src/main/java/org/apache/maven/Person.java
package org.apache.maven; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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 Person { private String name; public void setName( String name ) { this.name = name; } public String getName() { return name; } }
apache/nifi
1,026
nifi-commons/nifi-utils/src/main/java/org/apache/nifi/remote/exception/TransmissionDisabledException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.remote.exception; /** * Indicates that the user disabled transmission while communications were taking place with a peer */ public class TransmissionDisabledException extends RuntimeException { }
apache/olingo-odata4
1,038
lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/EdmMember.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.olingo.commons.api.edm; /** * An {@link EdmEnumType} member element. */ public interface EdmMember extends EdmNamed, EdmAnnotatable { /** * @return value of this member as string */ String getValue(); }
apache/oodt
1,040
metadata/src/main/java/org/apache/oodt/cas/metadata/exceptions/CasMetadataException.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.oodt.cas.metadata.exceptions; /** * Cas Metadata Exception for internal Exceptions. */ public class CasMetadataException extends Exception { public CasMetadataException(String message){ super(message); } }
apache/openjpa
1,045
openjpa-kernel/src/main/java/org/apache/openjpa/util/asm/BytecodeWriter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.util.asm; import java.io.IOException; /** * Control how enhanced bytecode is written. * * @author Steve Kim */ public interface BytecodeWriter { void write(ClassNodeTracker type) throws IOException; }
apache/polygene-java
1,024
tools/envisage/src/test/java/org/apache/polygene/envisage/school/domain/person/Person.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.envisage.school.domain.person; public interface Person { String firstName(); String lastName(); Iterable<Role> roles(); void addRole( Role role ); }
apache/polygene-java
1,031
core/api/src/main/java/org/apache/polygene/api/activation/ActivationEventListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.api.activation; /** * Listener for ActivationEvent events */ public interface ActivationEventListener { void onEvent( ActivationEvent event ) throws Exception; }
apache/polygene-java
1,032
core/api/src/main/java/org/apache/polygene/api/composite/ConstructorDescriptor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.api.composite; import java.lang.reflect.Constructor; /** * Composite constructor descriptor. */ public interface ConstructorDescriptor { Constructor<?> constructor(); }
apache/ratis
1,047
ratis-test/src/test/java/org/apache/ratis/grpc/TestRaftAsyncExceptionWithGrpc.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.grpc; import org.apache.ratis.RaftAsyncExceptionTests; public class TestRaftAsyncExceptionWithGrpc extends RaftAsyncExceptionTests<MiniRaftClusterWithGrpc> implements MiniRaftClusterWithGrpc.FactoryGet { }
apache/rocketmq-eventbridge
1,025
adapter/api/src/main/java/org/apache/rocketmq/eventbridge/adapter/api/dto/BaseDTO.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.eventbridge.adapter.api.dto; import java.io.Serializable; public class BaseDTO implements Serializable { private static final long serialVersionUID = -1L; public BaseDTO() { } }
apache/rocketmq
1,047
broker/src/main/java/org/apache/rocketmq/broker/mqtrace/ConsumeMessageHook.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.broker.mqtrace; public interface ConsumeMessageHook { String hookName(); void consumeMessageBefore(final ConsumeMessageContext context); void consumeMessageAfter(final ConsumeMessageContext context); }
apache/servicecomb-saga-actuator
1,029
saga-core/src/test/java/org/apache/servicecomb/saga/core/DummyEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.saga.core; public class DummyEvent extends SagaEvent { DummyEvent(SagaRequest payload) { super("0", payload); } @Override public void gatherTo(EventContext sagaContext) { } }
apache/servicecomb-toolkit
1,028
common/src/main/java/org/apache/servicecomb/toolkit/common/ComparisionType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.toolkit.common; public enum ComparisionType { /** insert new content */ INSERT, /** delete content */ DELETE, /** replace old content */ REPLACE, /** not change */ EQUAL; }
apache/shardingsphere
1,028
features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/spi/ShadowAlgorithm.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.shadow.spi; import org.apache.shardingsphere.infra.algorithm.core.ShardingSphereAlgorithm; /** * Shadow algorithm. */ public interface ShadowAlgorithm extends ShardingSphereAlgorithm { }
apache/sirona
1,047
agent/javaagent/src/main/java/org/apache/sirona/javaagent/listener/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. */ /** * <p>This package contains default {@link org.apache.sirona.javaagent.spi.InvocationListener} implementations.<br/> * And an easy implementation to override {@link org.apache.sirona.javaagent.listener.ConfigurableListener} * </p> * */
apache/solr
1,048
solr/api/src/java/org/apache/solr/client/api/model/SchemaListFieldsResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.client.api.model; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; public class SchemaListFieldsResponse extends SolrJerseyResponse { @JsonProperty("fields") public List<Object> fields; }
apache/struts-examples
1,058
tiles/src/main/java/org/demo/example/ExampleSupport.java
/* * $Id: ExampleSupport.java 739661 2009-02-01 00:06:00Z davenewton $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.demo.example; import org.apache.struts2.ActionSupport; /** * Base Action class for the Tutorial package. */ public class ExampleSupport extends ActionSupport { }
apache/syncope
1,031
client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/UserForm.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.syncope.client.ui.commons.layout; import org.apache.syncope.client.ui.commons.wizards.any.AnyForm; import org.apache.syncope.common.lib.to.UserTO; public interface UserForm extends AnyForm<UserTO> { }
apache/tapestry-5
1,026
tapestry-core/src/test/java/org/apache/tapestry5/internal/transform/InheritedAnnotation.java
// Copyright 2007 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.internal.transform; import java.lang.annotation.Documented; import static java.lang.annotation.ElementType.TYPE; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; @Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface InheritedAnnotation { }
apache/tapestry-5
1,032
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Datum.java
// Copyright 2008 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.integration.app1.pages; /** * This isn't a page class and doesn't belong here. */ public class Datum { // This will be instrumented as with any Tapestry component field, and that will fail as the field may not // be public. public int _value; public int getValue() { return _value; } public void setValue(int value) { _value = value; } }
apache/tapestry-5
1,035
tapestry-core/src/main/java/org/apache/tapestry5/runtime/ComponentResourcesAware.java
// Copyright 2006 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.runtime; import org.apache.tapestry5.ComponentResources; /** * Interface implemented by components (after they have been transformed at load time). Component classes should not * implement this interface directly. */ public interface ComponentResourcesAware { /** * Returns the resources associated with this component class. */ ComponentResources getComponentResources(); }
apache/tez
1,049
tez-api/src/main/java/org/apache/tez/common/counters/AggregateTezCounter.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tez.common.counters; public interface AggregateTezCounter { public abstract void aggregate(TezCounter other); public abstract long getMin(); public abstract long getMax(); public abstract long getCount(); }
apache/tez
1,060
tez-common/src/main/java/org/apache/tez/dag/records/DAGIDAware.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tez.dag.records; import org.apache.hadoop.yarn.api.records.ApplicationId; public interface DAGIDAware { TezDAGID getDAGID(); default ApplicationId getApplicationId() { return getDAGID().getApplicationId(); } }
apache/tinkerpop
1,029
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/Ranging.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.process.traversal.step; /** * @author Marko A. Rodriguez (http://markorodriguez.com) */ public interface Ranging { public Long getLowRange(); public Long getHighRange(); }
apache/tinkerpop
1,032
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/function/ThrowingFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.util.function; /** * @author Stephen Mallette (http://stephen.genoprime.com) */ @FunctionalInterface public interface ThrowingFunction<T, R> { R apply(final T t) throws Exception; }
apache/tomee
1,028
container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/MethodConcurrencyInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.assembler.classic; public class MethodConcurrencyInfo extends MethodAttributeInfo { public String description; public String concurrencyAttribute; public TimeoutInfo accessTimeout; }
apache/tomee
1,030
itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/singleton/BeanTxSingletonHome.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.test.singleton; public interface BeanTxSingletonHome extends jakarta.ejb.EJBHome { public BeanTxSingletonObject create() throws jakarta.ejb.CreateException, java.rmi.RemoteException; }
apache/tomee
1,030
itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BeanTxStatelessHome.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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.test.stateless; public interface BeanTxStatelessHome extends jakarta.ejb.EJBHome { public BeanTxStatelessObject create() throws jakarta.ejb.CreateException, java.rmi.RemoteException; }
apache/trafodion
1,045
core/conn/trafci/src/main/java/org/trafodion/ci/UserInterruption.java
// @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // // @@@ END COPYRIGHT @@@ package org.trafodion.ci; public class UserInterruption extends Exception { /** * */ private static final long serialVersionUID = 1L; UserInterruption() { } }
google/bindiff
1,025
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/MouseWheelAction.java
// Copyright 2011-2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.zylib.gui.zygraph; import java.text.ParseException; public enum MouseWheelAction { ZOOM, SCROLL; public static MouseWheelAction parseInt(final int action) throws ParseException { if (action == ZOOM.ordinal()) { return ZOOM; } else if (action == SCROLL.ordinal()) { return SCROLL; } else { throw new ParseException("Error: Invalid action", 0); } } }
google/binnavi
1,039
src/main/java/com/google/security/zynamics/zylib/gui/zygraph/nodes/IFunctionNode.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.zylib.gui.zygraph.nodes; import com.google.security.zynamics.zylib.disassembly.IFunction; import com.google.security.zynamics.zylib.gui.zygraph.edges.IViewEdge; import java.util.List; public interface IFunctionNode<EdgeType extends IViewEdge<? extends IViewNode<?>>, ListenerTyp extends IFunctionNodeListener<?, ?>> extends ILineNode<EdgeType> { IFunction getFunction(); List<?> getLocalComment(); }
google/gdata-java-client
1,037
java/src/com/google/gdata/client/authn/oauth/OAuthException.java
/* Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.gdata.client.authn.oauth; /** * Generic exception to capture all OAuth related issues. * * */ public class OAuthException extends Exception { public OAuthException() { super(); } public OAuthException(String message) { super(message); } public OAuthException(Throwable cause) { super(cause); } public OAuthException(String message, Throwable cause) { super(message, cause); } }
google/j2cl
1,025
transpiler/javatests/com/google/j2cl/integration/java/overridinginterfacemethods/SomeClass.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 overridinginterfacemethods; public class SomeClass implements SomeInterface { @Override public Object overrideWithNoChange() { return new SomeClass(); } @Override public SomeInterface overrideWithReturnChange() { return new SomeClass(); } /** * Is not an override since it adds a parameter. */ public Object overrideWithReturnChange(SomeInterface foo) { return new SomeClass(); } }
google/j2objc
1,033
jre_emul/android/platform/libcore/json/src/test/java/libcore/org/json/SmallTests.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package libcore.org.json; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; public class SmallTests extends TestSuite { private static final Class<?>[] smallTestClasses = new Class[] { JSONArrayTest.class, JSONObjectTest.class, JSONStringerTest.class, JSONTokenerTest.class, ParsingTest.class, SelfUseTest.class }; public static Test suite() { return new TestSuite(smallTestClasses); } }
google/nomulus
1,032
core/src/main/java/google/registry/flows/exceptions/ResourceToDeleteIsReferencedException.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.flows.exceptions; import google.registry.flows.EppException.AssociationProhibitsOperationException; /** Resource to be deleted has active incoming references. */ public class ResourceToDeleteIsReferencedException extends AssociationProhibitsOperationException { public ResourceToDeleteIsReferencedException() { super("Resource to be deleted has active incoming references"); } }
google/nomulus
1,065
core/src/main/java/google/registry/model/ModelModule.java
// Copyright 2023 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; import com.fasterxml.jackson.databind.ObjectMapper; import dagger.Module; import dagger.Provides; /** Dagger module for the entity (model) classes. */ @Module public final class ModelModule { /** Returns an {@link ObjectMapper} object that can be used to convert an entity to/from YAML. */ @Provides public static ObjectMapper provideObjectMapper() { return EntityYamlUtils.createObjectMapper(); } }
google/samba-documents-provider
1,026
app/src/main/java/com/google/android/sambadocumentsprovider/nativefacade/SmbDir.java
/* * Copyright 2017 Google Inc. * * 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 3 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, see <http://www.gnu.org/licenses/>. */ package com.google.android.sambadocumentsprovider.nativefacade; import android.support.annotation.Nullable; import com.google.android.sambadocumentsprovider.base.DirectoryEntry; import java.io.Closeable; import java.io.IOException; public interface SmbDir extends Closeable { @Nullable DirectoryEntry readDir() throws IOException; }
hibernate/hibernate-orm
1,025
hibernate-core/src/main/java/org/hibernate/service/spi/Wrapped.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.service.spi; import org.hibernate.service.UnknownUnwrapTypeException; /** * Optional contract for services that wrap stuff that to which it is useful to have access. * <p> * For example, a service that maintains a {@link javax.sql.DataSource} might want to expose * access to the {@link javax.sql.DataSource} or its {@link java.sql.Connection} instances. * * @author Steve Ebersole */ public interface Wrapped { /** * Can this wrapped service be unwrapped as the indicated type? * * @param unwrapType The type to check. * * @return True/false. */ boolean isUnwrappableAs(Class<?> unwrapType); /** * Unproxy the service proxy * * @param unwrapType The java type as which to unwrap this instance. * * @return The unwrapped reference * * @throws UnknownUnwrapTypeException if the service cannot be unwrapped as the indicated type */ <T> T unwrap(Class<T> unwrapType); }
openjdk/jdk8
1,070
langtools/test/tools/javac/processing/6359313/package-info.java
/* * Copyright (c) 2006, 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. */ @Foo package foo;
apache/commons-math
1,035
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/field/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. */ /** * Utilities based on the {@link org.apache.commons.numbers.field.Field Field} * functionality defined in <a href="https://commons.apache.org/numbers"> * Commons Numbers</a>. */ package org.apache.commons.math4.legacy.field;
apache/cxf
1,040
tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/model/XOutput.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.tools.validator.internal.model; import org.apache.cxf.wsdl.WSDLConstants; public final class XOutput extends XWsdl { public XOutput() { super(); setQName(WSDLConstants.QNAME_OUTPUT); } }
apache/cxf
1,055
rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/BindingFaultFactory.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.ws.rm; import org.apache.cxf.interceptor.Fault; import org.apache.cxf.message.Message; /** * */ public interface BindingFaultFactory { Fault createFault(SequenceFault sf, Message msg); String toString(Fault f); }
apache/drill
1,044
exec/vector/src/main/java/org/apache/drill/exec/record/metadata/SchemaContainer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.record.metadata; /** * Magic that allows one schema builder to nest inside another * without needing to know the type of the parent. */ interface SchemaContainer { void addColumn(ColumnMetadata column); }
apache/dubbo
1,029
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/h12/AttachmentHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.protocol.tri.h12; import java.util.Map; public interface AttachmentHolder { void setResponseAttachments(Map<String, Object> attachments); Map<String, Object> getResponseAttachments(); }