repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/incubator-kie-kogito-examples | 1,047 | kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeMiningModelTestIT.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.kogito.pmml.quarkus.example;
import io.quarkus.test.junit.QuarkusIntegrationTest;
@QuarkusIntegrationTest
public class NativeMiningModelTestIT extends MiningModelTest {
// Execute the same tests but in native mode.
} |
apache/incubator-kie-optaplanner | 1,061 | optaplanner-examples/src/main/java/org/optaplanner/examples/meetingscheduling/domain/PreferredAttendance.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.optaplanner.examples.meetingscheduling.domain;
public class PreferredAttendance extends Attendance {
public PreferredAttendance() {
}
public PreferredAttendance(long id, Meeting meeting) {
super(id, meeting);
}
}
|
apache/incubator-seata | 1,095 | config/seata-config-core/src/main/java/org/apache/seata/config/file/FileConfig.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.config.file;
import java.util.Map;
public interface FileConfig {
/**
* @param path path expression
* @return the config
*/
String getString(String path);
/**
* @return the all config
*/
Map<String, Object> getAllConfig();
}
|
apache/inlong | 1,088 | inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/pojo/DebeziumSourceFormat.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.agent.pojo;
import lombok.Data;
@Data
public class DebeziumSourceFormat {
private String version;
private String snapshot;
private String db;
private String table;
/**
* mongo source metadata
*/
private String collection;
}
|
apache/inlong | 1,089 | inlong-tubemq/tubemq-core/src/test/java/org/apache/inlong/tubemq/corebase/utils/AddressUtilsTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.tubemq.corebase.utils;
import junit.framework.TestCase;
import org.junit.Assert;
public class AddressUtilsTest extends TestCase {
public void test() {
String address = AddressUtils.getIPV4LocalAddress();
Assert.assertNotNull(address);
}
} |
apache/iotdb-web-workbench | 1,089 | backend/src/main/java/org/apache/iotdb/admin/model/dto/QueryDTO.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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 javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
public class QueryDTO implements Serializable {
@NotNull(message = "未指定脚本名")
private String queryName;
private String sqls;
}
|
apache/jackrabbit-oak | 1,094 | oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/properties/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.
*/
/**
* <em>For Oak internal use only. Do not use outside Oak components.</em>
*/
@Internal(since = "1.1.0")
@Version("2.1.0")
package org.apache.jackrabbit.oak.commons.properties;
import org.apache.jackrabbit.oak.commons.annotations.Internal;
import org.osgi.annotation.versioning.Version;
|
apache/jclouds | 1,114 | apis/docker/src/main/java/org/jclouds/docker/config/DockerParserModule.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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.docker.config;
import org.jclouds.json.config.GsonModule;
import com.google.inject.AbstractModule;
public class DockerParserModule extends AbstractModule {
@Override protected void configure() {
bind(GsonModule.DateAdapter.class).to(GsonModule.Iso8601DateAdapter.class);
}
}
|
apache/jena | 1,123 | jena-arq/src/main/java/org/apache/jena/sparql/path/P_Path0.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.sparql.path ;
import org.apache.jena.graph.Node ;
public abstract class P_Path0 extends PathBase {
protected Node node ;
protected P_Path0(Node n) {
this.node = n ;
}
public abstract boolean isForward() ;
public Node getNode() {
return node ;
}
}
|
apache/juneau | 1,106 | juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/assertions/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.
*
***************************************************************************************************************************/
/**
* REST Assertions
*/
package org.apache.juneau.rest.assertions; |
apache/juneau | 1,108 | juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/resource/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.
*
***************************************************************************************************************************/
/**
* HTTP Resource Beans
*/
package org.apache.juneau.http.resource; |
apache/kylin | 1,075 | src/spark-project/spark-common/src/main/scala/org/apache/spark/sql/connector/read/sqlpushdown/NotSupportPushDown.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.sql.connector.read.sqlpushdown;
/**.
* A mix-in interface for {@link org.apache.spark.sql.catalyst.expressions.Expression} to indicate that we can't push
* down to Data Source
*
* @since 3.x.x
*/
public interface NotSupportPushDown {
}
|
apache/kylin | 1,094 | src/core-common/src/main/java/org/apache/kylin/common/persistence/event/ResourceDeleteEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.persistence.event;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
public class ResourceDeleteEvent extends ResourceRelatedEvent {
@Getter
private String resPath;
}
|
apache/kylin | 1,096 | src/common-service/src/main/java/org/apache/kylin/rest/request/StreamingTableRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.kylin.rest.request;
import org.apache.kylin.metadata.model.TableDesc;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class StreamingTableRequest extends TableDesc {
@JsonProperty("project")
private String project;
}
|
apache/kylin | 1,107 | src/core-common/src/main/java/org/apache/kylin/common/ICachedExternalConfigLoader.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common;
import org.apache.kylin.guava30.shaded.common.collect.ImmutableMap;
import io.kyligence.config.core.loader.IExternalConfigLoader;
public interface ICachedExternalConfigLoader extends IExternalConfigLoader {
ImmutableMap<Object, Object> getPropertyEntries();
}
|
apache/kylin | 1,110 | src/core-common/src/main/java/org/apache/kylin/common/util/SplittedBytes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.common.util;
/**
* @author George Song (ysong1)
*
*/
public class SplittedBytes implements java.io.Serializable {
public SplittedBytes(int length) {
this.value = new byte[length];
this.length = 0;
}
public byte[] value;
public int length;
}
|
apache/lens | 1,099 | lens-client/src/main/java/org/apache/lens/client/model/IdBriefErrorTemplateKey.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.lens.client.model;
public enum IdBriefErrorTemplateKey {
REQUEST_ID("Request Id"),
QUERY_ID("Query Id");
IdBriefErrorTemplateKey(final String key) {
this.key = key;
}
public String getConstant() {
return this.key;
}
private final String key;
}
|
apache/manifoldcf | 1,101 | connectors/filenet/build-stub/src/main/java/com/filenet/api/property/Properties.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.property;
import java.util.*;
/** Stub interface to allow the connector to build fully.
*/
public interface Properties extends java.io.Serializable
{
public Iterator<Property> iterator();
public Object getObjectValue(String propName);
public Property get(String propName);
}
|
apache/manifoldcf | 1,110 | connectors/filenet/build-stub/src/main/java/com/filenet/api/core/Folder.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.core;
import com.filenet.api.collection.FolderSet;
/** Stub interface to allow the connector to build fully.
*/
public interface Folder extends IndependentlyPersistableObject, Versionable, Containable, Subscribable
{
public FolderSet get_SubFolders();
public String get_FolderName();
}
|
apache/maven-compiler-plugin | 1,089 | src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotation.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.issue;
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.SOURCE)
public @interface SimpleAnnotation {}
|
apache/maven-plugins | 1,079 | maven-jmod-plugin/src/it/non-default-config-legalnotices/src/main/java/myproject/HelloWorld.java | package myproject;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* The classic Hello World App.
*/
public class HelloWorld {
/**
* Main method.
*
* @param args Not used
*/
public static void main( String[] args )
{
System.out.println( "Hello World from JDK 9" );
}
} |
apache/mina-sshd | 1,100 | sshd-common/src/main/java/org/apache/sshd/common/io/IoServiceEventListenerManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sshd.common.io;
/**
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
*/
public interface IoServiceEventListenerManager {
IoServiceEventListener getIoServiceEventListener();
void setIoServiceEventListener(IoServiceEventListener listener);
}
|
apache/mina-sshd | 1,102 | sshd-core/src/main/java/org/apache/sshd/server/command/AsyncCommandStreamsAware.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sshd.server.command;
/**
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
*/
public interface AsyncCommandStreamsAware
extends AsyncCommandInputStreamAware, AsyncCommandOutputStreamAware, AsyncCommandErrorStreamAware {
// Nothing extra
}
|
apache/nifi | 1,069 | nifi-registry/nifi-registry-core/nifi-registry-provider-api/src/main/java/org/apache/nifi/registry/hook/EventField.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.registry.hook;
/**
* A field for an event.
*/
public interface EventField {
/**
* @return the name of the field
*/
EventFieldName getName();
/**
* @return the value of the field
*/
String getValue();
}
|
apache/nifi | 1,074 | nifi-framework-bundle/nifi-framework/nifi-site-to-site/src/main/java/org/apache/nifi/remote/RemoteSiteListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
import org.apache.nifi.groups.ProcessGroup;
import java.io.IOException;
public interface RemoteSiteListener {
void setRootGroup(ProcessGroup rootGroup);
void start() throws IOException;
void stop();
void destroy();
}
|
apache/nutch | 1,106 | src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/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>Text document language identifier.</p>
* <p>Language profiles are based on material from
* <a href="http://www.homepages.inf.ed.ac.uk/pkoehn/publications/europarl.ps">
* http://www.homepages.inf.ed.ac.uk/pkoehn/publications/europarl.ps</a>.</p>
*/
package org.apache.nutch.analysis.lang;
|
apache/olingo-odata4 | 1,083 | lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/expression/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.
*/
/**
* Olingo Server API - URI - QueryOptions - Expressions
* <p>
* The uri.queryoption.expression package is used to condense all about
* the Olingo expressions within the query options (in uri context).
*
*/
package org.apache.olingo.server.api.uri.queryoption.expression;
|
apache/openwebbeans | 1,074 | webbeans-impl/src/test/java/org/apache/webbeans/test/component/pfield/ProducerFieldInjectedWrongType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.webbeans.test.component.pfield;
import java.util.List;
import jakarta.inject.Inject;
public class ProducerFieldInjectedWrongType
{
@Inject
private List<String> myList;
public List<String> getMyList()
{
return myList;
}
}
|
apache/ozone | 1,096 | hadoop-hdds/erasurecode/src/main/java/org/apache/ozone/erasurecode/rawcoder/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.
*/
/**
* General helpers for implementing raw erasure coders.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.ozone.erasurecode.rawcoder.util;
import org.apache.hadoop.hdds.annotation.InterfaceAudience;
import org.apache.hadoop.hdds.annotation.InterfaceStability;
|
apache/pinot | 1,112 | pinot-spi/src/main/java/org/apache/pinot/spi/stream/LongMsgOffsetFactory.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pinot.spi.stream;
public class LongMsgOffsetFactory implements StreamPartitionMsgOffsetFactory {
@Override
public void init(StreamConfig streamConfig) {
}
@Override
public StreamPartitionMsgOffset create(String offsetStr) {
return new LongMsgOffset(offsetStr);
}
}
|
apache/pinot | 1,116 | pinot-spi/src/main/java/org/apache/pinot/spi/metrics/PinotHistogram.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pinot.spi.metrics;
/**
* A metric which calculates the distribution of a value.
*
* @see <a href="http://www.johndcook.com/standard_deviation.html">Accurately computing running
* variance</a>
*/
public interface PinotHistogram extends PinotMetric {
Object getHistogram();
}
|
apache/pulsar | 1,109 | pulsar-client-tools/src/main/java/org/apache/pulsar/client/cli/AbstractCmd.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.client.cli;
import java.util.concurrent.Callable;
public abstract class AbstractCmd implements Callable<Integer> {
// Picocli entrypoint.
@Override
public Integer call() throws Exception {
return run();
}
abstract int run() throws Exception;
}
|
apache/ratis | 1,092 | ratis-test/src/test/java/org/apache/ratis/server/simulation/TestServerPauseResumeWithSimulatedRpc.java | package org.apache.ratis.server.simulation;
import org.apache.ratis.server.impl.ServerPauseResumeTest;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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 TestServerPauseResumeWithSimulatedRpc
extends ServerPauseResumeTest<MiniRaftClusterWithSimulatedRpc>
implements MiniRaftClusterWithSimulatedRpc.FactoryGet {
}
|
apache/rocketmq | 1,108 | broker/src/main/java/org/apache/rocketmq/broker/client/ProducerChangeListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.client;
/**
* producer manager will call this listener when something happen
* <p>
* event type: {@link ProducerGroupEvent}
*/
public interface ProducerChangeListener {
void handle(ProducerGroupEvent event, String group, ClientChannelInfo clientChannelInfo);
}
|
apache/rocketmq | 1,116 | common/src/main/java/org/apache/rocketmq/common/ServiceState.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.rocketmq.common;
public enum ServiceState {
/**
* Service just created,not start
*/
CREATE_JUST,
/**
* Service Running
*/
RUNNING,
/**
* Service shutdown
*/
SHUTDOWN_ALREADY,
/**
* Service Start failure
*/
START_FAILED;
}
|
apache/royale-compiler | 1,113 | compiler/src/main/java/org/apache/royale/swf/tags/EndTag.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.royale.swf.tags;
import org.apache.royale.swf.TagType;
/**
* Represents an <code>End</code> tag in a SWF file.
*/
public class EndTag extends Tag implements IManagedTag
{
/**
* Constructor.
*/
public EndTag()
{
super(TagType.End);
}
}
|
apache/samza | 1,109 | samza-api/src/main/java/org/apache/samza/serializers/ByteBufferSerdeFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.serializers;
import org.apache.samza.config.Config;
import java.nio.ByteBuffer;
public class ByteBufferSerdeFactory implements SerdeFactory<ByteBuffer> {
@Override
public Serde<ByteBuffer> getSerde(String name, Config config) {
return new ByteBufferSerde();
}
} |
apache/samza | 1,125 | samza-api/src/main/java/org/apache/samza/config/ConfigRewriter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.config;
/**
* A ConfigRewriter receives the job's config during job startup and may re-write it to provide new configs,
* remove existing configs or audit and verify the config is correct or permitted.
*/
public interface ConfigRewriter {
Config rewrite(String name, Config config);
}
|
apache/seatunnel-web | 1,082 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/request/job/Edge.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.app.domain.request.job;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Edge {
private String inputPluginId;
private String targetPluginId;
}
|
apache/seatunnel | 1,040 | seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/state/ElasticsearchCommitInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.connectors.seatunnel.elasticsearch.state;
import java.io.Serializable;
public class ElasticsearchCommitInfo implements Serializable {
private static final long serialVersionUID = 4512769768158989809L;
}
|
apache/servicecomb-java-chassis | 1,060 | foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/event/AlarmEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.foundation.common.event;
public class AlarmEvent {
Type type;
public AlarmEvent(Type type) {
this.type = type;
}
public Type getType() {
return this.type;
}
public enum Type {
OPEN,
CLOSE
}
}
|
apache/shardingsphere | 1,057 | parser/distsql/statement/src/main/java/org/apache/shardingsphere/distsql/statement/type/rql/resource/ResourceQueryStatement.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.distsql.statement.type.rql.resource;
import org.apache.shardingsphere.distsql.statement.type.rql.RQLStatement;
/**
* Resource query statement.
*/
public abstract class ResourceQueryStatement extends RQLStatement {
}
|
apache/shardingsphere | 1,068 | parser/sql/spi/src/main/java/org/apache/shardingsphere/sql/parser/api/visitor/statement/type/DALStatementVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.parser.api.visitor.statement.type;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.SQLStatementVisitor;
/**
* DAL statement visitor.
*/
public interface DALStatementVisitor extends SQLStatementVisitor {
}
|
apache/shardingsphere | 1,068 | parser/sql/spi/src/main/java/org/apache/shardingsphere/sql/parser/api/visitor/statement/type/DCLStatementVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.parser.api.visitor.statement.type;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.SQLStatementVisitor;
/**
* DCL statement visitor.
*/
public interface DCLStatementVisitor extends SQLStatementVisitor {
}
|
apache/shardingsphere | 1,068 | parser/sql/spi/src/main/java/org/apache/shardingsphere/sql/parser/api/visitor/statement/type/DDLStatementVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.parser.api.visitor.statement.type;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.SQLStatementVisitor;
/**
* DDL statement visitor.
*/
public interface DDLStatementVisitor extends SQLStatementVisitor {
}
|
apache/shardingsphere | 1,068 | parser/sql/spi/src/main/java/org/apache/shardingsphere/sql/parser/api/visitor/statement/type/DMLStatementVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.parser.api.visitor.statement.type;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.SQLStatementVisitor;
/**
* DML statement visitor.
*/
public interface DMLStatementVisitor extends SQLStatementVisitor {
}
|
apache/shardingsphere | 1,068 | parser/sql/spi/src/main/java/org/apache/shardingsphere/sql/parser/api/visitor/statement/type/LCLStatementVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.parser.api.visitor.statement.type;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.SQLStatementVisitor;
/**
* LCL statement visitor.
*/
public interface LCLStatementVisitor extends SQLStatementVisitor {
}
|
apache/shardingsphere | 1,068 | parser/sql/spi/src/main/java/org/apache/shardingsphere/sql/parser/api/visitor/statement/type/TCLStatementVisitor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.sql.parser.api.visitor.statement.type;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.SQLStatementVisitor;
/**
* TCL statement visitor.
*/
public interface TCLStatementVisitor extends SQLStatementVisitor {
}
|
apache/sirona | 1,125 | core/src/main/java/org/apache/sirona/gauges/jvm/BaseMemoryGauge.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sirona.gauges.jvm;
import org.apache.sirona.gauges.Gauge;
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
public abstract class BaseMemoryGauge implements Gauge {
protected static final MemoryMXBean MEMORY_MX_BEAN = ManagementFactory.getMemoryMXBean();
}
|
apache/sis | 1,100 | endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/internal/Resources_en.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sis.metadata.internal;
/**
* Resource in English language.
*/
public class Resources_en extends Resources {
/**
* Constructs a new resource bundle loading data from
* the resource file of the same name as this class.
*/
public Resources_en() {
}
}
|
apache/skywalking-java | 1,091 | test/e2e/base/provider/src/main/java/test/apache/skywalking/e2e/profile/CreateUser.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package test.apache.skywalking.e2e.profile;
import lombok.Data;
import org.apache.skywalking.e2e.User;
@Data
public class CreateUser {
private String name;
private boolean enableProfiling;
public User toUser() {
return User.builder().name(name).build();
}
}
|
apache/solr | 1,111 | solr/api/src/java/org/apache/solr/client/api/model/GetAliasPropertyResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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 io.swagger.v3.oas.annotations.media.Schema;
public class GetAliasPropertyResponse extends SolrJerseyResponse {
@JsonProperty("value")
@Schema(description = "Property value.")
public String value;
}
|
apache/solr | 1,113 | solr/api/src/java/org/apache/solr/client/api/model/BackupDeletionResponseBody.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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 BackupDeletionResponseBody extends SubResponseAccumulatingJerseyResponse {
@JsonProperty public String collection;
@JsonProperty public List<BackupDeletionData> deleted;
}
|
apache/solr | 1,131 | solr/core/src/java/org/apache/solr/search/SyntaxError.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.search;
/** Simple checked exception for parsing errors */
public class SyntaxError extends Exception {
public SyntaxError(String msg) {
super(msg);
}
public SyntaxError(String msg, Throwable cause) {
super(msg, cause);
}
public SyntaxError(Throwable cause) {
super(cause);
}
}
|
apache/storm | 1,134 | storm-core/src/jvm/org/apache/storm/command/HealthCheck.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package org.apache.storm.command;
import java.util.Map;
import org.apache.storm.healthcheck.HealthChecker;
import org.apache.storm.utils.Utils;
public class HealthCheck {
public static void main(String[] args) {
Map<String, Object> conf = Utils.readStormConfig();
System.exit(HealthChecker.healthCheck(conf, null));
}
}
|
apache/stratos | 1,064 | components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/type/map/MapEntryType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.stratos.rest.endpoint.util.type.map;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlValue;
public class MapEntryType<S, T> {
@XmlAttribute
public S key;
@XmlValue
public T value;
}
|
apache/syncope | 1,085 | client/idrepo/console/src/main/java/org/apache/syncope/client/console/tasks/AbstractPropagationTasks.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.client.console.tasks;
public abstract class AbstractPropagationTasks extends AbstractTasks {
private static final long serialVersionUID = -2138947447603621523L;
public AbstractPropagationTasks(final String id) {
super(id);
}
}
|
apache/syncope | 1,106 | common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/report/ReportConf.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.common.lib.report;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.apache.syncope.common.lib.BaseBean;
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "_class")
public interface ReportConf extends BaseBean {
}
|
apache/tapestry-5 | 1,100 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/ServiceIdGreeter.java | // Copyright 2008, 2010 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.ioc.test;
import org.apache.tapestry5.ioc.ServiceResources;
import org.apache.tapestry5.ioc.annotations.PostInjection;
public class ServiceIdGreeter implements Greeter
{
private String greeting;
@Override
public String getGreeting()
{
return greeting;
}
@PostInjection
public void finishSetup(ServiceResources resources)
{
greeting = String.format("Greetings from %s.", resources.getServiceId());
}
}
|
apache/tomcat80 | 1,134 | java/org/apache/catalina/ha/backend/Sender.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.catalina.ha.backend;
/*
* Interface to send data to proxies
*
*/
public interface Sender {
/**
* Set the configuration parameters
*/
public void init(HeartbeatListener config) throws Exception;
/**
* Send the message to the proxies
*/
public int send(String mess) throws Exception;
}
|
apache/tomcat80 | 1,146 | test/javax/el/TesterELResolverOne.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.el;
public class TesterELResolverOne extends TypeConverter {
@Override
public Object convertToType(ELContext context, Object obj, Class<?> type) {
if ("1".equals(obj) && type == String.class) {
context.setPropertyResolved(obj, type);
return "ONE";
}
return null;
}
}
|
apache/tomcat80 | 1,146 | test/javax/el/TesterELResolverTwo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.el;
public class TesterELResolverTwo extends TypeConverter {
@Override
public Object convertToType(ELContext context, Object obj, Class<?> type) {
if ("2".equals(obj) && type == String.class) {
context.setPropertyResolved(obj, type);
return "TWO";
}
return null;
}
}
|
apache/tomee | 1,093 | container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/MethodScheduleInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
import java.util.ArrayList;
import java.util.List;
public class MethodScheduleInfo extends InfoObject {
public String description;
public final List<ScheduleInfo> schedules = new ArrayList<>();
public NamedMethodInfo method;
}
|
apache/tomee | 1,108 | examples/ejb-examples/src/main/java/org/superbiz/servlet/ResourceBean.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.superbiz.servlet;
public class ResourceBean {
private String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String toString() {
return "[ResourceBean " + value + "]";
}
}
|
apache/tomee | 1,118 | container/openejb-core/src/test/java/org/apache/openejb/meta/Metatype.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.meta;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Metatype
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Metatype {
}
|
apache/wicket | 1,082 | wicket-core-tests/src/test/java/org/apache/wicket/markup/parser/filter/HeaderSectionPage_12.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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;
/**
*
* @author Jonathan Locke
*/
public final class HeaderSectionPage_12 extends HeaderSectionBasePage_12
{
private static final long serialVersionUID = 1L;
/**
* Constructor
*/
public HeaderSectionPage_12()
{
}
}
|
apache/wicket | 1,085 | wicket-core-tests/src/test/java/org/apache/wicket/markup/resolver/issue3559/BasePage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS 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.resolver.issue3559;
import org.apache.wicket.markup.html.WebPage;
/**
*
*/
public class BasePage extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*/
BasePage()
{
add(new MenuPanel("menu"));
}
}
|
apache/wicket | 1,090 | wicket-core-tests/src/test/java/org/apache/wicket/markup/html/header/inheritance/AbstractPage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.markup.html.header.inheritance;
import org.apache.wicket.markup.html.WebPage;
/**
* Test page for wicket:head inclusion.
*/
public abstract class AbstractPage extends WebPage
{
/** For serialization. */
private static final long serialVersionUID = 1L;
}
|
google/bindiff | 1,092 | java/zylib/src/main/java/com/google/security/zynamics/zylib/types/graphs/IGraphNode.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.types.graphs;
import java.util.List;
/**
* Interface for nodes in the graph.
*
* @param <T> The concrete graph node type itself.
*/
public interface IGraphNode<T> {
/**
* Returns the children of the graph node.
*
* @return The children of the graph node.
*/
List<? extends T> getChildren();
/**
* Returns the parents of the graph node.
*
* @return The parents of the graph node.
*/
List<? extends T> getParents();
}
|
google/binnavi | 1,078 | src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultEdgePressedRightAction.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.editmode.states.CEdgePressedRightState;
import java.awt.event.MouseEvent;
public class CDefaultEdgePressedRightAction implements IStateAction<CEdgePressedRightState> {
@Override
public void execute(final CEdgePressedRightState state, final MouseEvent event) {
}
}
|
google/binnavi | 1,078 | src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultNodePressedRightAction.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions;
import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction;
import com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.editmode.states.CNodePressedRightState;
import java.awt.event.MouseEvent;
public class CDefaultNodePressedRightAction implements IStateAction<CNodePressedRightState> {
@Override
public void execute(final CNodePressedRightState state, final MouseEvent event) {
}
}
|
google/caliper | 1,100 | caliper-worker-android/src/main/java/com/google/caliper/worker/AndroidWorkerModule.java | /*
* Copyright (C) 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.caliper.worker;
import com.google.caliper.worker.instrument.WorkerInstrumentComponent;
import dagger.Binds;
import dagger.Module;
/** Module with additional bindings needed by an Android VM worker. */
@Module(subcomponents = AndroidWorkerInstrumentComponent.class)
abstract class AndroidWorkerModule {
private AndroidWorkerModule() {}
@Binds
abstract WorkerInstrumentComponent.Builder bindInstrumentComponentBuilder(
AndroidWorkerInstrumentComponent.Builder builder);
}
|
google/closure-compiler | 1,094 | src/com/google/javascript/jscomp/parsing/parser/trees/ComputedPropertyMethodTree.java | /*
* Copyright 2014 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.javascript.jscomp.parsing.parser.trees;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class ComputedPropertyMethodTree extends ParseTree {
public final ParseTree property;
public final ParseTree method;
public ComputedPropertyMethodTree(SourceRange location, ParseTree property, ParseTree method) {
super(ParseTreeType.COMPUTED_PROPERTY_METHOD, location);
this.property = property;
this.method = method;
}
}
|
google/depan | 1,082 | DepanNodeUI/prod/src/com/google/devtools/depan/nodes/filters/persistence/NodeKindResourcesInstaller.java | /**
* Copyright 2017 The Depan Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.devtools.depan.nodes.filters.persistence;
import com.google.devtools.depan.resources.ResourceContainer;
import com.google.devtools.depan.resources.analysis.AnalysisResourceInstaller;
/**
* @author <a href="leeca@pnambic.com">Lee Carver</a>
*/
public class NodeKindResourcesInstaller
implements AnalysisResourceInstaller {
@Override
public void installResource(ResourceContainer root) {
NodeKindResources.installResources(root);
}
}
|
google/depan | 1,083 | DepanViewDoc/prod/src/com/google/devtools/depan/view_doc/persistence/EdgeDisplayResourcesInstaller.java | /**
* Copyright 2017 The Depan Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.devtools.depan.view_doc.persistence;
import com.google.devtools.depan.resources.ResourceContainer;
import com.google.devtools.depan.resources.analysis.AnalysisResourceInstaller;
/**
* @author <a href="leeca@pnambic.com">Lee Carver</a>
*/
public class EdgeDisplayResourcesInstaller
implements AnalysisResourceInstaller {
@Override
public void installResource(ResourceContainer root) {
EdgeDisplayResources.installResources(root);
}
}
|
google/exposure-notifications-android | 1,079 | app/src/main/java/com/google/android/apps/exposurenotification/utils/RequestCodes.java | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.google.android.apps.exposurenotification.utils;
public final class RequestCodes {
public static final int REQUEST_CODE_UNKNOWN = -1;
public static final int REQUEST_CODE_START_EXPOSURE_NOTIFICATION = 1111;
public static final int REQUEST_CODE_GET_TEMP_EXPOSURE_KEY_HISTORY = 2222;
public static final int REQUEST_CODE_PREAUTHORIZE_TEMP_EXPOSURE_KEY_RELEASE = 3333;
public static final int REQUEST_CODE_APP_UPDATE = 4444;
private RequestCodes() {
}
}
|
google/gdata-java-client | 1,121 | java/src/com/google/gdata/util/LogUtils.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.util;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Utility functions for logging.
*
*
*/
public final class LogUtils {
public static void logException(Logger logger,
Level level,
String prefix,
Throwable e) {
String message = e.toString();
if (prefix != null) {
message = prefix + ": " + message;
}
logger.log(level, message, e);
}
}
|
google/j2cl | 1,073 | junit/generator/javatests/com/google/j2cl/junit/apt/JUnit4TestCasePrimitiveArrayReturnTypeParameterizedMethod.java | /*
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.j2cl.junit.apt;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
/** A simple Unit test to test processing in {@link J2clTestingProcessingStepTest}. */
@RunWith(Parameterized.class)
public class JUnit4TestCasePrimitiveArrayReturnTypeParameterizedMethod {
@Parameters
public static int[] data() {
return new int[1];
}
@Test
public void test() {}
}
|
google/j2objc | 1,109 | jre_emul/android/frameworks/base/core/java/android/util/Base64DataException.java | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.util;
import java.io.IOException;
/**
* This exception is thrown by {@link Base64InputStream} or {@link Base64OutputStream}
* when an error is detected in the data being decoded. This allows problems with the base64 data
* to be disambiguated from errors in the underlying streams (e.g. actual connection errors.)
*/
public class Base64DataException extends IOException {
public Base64DataException(String detailMessage) {
super(detailMessage);
}
}
|
google/j2objc | 1,117 | annotations/src/main/java/com/google/j2objc/annotations/UsedByNative.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 com.google.j2objc.annotations;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Target;
/**
* Annotation used for marking types, methods and fields that are called from native code. Useful
* for keeping components that would otherwise be removed by tree_shaker.
*/
@Target({TYPE, METHOD, CONSTRUCTOR, FIELD})
public @interface UsedByNative {}
|
google/oss-fuzz | 1,135 | projects/plexus-utils/XmlStreamReaderFuzzer.java |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
import com.code_intelligence.jazzer.api.FuzzedDataProvider;
import java.io.IOException;
import java.io.ByteArrayInputStream;
import org.codehaus.plexus.util.xml.XmlStreamReader;
public class XmlStreamReaderFuzzer {
public static void fuzzerTestOneInput(FuzzedDataProvider data) {
try{
XmlStreamReader xr = new XmlStreamReader(new ByteArrayInputStream(data.consumeRemainingAsBytes()));
}
catch( IOException e){
return;
}
}
}
|
googleads/google-ads-java | 1,061 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/LogicalUserListOperandInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/user_lists.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface LogicalUserListOperandInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.LogicalUserListOperandInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return Whether the userList field is set.
*/
boolean hasUserList();
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return The userList.
*/
java.lang.String getUserList();
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return The bytes for userList.
*/
com.google.protobuf.ByteString
getUserListBytes();
}
|
googleads/google-ads-java | 1,061 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/LogicalUserListOperandInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/user_lists.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface LogicalUserListOperandInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.LogicalUserListOperandInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return Whether the userList field is set.
*/
boolean hasUserList();
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return The userList.
*/
java.lang.String getUserList();
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return The bytes for userList.
*/
com.google.protobuf.ByteString
getUserListBytes();
}
|
googleads/google-ads-java | 1,061 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/LogicalUserListOperandInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/user_lists.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface LogicalUserListOperandInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.LogicalUserListOperandInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return Whether the userList field is set.
*/
boolean hasUserList();
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return The userList.
*/
java.lang.String getUserList();
/**
* <pre>
* Resource name of a user list as an operand.
* </pre>
*
* <code>optional string user_list = 2;</code>
* @return The bytes for userList.
*/
com.google.protobuf.ByteString
getUserListBytes();
}
|
googleapis/google-cloud-java | 1,029 | java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1beta1/model_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.aiplatform.v1beta1;
public interface UpdateExplanationDatasetResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse)
com.google.protobuf.MessageOrBuilder {}
|
googlearchive/gwt-google-apis | 1,092 | search/search/src/com/google/gwt/search/client/TimeoutInterval.java | /*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.search.client;
import com.google.gwt.search.jsio.client.JSOpaque;
/**
* Controls the delay between the last keystroke typed into a SearchControl and
* automatically initiating a search.
*/
public enum TimeoutInterval {
SHORT("SHORT"), MEDIUM("MEDIUM"), LONG("LONG");
private final JSOpaque value;
private TimeoutInterval(String interval) {
value = new JSOpaque("$wnd.GSearchControl.TIMEOUT_" + interval);
}
JSOpaque getValue() {
return value;
}
}
|
googlearchive/leanback-showcase | 1,062 | app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/grid/VideoGridExampleActivity.java | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package android.support.v17.leanback.supportleanbackshowcase.app.grid;
import android.app.Activity;
import android.os.Bundle;
import android.support.v17.leanback.supportleanbackshowcase.R;
/**
* TODO: Javadoc
*/
public class VideoGridExampleActivity extends Activity {
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_video_grid_example);
}
}
|
googlearchive/science-journal | 1,044 | OpenScienceJournal/whistlepunk_library/src/mockclasses/java/com/google/android/apps/forscience/whistlepunk/ExplodingFactory.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.android.apps.forscience.whistlepunk;
import com.google.android.apps.forscience.javalib.FailureListener;
/**
* FailureListenerFactory that returns listeners that throw uncaught exceptions on failures, for
* more easily tracked test feedback.
*/
public class ExplodingFactory {
public static FailureListener makeListener() {
return e -> {
throw new RuntimeException(e);
};
}
}
|
hibernate/hibernate-orm | 1,027 | hibernate-core/src/test/java/org/hibernate/orm/test/annotations/collectionelement/deepcollectionelements/A.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.annotations.collectionelement.deepcollectionelements;
import java.util.List;
import jakarta.persistence.ElementCollection;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OrderColumn;
import jakarta.persistence.SequenceGenerator;
import jakarta.persistence.Table;
@Entity
@Table( name = "A" )
public class A {
@Id
@GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "aSequence" )
@SequenceGenerator( name = "aSequence", sequenceName = "seq_A" )
private int id;
@ElementCollection
@OrderColumn( name = "ndx" )
private List<B> listOfB;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public List<B> getListOfB() {
return listOfB;
}
public void setListOfB(List<B> listOfB) {
this.listOfB = listOfB;
}
}
|
hibernate/hibernate-orm | 1,032 | hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/composite/Event.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.mapping.identifier.composite;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
/**
* @author Vlad Mihalcea
*/
//tag::identifiers-composite-generated-mapping-example[]
@Entity
class Event {
@Id
private EventId id;
@Column(name = "event_key")
private String key;
@Column(name = "event_value")
private String value;
//Getters and setters are omitted for brevity
//end::identifiers-composite-generated-mapping-example[]
public EventId getId() {
return id;
}
public void setId(EventId id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
//tag::identifiers-composite-generated-mapping-example[]
}
//end::identifiers-composite-generated-mapping-example[]
|
hibernate/hibernate-orm | 1,057 | hibernate-core/src/main/java/org/hibernate/metamodel/internal/EntityInstantiatorPojoOptimized.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.metamodel.internal;
import org.hibernate.bytecode.spi.ReflectionOptimizer.InstantiationOptimizer;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.type.descriptor.java.JavaType;
/**
* Support for instantiating entity values as POJO representation using
* bytecode optimizer
*
* @author Steve Ebersole
*/
public class EntityInstantiatorPojoOptimized extends AbstractEntityInstantiatorPojo {
private final InstantiationOptimizer instantiationOptimizer;
public EntityInstantiatorPojoOptimized(
EntityPersister persister,
PersistentClass persistentClass,
JavaType<?> javaType,
InstantiationOptimizer instantiationOptimizer) {
super( persister, persistentClass, javaType );
this.instantiationOptimizer = instantiationOptimizer;
}
@Override
public Object instantiate() {
return applyInterception( instantiationOptimizer.newInstance() );
}
}
|
hibernate/hibernate-search | 1,060 | engine/src/main/java/org/hibernate/search/engine/search/predicate/definition/TypedPredicateDefinitionContext.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.search.predicate.definition;
import org.hibernate.search.engine.search.predicate.dsl.TypedSearchPredicateFactory;
import org.hibernate.search.util.common.annotation.Incubating;
/**
* The context passed to {@link TypedPredicateDefinition#create(TypedPredicateDefinitionContext)}.
* @param <SR> Scope root type.
* @see TypedPredicateDefinition#create(TypedPredicateDefinitionContext)
*/
@Incubating
public interface TypedPredicateDefinitionContext<SR> extends PredicateDefinitionContext {
/**
* @return A predicate factory.
* If the named predicate was registered on an object field,
* this factory expects field paths to be provided relative to that same object field.
* This factory is only valid in the present context and must not be used after
* {@link PredicateDefinition#create(PredicateDefinitionContext)} returns.
* @see TypedSearchPredicateFactory
*/
TypedSearchPredicateFactory<SR> predicate();
}
|
hibernate/hibernate-validator | 1,029 | annotation-processor/src/main/java/org/hibernate/validator/ap/internal/util/CollectionHelper.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.validator.ap.internal.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
/**
* Provides some methods for simplified collection instantiation.
*
* @author Gunnar Morling
*/
public class CollectionHelper {
private CollectionHelper() {
// Not allowed
}
public static <K, V> HashMap<K, V> newHashMap() {
return new HashMap<K, V>();
}
public static <T> HashSet<T> newHashSet() {
return new HashSet<T>();
}
public static <T> TreeSet<T> newTreeSet() {
return new TreeSet<T>();
}
public static <T> ArrayList<T> newArrayList() {
return new ArrayList<T>();
}
@SafeVarargs
public static <T> Set<T> asSet(T... ts) {
return new HashSet<T>( Arrays.asList( ts ) );
}
@SafeVarargs
public static <T> Set<T> asTreeSet(T... ts) {
return new TreeSet<T>( Arrays.asList( ts ) );
}
}
|
openjdk/jdk8 | 1,126 | langtools/test/tools/javadoc/annotations/annotatePackage/pkg2/B.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.
*/
/**
* Doc comment here is ignored.
*/
package pkg2;
public class B {
}
|
openjdk/jdk8 | 1,132 | langtools/test/tools/javac/diags/examples/CyclicAnnoElement.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.cyclic.annotation.element
@interface X {
X value();
}
|
openjdk/jdk8 | 1,133 | langtools/test/com/sun/javadoc/testAbsLinkPath/pkg1/C1.java | /*
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg1;
import pkg2.*;
/**
* Class 1
*/
public class C1 extends C2 {}
|
openjdk/jdk8 | 1,135 | langtools/test/com/sun/javadoc/testMemberSummary/pkg2/A.java | /*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg2;
public interface A {
void f(Object x);
<T> void f(T[] x);
}
|
openjdk/jdk8 | 1,135 | langtools/test/tools/javac/diags/examples/ArrayRequired.java | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.array.req.but.found
class X {
int i;
int j = i[0];
}
|
openjdk/jdk8 | 1,139 | jdk/test/java/security/SecureClassLoader/TestClass.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class TestClass {
public static String foo() {
return "OK";
}
}
|
openjdk/jtreg | 1,162 | test/6527624/B/BB/GoodBB.java | /*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @key Any1 Any3
*/
public class GoodBB {
public static void main(String[] args) {
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.