Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
package org.apache.beam.sdk.extensions.euphoria.beam.io;
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.extensions.euphoria.core.client.io.UnboundedDataSource;
import org.apache.beam.sdk.io.UnboundedSource;
import org.apache.beam.sdk.options.PipelineOptions;
import org.joda.time.Instant;
final... | 0 |
import org.apache.atlas.authorize.AtlasActionTypes;
import org.apache.atlas.authorize.AtlasResourceTypes;
import org.apache.atlas.authorize.simple.AtlasAuthorizationUtils;
private static final String isEntityUpdateAllowed = "atlas.entity.update.allowed";
private static final String isEntityCreateAllowed = "atla... | 0 |
cloneStore(copy);
copy.cloneInterpolator(this);
/**
* Clones the internal map with the data of this configuration.
*
* @param copy the copy created by the {@code clone()} method
* @throws CloneNotSupportedException if the map cannot be cloned
*/
private void clo... | 0 |
if (position == 0 && !setPosition(1)) {
return null;
if (includeSelf && currentNodePointer.testNode(nodeTest)) {
position++;
return true;
} | 1 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 1 |
import com.google.inject.Binder;
import com.google.inject.Singleton;
import com.google.inject.matcher.Matchers;
import com.google.inject.multibindings.Multibinder;
import org.apache.atlas.repository.store.graph.v1.AtlasTypeDefGraphStoreV1;
import org.apache.atlas.store.AtlasTypeDefStore;
bind(AtlasTypeDefStore... | 0 |
/*
* Copyright (c) OSGi Alliance (2016). 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 ... | 0 |
import java.util.Set;
import com.google.common.collect.ImmutableSet;
import org.apache.aurora.scheduler.storage.log.SnapshotStoreImpl.HydrateSnapshotFields;
bind(new TypeLiteral<Set<String>>() { }).annotatedWith(HydrateSnapshotFields.class)
.toInstance(ImmutableSet.of()); | 0 |
import org.apache.beam.runners.core.OldDoFn; | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.executor;
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.Dataset;
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing.GlobalWindowing;
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing.Windowing;... | 0 |
String namespaceId = Tables.getNamespace(instance, tableId);
TableNamespaceConfiguration conf = tableNamespaceInstances.get(namespaceId);
conf = new TableNamespaceConfiguration(namespaceId, getSystemConfiguration(instance));
tableNamespaceInstances.put(namespaceId, conf);
conf = new Ta... | 0 |
import org.apache.aurora.gen.ScheduleStatus;
import org.apache.ibatis.session.ExecutorType;
// The ReuseExecutor will cache jdbc Statements with equivalent SQL, improving performance
// slightly when redundant queries are made.
configuration.setDefaultExecutorType(ExecutorType.REUSE);
for (ScheduleSta... | 0 |
package org.apache.accumulo.server.test.randomwalk.shard;
import java.util.Properties;
import java.util.Random;
import java.util.SortedSet;
import org.apache.accumulo.server.test.randomwalk.State;
import org.apache.accumulo.server.test.randomwalk.Test;
import org.apache.hadoop.io.Text;
public class Split extends Te... | 1 |
if (fs.getParentLayer() != null)
{
return fs.getParentLayer().getParent();
}
else
{
// Root file has no parent
return null;
} | 0 |
public abstract class UnitProcessor
extends org.apache.batik.util.UnitProcessor {
return org.apache.batik.util.UnitProcessor.
svgToObjectBoundingBox(s, attr, d, ctx);
ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
return org.apache.batik.util.... | 0 |
import static org.junit.Assert.*;
public class XMLCipherTest { | 0 |
final List<Branch> nextBranches = branching ? new ArrayList<>() : Collections.EMPTY_LIST; | 0 |
* @return true if the key was added, false otherwise. | 0 |
/** Checkpoint data to make it available in future pipeline runs. */
public static byte[] read(FileSystem fileSystem, Path checkpointFilePath) throws IOException {
* <p>{@link SparkPipelineOptions} checkpointDir is used as a root directory under which one
* checkpointing needs. Spark's checkpoint relies on Hado... | 1 |
import java.io.Serializable;
public class HashTable implements Serializable {
protected static class Entry implements Serializable { | 1 |
tokenSecurityEvent.setCorrelationID(signatureType.getId());
signatureValueSecurityEvent.setCorrelationID(signatureType.getId());
algorithmSuiteSecurityEvent.setCorrelationID(signatureType.getId()); | 0 |
* Creates and returns a new test pipeline for batch execution.
return create(false);
}
/**
* Creates and returns a new test pipeline for streaming execution.
*
* <p> Use {@link com.google.cloud.dataflow.sdk.testing.DataflowAssert} to add tests, then call
* {@link Pipeline#run} to execute the pipeline and... | 0 |
* @version $Revision: 1.8 $ | 0 |
execContext.getOrCreateStepContext("merge", "merge", null), | 0 |
String taskId,
boolean revocable) {
return taskFactory.createFrom(assigned, offer, revocable);
boolean revocable,
offer.getResourceBag(revocable),
taskId,
revocable);
boolean revocable,
revocable,
boolean revocable = tie... | 0 |
public void init(Session s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception { | 0 |
import org.apache.beam.sdk.extensions.gcp.options.GcpOptions;
eventsTopic.checkIfAnySubscriptionExists(
pipeline.getOptions().as(GcpOptions.class).getProject(), Duration.standardMinutes(1)); | 0 |
long lastStageAttemptTime = stage.getLastAttemptTime(hostName, role);
return lastStageAttemptTime > 0 && lastStageAttemptTime <= host.getLastRegistrationTime(); | 0 |
package org.apache.commons.digester3.annotations.rules;
import org.apache.commons.digester3.ObjectCreateRule;
import org.apache.commons.digester3.annotations.CreationRule;
import org.apache.commons.digester3.annotations.DigesterRule;
import org.apache.commons.digester3.annotations.DigesterRuleList;
import org.apache.co... | 1 |
import org.apache.http.util.Asserts;
Asserts.notNull(this.buf, "Content buffer"); | 0 |
* @version CVS $Id: CopletBaseData.java,v 1.7 2003/09/02 08:34:18 cziegeler Exp $
private String copletAdapterName; | 0 |
/**
* 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
* distribu... | 0 |
* @return A {@link ParseResult} containing the successfully parsed
* factories and the unknown ones. <B>Note:</B> it is up to caller to
* ensure that the lists do not contain duplicates
public static final ParseResult parseMacsList(String macs) {
public static final ParseResult parseMacsList(Stri... | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.testkit.accumulators; | 0 |
/** A utility class to interact with synthetic pipeline components. */ | 1 |
import com.google.cloud.dataflow.sdk.util.common.ReflectHelpers;
for (Method method : ReflectHelpers.getClosureOfMethodsOnInterface(klass)) { | 0 |
prefixes.add("xmlns"); | 0 |
import java.util.Optional;
return makeTask(id, makeConfig(job), instanceId, Optional.empty());
return makeTask(id, config, instanceId, Optional.empty()); | 0 |
getDigester().pushParams(parameters);
parameters = (Object[]) getDigester().popParams();
if (getDigester().log.isTraceEnabled()) {
getDigester().log.trace("[CallMethodRule](" + i + ")" + parameters[i]) ;
target = getDigester().peek(targetOffset);
... | 0 |
String expected = "g.V().outE('classifiedAs').has('__name', within('PII')).outV().dedup().limit(25).toList()";
String expected = "g.V().has('__typeName', 'Table').outE('classifiedAs').has('__name', within('Dimension')).outV().dedup().limit(25).toList()";
"g.V().has('__typeName', 'Table')... | 0 |
import org.apache.beam.sdk.extensions.sql.meta.provider.ReadOnlyTableProvider;
ReadOnlyTableProvider tableProvider =
new ReadOnlyTableProvider( | 0 |
private final Stack<Object> stack = new Stack<>(); | 0 |
import java.net.DatagramPacket;
import java.net.InetAddress;
public final class TFTPReadRequestPacket extends TFTPRequestPacket
{
/***
* Creates a read request packet to be sent to a host at a
* given port with a filename and transfer mode request.
* <p>
* @param destination The host to which ... | 0 |
stateMach.registerStateModelFactory(DEFAULT_STATE_MODEL, stateModelFactory);
} | 0 |
protected SignatureElementProxy() {
};
/**
* Constructor SignatureElementProxy
*
* @param doc
*/
public SignatureElementProxy(Document doc) {
if (doc == null) {
throw new RuntimeException("Document is null");
}
this.doc = doc;
thi... | 0 |
package org.apache.batik.ext.awt.image.renderable; | 0 |
StringBuilder results = new StringBuilder(); | 0 |
private DataInputView inputView;
public DataInputViewWrapper(DataInputView inputView) {
this.inputView = inputView;
}
public void setInputView(DataInputView inputView) {
this.inputView = inputView;
}
@Override
public int read() throws IOException {
try {
return inputView.readUnsignedB... | 0 |
import org.apache.htrace.Span; | 0 |
log.debug("Iterator options: " + iterOpts);
log.debug("Loading " + iterInfo.className + " " + iterInfo.iterName + " " + iterInfo.priority); | 0 |
import org.apache.ambari.server.orm.dao.HostRoleCommandDAO;
import org.apache.ambari.server.orm.dao.HostRoleCommandStatusSummaryDTO;
@Inject
private static HostRoleCommandDAO s_hostRoleCommandDao;
Map<Long, HostRoleCommandStatusSummaryDTO> map = s_hostRoleCommandDao.findAggregateCounts(requestId);
... | 0 |
throws SAXException, IOException { | 0 |
log.info("ConditionalUpdate was not rejected by server due to table"
+ " constraint. Sleeping and retrying"); | 0 |
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | 0 |
/** Marks a constant pool entry as a Module Reference.
* @see <a href="http://cr.openjdk.java.net/~mr/jigsaw/spec/lang-vm.html#jigsaw-2.6">
* JPMS: Modules in the Java Language and JVM</a>
* Note: Early access Java 9 support- currently subject to change */
public static final byte CONSTANT_Module ... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/ListIteratorCharListIterator.java,v 1.3 2003/11/07 20:08:15 rwaldhoff Exp $
*
* @deprecated This code has been moved to Jakarta Commons Primitives (htt... | 0 |
import org.apache.hc.core5.http.ssl.TLS; | 0 |
FileItem item = fileIter.next();
@Override
@Override
@Override
@Override
FileItem item = fileIter.next();
final FileItem fileItem = fileItems.get(0); | 0 |
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_0, 200, "OK");
HttpMutableResponse response = new BasicHttpResponse(statusline);
StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_1, 200, "OK");
HttpMutableResponse response = new BasicHttpResponse(statusline); | 0 |
// nothing really to do; GC will do the rest | 0 |
// register a PropertyPlaceholderConfigurer
this.addComponent(CocoonPropertyOverrideConfigurer.class.getName(), CocoonPropertyOverrideConfigurer.class.getName(), null, true, parserContext.getRegistry());
// add the servelt context as a bean | 0 |
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1 |
import java.io.ByteArrayInputStream;
import org.ops4j.pax.exam.forked.ForkedTestContainer;
import org.ops4j.pax.exam.junit.ExamFactory;
import org.ops4j.pax.exam.nat.internal.NativeTestContainer;
import org.ops4j.pax.exam.nat.internal.NativeTestContainerFactory;
/**
* The common integration test support class
*
* T... | 0 |
*
public class ObjectCreationFactoryTestImpl
extends AbstractObjectCreationFactory
{
public Object createObject( Attributes attributes )
{
this.attributes = new AttributesImpl( attributes ); | 1 |
package org.apache.commons.digester3.examples.api.catalog;
| 0 |
import org.apache.commons.digester3.rule.AbstractObjectCreationFactory;
import org.xml.sax.Attributes;
Class<? extends ObjectCreationFactory<?>> factoryClass() default DefaultObjectCreationFactory.class;
/**
* Dummy ObjectCreationFactory type only for annotation value type purposes.
*/
public stat... | 0 |
String fileName = attributes.getValue( "url" ); | 0 |
/** Base class for all string unary operators. */
@Override
public boolean accept() { | 0 |
import org.w3c.css.sac.DescendantSelector;
import org.w3c.css.sac.SiblingSelector;
public DescendantSelector createDescendantSelector
public DescendantSelector createChildSelector(Selector parent,
public SiblingSelector createDirectAdjacentSelector
(short nodeType,
Selector c... | 0 |
/** Indicates the strict mode. */
private final boolean strict;
/**
* Creates an instance of the {@link Nysiis} encoder with strict mode (original form),
* i.e. encoded strings have a maximum length of 6.
*/
/**
* Create an instance of the {@link Nysiis} encoder with the specified st... | 0 |
import org.apache.commons.jelly.xpath.XPathTagSupport; | 0 |
if (this.status != ACTIVE) {
if (this.status == CLOSING) {
this.status = CLOSED;
if (this.status == CLOSING) {
this.status = CLOSED; | 0 |
public static <T> Transformer<T, Boolean> predicateTransformer(final Predicate<? super T> predicate) {
public PredicateTransformer(final Predicate<? super T> predicate) {
public Boolean transform(final T input) { | 0 |
import org.apache.accumulo.core.client.impl.Table;
private static Map<Table.ID,Map<ProblemType,Integer>> problemSummary = Collections.emptyMap();
public static Map<Table.ID,Map<ProblemType,Integer>> getProblemSummary() { | 1 |
import static com.google.common.base.Preconditions.checkState;
int i = rs.getInt(columnName);
checkState(!rs.wasNull());
return fromValue(i);
int i = rs.getInt(columnIndex);
checkState(!rs.wasNull());
return fromValue(i);
int i = cs.getInt(columnIndex);
checkState(!cs.wasNull());
re... | 0 |
import java.util.Objects;
import org.apache.accumulo.core.data.NamespaceId;
public static final Namespace DEFAULT = new Namespace("", NamespaceId.of("+default"));
public static final Namespace ACCUMULO = new Namespace("accumulo", NamespaceId.of("+accumulo"));
private final String name;
private final NamespaceI... | 0 |
List<ACL> listACL = removeDuplicates(createRequest.getAcl());
if (!fixupACL(request.authInfo, listACL)) {
listACL,
0, listACL));
listACL = removeDuplicates(setAclRequest.getAcl());
if (!fixupACL(request.authI... | 0 |
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
@Mojo( name = "manifest", requiresDepende... | 0 |
import org.apache.ambari.server.state.stack.upgrade.UpgradeType;
@UpgradeCheck(
group = UpgradeCheckGroup.LIVELINESS,
order = 1.0f,
required = { UpgradeType.ROLLING, UpgradeType.NON_ROLLING, UpgradeType.HOST_ORDERED }) | 0 |
* @return ThreadFactory | 0 |
requests.add(getRequest(Collections.emptyMap())); | 0 |
/**
* 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
* distribu... | 0 |
* @version CVS $Id$
public interface Web3Client {
String ROLE = Web3Client.class.getName(); | 0 |
* Copyright (c) 2002 The Apache Software Foundation. All rights | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; | 0 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 0 |
import org.apache.ambari.logsearch.config.zookeeper.model.inputconfig.impl.InputDescriptorImpl;
InputDescriptorImpl inputDescriptor = new InputDescriptorImpl() {};
inputDescriptor.setType("hdfs-namenode");
expect(input.getInputDescriptor()).andReturn(inputDescriptor);
InputDescriptorImpl inputDescr... | 0 |
import org.apache.hc.core5.annotation.Immutable;
import org.apache.hc.core5.util.Args;
import org.apache.hc.core5.util.LangUtils; | 0 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 0 |
import org.apache.accumulo.examples.wikisearch.normalizer.LcNoDiacriticsNormalizer;
import org.apache.accumulo.examples.wikisearch.normalizer.Normalizer;
import org.apache.accumulo.examples.wikisearch.protobuf.Uid;
import org.apache.accumulo.examples.wikisearch.util.TextUtil; | 0 |
import static com.google.common.base.MoreObjects.toStringHelper; | 0 |
/**
* TLS/SSL support for asynchronous, event driven communication.
*/
package org.apache.http.nio.reactor.ssl; | 0 |
return new ProcessKiller(httpSignaler, options.killTreePath, | 0 |
import org.xml.sax.Attributes;
this( null );
private String propertyName;
/**
* Extract the property name from attribute
*/
private String propertyNameFromAttribute;
* Sets the attribute name from which the property name has to be extracted.
*
* @param propertyNameFromAttri... | 0 |
import org.testng.Assert;
Class cls = ApplicationProperties.getClass("atlas.TypeSystem.impl", ApplicationProperties.class.getName(), TypeSystem.class);
cls = ApplicationProperties.getClass("atlas.TypeSystem2.impl", TypeSystem.class.getName(), TypeSystem.class);
//incompatible assignTo class, sh... | 0 |
static class ComponentInstance {
private final Ensure m_ensure;
public ComponentInstance(Ensure e) {
m_ensure = e;
m_ensure.step(1);
}
public void init() {
m_ensure.step(2);
}
public void start() {
m_ensure.step(3);
... | 0 |
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import org.apache.felix.http.base.internal.DispatcherServlet;
// check for endpoint registration property
final Hashtable<String, Object> serviceRegProps = new Hashtable<String, Object>();
if ( getBundleContext().getPrope... | 0 |
* @version CVS $Id$
public interface XMLSerializer extends XMLConsumer { | 0 |
reconfigFlagClear();
if (shuttingDownLE) {
shuttingDownLE = false;
startLeaderElection();
}
// we need to write the dynamic config file. Either it already e... | 0 |
@Override | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.