Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.apache.hadoop.metrics2.sink.timeline.query; import org.apache.hadoop.hbase.util.RetryCounterFactory; public Connection getConnectionRetryingOnException(RetryCounterFactory retryCounterFactory) throws SQLException, InterruptedException;
0
// nothing to do, session created event is sent from within the session
0
import org.junit.Before;
0
* .apply(name + ".Rekey", ParDo.of(new DoFn<Bid, KV<Long, Void>>() { @ProcessElement .apply(name + ".ToResult", ParDo.of(new DoFn<KV<Long, Long>, BidsPerSession>() { @ProcessElement
0
import java.util.List; private List<ConfigurationRequest> desiredConfigs; // UPDATE public void setDesiredConfigs(List<ConfigurationRequest> request) { desiredConfigs = request; public List<ConfigurationRequest> getDesiredConfigs() { return desiredConfigs;
0
private BundleFactory bundleFactory = ImmutableListBundleFactory.create(); EvaluationContext context = mock(EvaluationContext.class); TransformResult rightSideResult = rightSideEvaluator.finishBundle(); TransformResult leftSideResult = leftSideEvaluator.finishBundle(); EvaluationContext context = mock...
0
final SortedSet result= new TreeSet(COMPARE); // result will contain the attrs which have to be outputted final SortedSet result = this.result; result.clear(); SortedSet result = this.result; result.clear();
0
import org.apache.http.impl.client.builder.HttpClientBuilder; * MinimalHttpClient httpclient = HttpClientBuilder.buildDefault(); * // When HttpClient instance is no longer needed, it can be closed * // to ensure immediate deallocation of all system resources * httpclient.close(); @SuppressWarnings("depr...
0
* @version $Id: SftpFileProvider.java,v 1.9 2004/05/10 20:09:51 imario Exp $ public SftpFileProvider() super(); return new SftpFileSystem((GenericFileName) rootName, this.getJSch(), fileSystemOptions);
0
testConfigFileReload("Empty", path, reloadCount, Collections.emptyList(), resolver, expected, null);
0
import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
0
import org.apache.http.util.Args; Args.notNull(entity, "HTTP entity");
0
import java.io.IOException; public class SparkTestPipelineOptionsForStreaming extends SparkTestPipelineOptions {
0
final boolean expired = super.isExpired(now); final OperatedClientConnection conn = getConnection(); final OperatedClientConnection conn = getConnection(); } catch (final IOException ex) {
0
import java.util.Objects; @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } KerberosDescriptorEntity other = (KerberosDescriptorEntity) obj; return Objects.equals(name, other.name) ...
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 com.google.cloud.dataflow.sdk.util.WindowedValue; BroadcastHelper<?> broadcastHelper = mSideInputs.get(view.getTagInternal()); Iterable<WindowedValue<?>> contents = (Iterable<WindowedValue<?>>) broadcastHelper.getValue(); return view.fromIterableInternal(contents);
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
* @deprecated Use {@link #createUser(String,byte[])} instead /** * Create a user * * @param user * the name of the user to create * @param password * the plaintext password for the user * @throws AccumuloException * if a general error occurs * @throws Accumu...
0
private static final long serialVersionUID = -5532275839192747402L;
0
import org.apache.bcel.classfile.ConstantInvokeDynamic; public void visitConstantInvokeDynamic(ConstantInvokeDynamic obj) { }
0
/** * @see org.apache.cocoon.components.flow.Interpreter#getScriptExtension() */ public String getScriptExtension() { return null; }
0
import org.apache.http.client.methods.HttpRequestWrapper;
0
public class TestReverseComparator extends AbstractTestComparator<Integer> { * For the purposes of this test, return a * public Comparator<Integer> makeObject() { return new ReverseComparator<Integer>(Collections.<Integer>reverseOrder()); public List<Integer> getComparableObjectsOrdered() { ...
0
* If the input array has more elements than are in the bag, * trailing elements will be set to null. // This is safe, both are type T // TODO this is unsafe
0
getterClass = Boolean.TYPE; getterClass = value.getClass(); getterClass = Boolean.TYPE;
0
/* * * * * public class TraxProcessor extends AbstractLogEnabled implements XSLTProcessor, Serviceable, Initializable, Disposable, Parameterizable, Recyclable, URIResolver { * * @see org.apache.excalibur.xml.xslt.XSLTProcessor#getTransforme...
0
import org.junit.Assume; import org.apache.ambari.server.utils.ShellCommandUtil; Assume.assumeTrue(ShellCommandUtil.UNIX_LIKE);
0
package org.apache.cocoon.components.slide.impl; * @version CVS $Id: SlideConfigurationAdapter.java,v 1.1 2003/12/02 19:18:45 unico Exp $
0
throw new AtlasBaseException(AtlasErrorCode.SUPERTYPE_REMOVAL_NOT_SUPPORTED); throw new AtlasBaseException(AtlasErrorCode.SUPERTYPE_REMOVAL_NOT_SUPPORTED);
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
0
throws PortalException { public void prepare(PortalManagerAspectPrepareContext renderContext) throws PortalException {
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables.getOnlyElement; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
import cz.seznam.euphoria.core.client.io.Context; void apply(IN elem, Context<OUT> context);
0
import org.apache.hc.core5.annotation.Immutable; import org.apache.hc.core5.util.Args;
1
public final class CloudObject extends GenericJson implements Cloneable {
0
* @param type The layout type. public CopletLayout(String id, LayoutType type) { super(id, type);
0
JErrorPane pane =
0
* $Id: TestConnectionPool.java,v 1.2 2002/11/08 19:17:24 rwaldhoff Exp $ * $Revision: 1.2 $ * $Date: 2002/11/08 19:17:24 $ * @version $Id: TestConnectionPool.java,v 1.2 2002/11/08 19:17:24 rwaldhoff Exp $ } catch (java.sql.SQLException e) {
0
* @version $Id$
1
throw new AppleNotFoundException("The class '" + appleName + "' can't be accessed. Check the class modifier.", e);
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
protected Class loadClassFromModule(String name)
0
* Invoked when a HTTP request message is received.
0
if (split instanceof org.apache.accumulo.core.client.mapreduce.RangeInputSplit) { org.apache.accumulo.core.client.mapreduce.RangeInputSplit accSplit = (org.apache.accumulo.core.client.mapreduce.RangeInputSplit) split;
0
// Need to explicitly notify() __queue.notify();
0
import static org.apache.ambari.logsearch.doc.DocConstants.CommonDescriptions.E_MESSAGE_D; String geteMessage(); @ApiParam(value = E_MESSAGE_D, name = LogSearchConstants.REQUEST_PARAM_E_MESSAGE) void seteMessage(String eMessage);
0
/** Estimates a size of the mutation group in bytes. */ public static long sizeOf(MutationGroup group) { long result = 0; for (Mutation m : group) { result += sizeOf(m); } return result; }
0
import org.apache.felix.sigil.eclipse.ui.util.BackgroundLoadingSelectionDialog; import org.apache.felix.sigil.eclipse.ui.util.IValidationListener;
0
package org.apache.felix.sigil.common.repository; import org.apache.felix.sigil.common.model.IModelElement; import org.apache.felix.sigil.common.model.eclipse.ISigilBundle;
0
import java.util.ArrayList; import java.util.concurrent.CountDownLatch; import org.apache.mina.core.session.IoSession; import org.apache.sshd.common.future.CloseFuture; import org.apache.sshd.common.future.SshFutureListener; import org.apache.sshd.common.session.AbstractSession; public void stop() throws Interrupte...
0
try (DataInputStream dis = new DataInputStream(bais)) {
0
* RetryHttpInitializerWrapper will automatically retry upon RPC failures, preserving the * auto-refresh behavior of the Google Credentials. /** A private logger. */ private static final Logger LOG = Logger.getLogger(RetryHttpInitializerWrapper.class.getName()); /** One minutes in miliseconds. */ private stati...
1
// ~ now flush the states tracked in the window windowState.getSecond().values().stream().forEachOrdered(State::flush);
0
/** * Object that provides CRUD operations for script objects */ private final static Logger LOG = LoggerFactory.getLogger(UDFResourceManager.class); /** * Constructor * @param context View Context instance */ public UDFResourceManager(ViewContext context) { super(UDF.class, context); }
0
import org.apache.accumulo.core.client.AccumuloSecurityException; } catch (RuntimeException e) { if (e.getCause() instanceof AccumuloSecurityException) { log.debug("BatchScan " + tableName + " failed, permission error"); } else { throw e; }
0
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a>
0
import org.apache.accumulo.miniclusterImpl.MiniAccumuloConfigImpl;
0
* * * @param fileFilters a List of IOFileFilter instances, copied, null ignored this.fileFilters = new ArrayList(); } else { this.fileFilters = new ArrayList(fileFilters);
0
public Object _if(CommandSession session, Function condition, Function ifTrue, Function ifFalse) throws Exception
0
private boolean recovered = false; private StreamTransaction transaction = null; private final StoreProvider logStoreProvider = new StoreProvider() { @Override public SchedulerStore getSchedulerStore() { return LogStorage.this; } @Override public JobStore getJobStore() { return LogStorag...
0
final StringBuilder builder = new StringBuilder(super.toString());
0
package org.osgi.util.converter;
0
Map<String, Set<String>> propertiesToBeIgnored, boolean excludeHeadless) throws AmbariException { processServiceComponents(cluster, kerberosDescriptor, components, identityFilter, dataDirectory, currentConfigurations, kerberosConfigurations, in...
0
package org.apache.http.impl.nio.reactor;
0
identifier = parseIdentifier(id); } /** * Parse an identifier which must be of the form: * 0|([1-9][0-9]*) * @param id the identifier * @return an integer or null */ private static Integer parseIdentifier(String id) { // hand coded because the was no way to fail on ...
0
* bitset of characters deemed URL safe * array of bytes to convert to URL safe characters * @param bytes * array of URL safe characters * @throws DecoderException * Thrown if URL decoding is unsuccessful * @param byte...
0
return "Property";
0
* @version $Revision$
1
/** * Subclasses must implement a typedReduce method: public Long typedReduce(Key key, Iterator<Long> iter); * A required option for this Combiner is "type" which indicates which type of Encoder to use to encode and decode Longs into Values. Supported types are /** /** /**
0
private static final Value NOVALUE = new Value(new byte[0]); public SortedKeyIterator() {} public SortedKeyIterator(SortedKeyIterator other, IteratorEnvironment env) { setSource(other.getSource().deepCopy(env)); } @Override public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment e...
1
package org.apache.beam.runners.direct;
0
* * * "cyrillic", "iso8859_5", "ISO_8859-5", "iso-ir-144", "csISOLatinCyrillic",
0
Map<Resource.Type, String> mapIds = new HashMap<>();
1
.toSortedList(Ordering.natural()); .toSortedList(Ordering.natural()); return new ApiSurface(Collections.emptySet(), Collections.emptySet());
0
import org.apache.http.params.HttpParams;
0
package org.apache.aurora.scheduler.storage.log; import org.apache.aurora.scheduler.log.Log; import org.apache.aurora.scheduler.storage.CallOrderEnforcingStorage; import org.apache.aurora.scheduler.storage.DistributedSnapshotStore; import org.apache.aurora.scheduler.storage.log.LogManager.MaxEntrySize; import org.apach...
0
graphicsNodeBridge.buildGraphicsNode(treeRoot, ctx, svgRoot); graphicsNodeBridge.buildGraphicsNode(treeRoot, ctx, element); gnb.buildGraphicsNode(childGVTNode, ctx, e);
0
* @version $Id$
0
public boolean upgrade( return true; return false;
0
/** Tests for SerializableConfiguration. */ @Rule public final ExpectedException thrown = ExpectedException.none(); new SerializableConfiguration(new Configuration()); SerializableConfiguration.newConfiguration(new SerializableConfiguration(confFromNull));
1
/** org.apache.beam.sdk.nexmark.sources.generator. */ /** Events generation logic. */
1
InputT, OutputT, RestrictionT, TrackerT extends RestrictionTracker<RestrictionT, ?>> InputT, OutputT, RestrictionT, TrackerT extends RestrictionTracker<RestrictionT, ?>>
0
package org.apache.cocoon.bootstrap.servlet;
0
DoFnRunner<KV<K, V>, OutputT> doFnRunner = DoFnRunners.simpleRunner( serializedOptions.get(), dofn, new FlinkSideInputReader(sideInputs, runtimeContext), outputManager, mainOutputTag, additionalOutputTags, new FlinkNoOpStepContext() { @Override pub...
0
/** * @param proxySelector the proxy selector, or {@code null} for the system default */ this.proxySelector = proxySelector; /** * @param proxySelector the proxy selector, or {@code null} for the system default */ ProxySelector proxySelectorInstance = this.proxySelector; ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/jeez/Attic/TargetTag.java,v 1.4 2002/12/31 07:38:29 jvanzyl Exp $ * $Revision: 1.4 $ * $Date: 2002/12/31 07:38:29 $ * $Id: TargetTag.java,v 1.4 2002/12/31 07:38:29 jvanzyl Exp $ import...
0
* The BridgeUpdateHandler stack. Used in building time. */ protected List bridgeUpdateHandlerStack = new LinkedList(); /** //viewportMap.remove(e); FIXME: potential memory leak // dynamic support public void pushBridgeUpdateHandler(BridgeUpdateHandler handler) { bridgeUpdateH...
0
// Set the correct parallelism, required by UnboundedSourceWrapper to generate consistent // splits. // If the user supplies a parallelism on the command-line, this is set on the execution // environment during creation
0
if (!(appId.equals("HOST") || appId.equals("FLUME_HANDLER")) ) {
0
c.output(new PubsubMessage(payload, new HashMap<>()));
0
task.getAssignedTask().getTask().getJob(),
0
return trees.get(index); return branches.get(index); return leaves.get(index);
0
* any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * permission of the Apache Software Foundation. * @version $Id: ASTGTNode.java,v 1.4 2003/10/09 21:28:55 rdonki...
0
private boolean defaultNamespaceIgnored; reverseMap.put(nsPointer.getNamespaceURI(), nsPointer.getName().getName()); public boolean isDefaultNamespaceIgnored() { return defaultNamespaceIgnored; } public void setDefaultNamespaceIgnored(bo...
0
final Class<?> componentClass, final String referenceClassName, final boolean isDS11, final boolean isDS12Felix )
0
package org.apache.hc.core5.http.impl.nio;
1
return MatchResult.create(Status.NOT_FOUND, Collections.emptyList());
0
public DateParseException(final String message) {
0