Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.sshd.common.util.closeable.AbstractCloseable; public class ClientUserAuthService extends AbstractCloseable implements Service {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/BetaBean.java,v 1.4 2003/10/09 21:09:48 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/10/09 21:09:48 $ * Alternately, this acknowledgement may appear in the software itself, * ...
0
import org.osgi.service.converter.StandardConverter; private Converter converter = new StandardConverter();
0
byteArrayKvListCaptor.getValue().stream() kvGroups.stream() mutationGroups.stream() mutationGroups.stream()
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString;
0
import org.apache.beam.sdk.runners.PTransformOverride; pipeline.replace(PTransformOverride.of(override.getKey(), override.getValue()));
0
log.info("{} {}", entry.getKey().toStringNoTruncate(), entry.getValue()); log.info("{} {}", entry.getKey().toStringNoTruncate(), ProtobufUtil.toString(Status.parseFrom(entry.getValue().get()))); log.info("{} {}", entry.getKey().toStringNoTruncate(), entry.getValue()); log.info("{} {}", entry.get...
0
import cz.seznam.euphoria.core.client.operator.state.State;
0
if ((i % (10 * 1000)) == 0) { UtilWaitThread.sleep(5 * 1000);
0
* @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a> public BridgeDOMInsertedRemovedListener(ConcreteBridgeContext context) { public void handleEvent(Event evt) { if (gn != null) { if (event.getType().equals(DOM_NODE_INSERTED_TYPE)) { // it means we kno...
0
public class JexlEvalContext implements JexlContext, JexlContext.NamespaceResolver, JexlEngine.Options {
0
import java.util.ArrayList; import javax.naming.InvalidNameException; import javax.naming.NamingException; import javax.naming.directory.Attribute; import javax.naming.directory.Attributes; import javax.naming.ldap.LdapName; import javax.naming.ldap.Rdn; final String subjectPrincipal = cert.getSubjectX500Princi...
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...
0
if (matchFound && (!negated)) { if (negated) { return new Pair<Pattern, Boolean>(Pattern.compile(sb.toString(), Pattern.CASE_INSENSITIVE), negated);
0
package cz.seznam.euphoria.flink.batch; import cz.seznam.euphoria.core.client.functional.UnaryFunctor; import cz.seznam.euphoria.core.client.operator.FlatMap; import cz.seznam.euphoria.flink.FlinkOperator; import cz.seznam.euphoria.flink.functions.UnaryFunctorWrapper; import org.apache.flink.api.java.DataSet; class F...
0
package org.apache.sshd.client.subsystem.sftp.extensions.helpers;
0
new BeamSqlInitCapExpression(operands).evaluate(record, null).getValue()); new BeamSqlInitCapExpression(operands).evaluate(record, null).getValue()); new BeamSqlInitCapExpression(operands).evaluate(record, null).getValue());
0
* or more contributor license agreements. See the NOTICE file * regarding copyright ownership. The ASF licenses this file * with the License. You may obtain a copy of the License at * KIND, either express or implied. See the License for the
0
import org.apache.beam.sdk.coders.StructuredCoder; public static class Coder<T> extends StructuredCoder<ValueInSingleWindow<T>> {
0
@Basic(fetch = FetchType.LAZY) @Lob
0
import org.apache.ambari.server.controller.utilities.PredicateHelper; import org.apache.ambari.server.topology.LogicalRequest; import org.apache.commons.lang.math.NumberUtils; import com.google.common.collect.Sets; // !!! check the id passed to see if it's a LogicalRequest. This safeguards against // iteratin...
0
public ArrayListValuedHashMap(final int initialListCapacity) { public ArrayListValuedHashMap(final int initialMapCapacity, final int initialListCapacity) { private void writeObject(final ObjectOutputStream oos) throws IOException { private void readObject(final ObjectInputStream ois) throws IOException,...
0
log.warn(e.getMessage(), e); log.debug("Unable to initate log sort for {}: ", source, e); log.warn("Failed to initiate log sort {}", source, e); log.info("Created zookeeper entry {} with data {}", path, work); log.info("Volume replaced {} -> {}", walog, switchedWalog); log.de...
0
private final AtomicBoolean failed; this.failed = new AtomicBoolean(false); if (failed.compareAndSet(false, true)) { if (exchangeHandler != null) { exchangeHandler.failed(cause); }
0
StringBuilder shortMonthNamesStr = new StringBuilder(BUFSZ);
0
import java.io.File; // Paths.get(x) will not work on win cause of the ":" after the drive letter Files.copy( new File(source).toPath(), new File(destination).toPath(), StandardCopyOption.REPLACE_EXISTING);
0
* Creates a continuation for a batch call, and returns it in a <code>Callable</code>. * Creates a continuation for a query call, and returns it in a <code>Callable</code>. * Creates a continuation for an update call, and returns it in a <code>Callable</code>.
0
String ret; float factor; for ( Performance perf : tests ) Results javaResults = perf.testJava( ), interpretedResults = perf.testExpression( false ), compiledResults = perf.testExpression( true ); { } ...
0
* @version CVS $Id: LexicalTransformer.java,v 1.2 2003/03/19 15:42:14 cziegeler Exp $ public Serializable getKey() { public SourceValidity getValidity() {
0
import com.google.common.base.MoreObjects; import com.google.common.base.Objects; public final class DelegateCoder<T, IntermediateT> extends CustomCoder<T> { public boolean equals(Object o) { if (o == null || this.getClass() != o.getClass()) { return false; } DelegateCoder<?, ?> that = (DelegateCode...
0
/** Utility methods for interacting with {@link DoFnLifecycleManager DoFnLifecycleManagers}. */
1
private final static Logger LOG = LoggerFactory.getLogger(AmbariMetaInfoTest.class); @Test public void testGetVersionDefinitionsForDisabledStack() throws AmbariException { Map<String, VersionDefinitionXml> versionDefinitions = metaInfo.getVersionDefinitions(); Assert.assertNotNull(versionDefinitions); ...
0
import org.apache.commons.jelly.util.ClassLoaderUtils; * @version $Revision: 1.6 $ parent = ClassLoaderUtils.getClassLoader(getClass());
0
private XMLUtils() { // we don't allow instantiation } * Returns all ancestor elements of a given node up to the document element * Returns all ancestor elements of a given node up to the given root element * * @param ctxNode * @param rootElement * @return */ public static Ve...
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
import javax.persistence.EnumType; import javax.persistence.Enumerated; * Cluster Type for cluster Handle */ @Enumerated(EnumType.STRING) @Column(name = "cluster_type", nullable = false) private ClusterType clusterType; /** this.clusterType = ClusterType.LOCAL_AMBARI; * Get the type of cluster t...
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
0
for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) { int[] oldentry = (int[])(e.nextElement());
0
try { reference.tie(); } catch (IOException ioe) { // This would be from a close, Let it slide... } reference.release(); reference.release(); reference.release(); reference.release();...
0
package org.apache.atlas.repository.store.graph.v2; public class AtlasEntityStoreV2Test extends AtlasEntityTestBase {
1
public TransformedMap<K, V1, V2> decode(InputStream inStream) throws CoderException, IOException {
0
* * @since 4.0
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...
1
package org.apache.felix.inventory;
0
* service properties found from the AdapteeService: * &#64;AdapterService(adapteeService = AdapteeService.class) * &#64;Property(name="param", value="value") * @return the adapter service interface(s) * @return some additional properties * @return the adaptee service interface this adapter is applying...
0
null) .newBuilder());
0
import org.apache.accumulo.harness.AccumuloClusterHarness; public class TableConfigurationUpdateIT extends AccumuloClusterHarness {
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
public synchronized void setEventMask(final int ops) { public synchronized void setEvent(final int op) { public synchronized void clearEvent(final int op) { public void setSocketTimeout(final int timeout) {
0
* Copyright 2002-2006 The Apache Software Foundation. * * * * Implementation of JexlContext based on a HashMap. public class HashMapContext extends HashMap implements JexlContext { /** serialization version id jdk13 generated. */ /** * {@inheritDoc} */ public void setVars(Map vars) { /**...
0
/* * Copyright 2002-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
0
* Hide constructor for a utility class. */ private Util() { } /**
0
import org.apache.felix.sigil.common.progress.IProgress; public void synchronize(IProgress progress) throws IOException progress = progress.newTask(100); progress.report("Synchronizing " + bundle.getSymbolicName() + " binary"); progress.report("Synchronizing " + bundle.getSymbolicNam...
0
import org.apache.beam.sdk.transforms.windowing.GlobalWindow; @Test public void testCoderIsSerializableWithWellKnownCoderType() throws Exception { CoderProperties.coderSerializable(CollectionCoder.of(GlobalWindow.Coder.INSTANCE)); }
0
return _openDataConnection_(FTPCommand.getCommand(command), arg); } /** * Returns a socket of the data connection. * Wrapped as an {@link SSLSocket}, which carries out handshake processing. * @param command The textual representation of the FTP command to send. * @param arg The argum...
0
LOG.info("SSL handshake complete with {} - {} - {}", sslSock.getRemoteSocketAddress(), sslSock.getSession().getProtocol(), sslSock.getSession().getCipherSuite()); LOG.info("Creating TLS-enabled quorum server socket"); LOG.info("Creating TLS-only quorum se...
0
import junit.framework.TestCase; @Override @Override @Override
0
@JsonIgnore public boolean isUnassigned() { return isUnAssigned(guid); } @JsonIgnore public boolean isAssigned() { return isAssigned(guid); } @JsonIgnore public static boolean isAssigned(String guid) { try { UUID.fromString(guid); } catch (Il...
0
import com.twitter.nexus.gen.JobConfiguration; public static TwitterTaskInfo populateFields(JobConfiguration job, TwitterTaskInfo config) .setOwner(job.getOwner()) .setJobName(job.getName())
0
/* ==================================================================== * Copyright (c) 2003-2004 The Apache Software Foundation. All rights * @version $Revision: 1.5 $ $Date: 2004/01/14 21:34:35 $
0
metaInfoXml.addError(msg);
0
public static void updateTabletDir(KeyExtent extent, String newDir, Credentials creds, ZooLock lock) { Mutation m = new Mutation(extent.getMetadataEntry()); TabletsSection.ServerColumnFamily.DIRECTORY_COLUMN.put(m, new Value(newDir.getBytes())); update(creds, lock, m, extent); } public static void se...
0
* @version $Id: URLCodec.java,v 1.13 2004/01/09 19:02:47 ggregory Exp $ private final static String US_ASCII = "US-ASCII"; protected String encoding = "UTF-8"; return new String(encode(pString.getBytes(encoding)), US_ASCII); return encode(pString, this.encoding); return new Str...
0
private final Log log = LogFactory.getLog(getClass());
0
state.setCancellable(this.cancellable);
0
import org.apache.hc.core5.http.config.H1Config; public BrokenServerConnection(final H1Config h1Config) { super(null, h1Config); final BrokenServerConnection conn = new BrokenServerConnection(H1Config.DEFAULT);
1
* Defines the {@link org.apache.beam.sdk.transforms.windowing.Window} transform * {@link org.apache.beam.sdk.transforms.windowing.Trigger} for controlling when those * {@link org.apache.beam.sdk.values.PCollection} into finite windows according to a * {@link org.apache.beam.sdk.transforms.windowing.WindowFn}. * {@...
0
return new CollectionSortedBag<>(bag);
1
private final String rootFile; this.rootFile = rootFile; final String fileName = rootFile + name.getPath();
0
&& leftValue.floatValue() != rightValue.floatValue());
0
TreeSet<Text> cutPoints = new TreeSet<>();
0
return new TestSuite(LazyDynaMapTestCase.class);
0
import org.apache.hc.client5.http.io.HttpClientConnectionManager; import org.apache.hc.client5.http.sync.ExecChain; import org.apache.hc.client5.http.sync.ExecChainHandler; import org.apache.hc.core5.http.ClassicHttpRequest; import org.apache.hc.core5.http.impl.io.HttpRequestExecutor; import org.mockito.Mock; import or...
0
/* * Copyright 2003-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 applica...
0
final int b = in.read(); final int bytesRead = in.read(b); final int bytesRead = in.read(b, off, len);
0
import org.apache.http.HeaderIterator; for (HeaderIterator it = request.headerIterator(); it.hasNext();) { Header header = it.nextHeader();
0
if (value == null || value.trim().length() == 0) {
0
ITaskConfig.build(state.getAssignedTask().getTask().newBuilder().setInstanceId(0)); .setInstanceId(0) .setTask(task.newBuilder().setInstanceId(0)))); getTask(state.getAncestorId()).getAssignedTask().getTask().getInstanceId(), state.getAssignedTask().getT...
0
public int isNodeIncludeDO(Node n, int level) { return isNodeInclude(n); }
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
/* * Copyright 2001-2004 The Apache Software Foundation * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applica...
0
* Returns a new {@link Read.Unbounded} {@link PTransform} reading from the given * {@link UnboundedSource}. * Helper class for building {@link Read} transforms.
0
import org.apache.cocoon.environment.ObjectModelHelper; * @see org.apache.cocoon.portal.RequestContext#getBasePath() */ public String getBasePath() { return ObjectModelHelper.getRequest(provider.getObjectModel()).getSitemapURIPrefix(); } /**
0
public static ParDo.SingleOutput<Event, Event> snoop(final String name) { public static <T> ParDo.SingleOutput<T, Void> devNull(String name) { public static <T> ParDo.SingleOutput<T, T> log(final String name) { public static <T> ParDo.SingleOutput<T, String> format(String name) { public static <T> ParDo.Singl...
0
public class Split { return new UsingBuilder<>(DEFAULT_NAME, input);
0
* Copyright 1999-2005 The Apache Software Foundation. * @version $Id$ switch (validity.isValid()) { if (resolver == null) { return SourceValidity.UNKNOWN; } newSrc = resolver.resolveURI((String) this.uris.get(i)); ...
0
* @version $Id$
0
* @version $Revision$ $Date$
0
@Override protected HttpParams createHttpParams() { @Override protected ClientConnectionManager createClientConnectionManager() { @Override protected HttpContext createHttpContext() { @Override protected ConnectionReuseStrategy createConnectionReuseStrategy() { @Override protected AuthSchemeReg...
0
* @author Apache Software Foundation
0
+ "/topics/" + options.getJobName();
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
* @version CVS $Id: EP_Top.java,v 1.4 2004/01/31 08:50:39 antonio Exp $ public class EP_Top extends BaseElementProcessor { public EP_Top() { double getPoints() throws IOException { if (_points == null) { int getPrefUnit() throws IOException { if (_pref_unit == null) {
0
expect(logicalRequest.hasPendingHostRequests()).andReturn(false).anyTimes(); expect(group1.addComponent("KERBEROS_CLIENT")).andReturn(true).anyTimes(); expect(group2.addComponent("KERBEROS_CLIENT")).andReturn(true).anyTimes(); expect(logicalRequest.hasPendingHostRequests()).andReturn(true).anyTimes(); ...
0
public void removing(ServerSession session, Path path, boolean isDirectory) log.trace("removing(" + session + ")[dir=" + isDirectory + "] " + path); public void removed(ServerSession session, Path path, boolean isDirectory, Throwable thrown) log.trace("removed(" + session + ")[dir=" + is...
0
* the lenient flag can be used for a script (following HTTP MIME and XML * Creates a Reader using an InputStream and the associated content-type * Creates a Reader using an InputStream and the associated content-type * Creates a Reader using an InputStream and the associated content-type
0
import java.util.Collection; import org.apache.commons.collections4.map.MultiValueMap; /** * Test class for populateMap(MultiMap). */ public static class X implements Comparable<X> { int key; String name; public X(int key, String name) { this.key = key; ...
0
* @version $Revision$ $Date$
0
public boolean isEnableAutoCommitOnReturn() { return enableAutoCommitOnReturn; } public void setEnableAutoCommitOnReturn(boolean enableAutoCommitOnReturn) { this.enableAutoCommitOnReturn = enableAutoCommitOnReturn; } public boolean isRollbackOnReturn() { return rollbackOn...
0
ambariCustomCommandExecutionHelper.addExecutionCommandsToStage(actionExecutionContext, stage, new HashMap<String, String>(), null); ambariCustomCommandExecutionHelper.addExecutionCommandsToStage(actionExecutionContext, stage, new HashMap<String, String>(), null); ambariCustomCommandExecutionHelper.addExecut...
0