Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
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 may not...
0
import org.apache.hc.core5.io.CloseMode; public void close(final CloseMode closeMode) { ioReactor.close(closeMode);
0
import org.apache.ambari.server.api.services.AmbariMetaInfo; import org.apache.ambari.server.state.Clusters; ValidationResourceProvider.init(saHelper, configuration, mock(Clusters.class), mock(AmbariMetaInfo.class));
0
import static org.apache.commons.codec.binary.BaseNCodec.EOF; baseNCodec.encode(singleByte, 0, EOF); baseNCodec.decode(singleByte, 0, EOF);
0
import com.google.common.collect.ImmutableSet; public final ImmutableSet<String> superTypes; this((Class<T>) Class.forName(hierarchicalMetaTypeName), typeName, typeDescription, ImmutableSet.copyOf(superTypes), public HierarchicalTypeDefinition(Class<T> hierarchicalMetaType, String typeName, String type...
0
private ServiceAdvisorType serviceAdvisorType = null;
0
class BundleFactoryOutputReceiverFactory implements OutputReceiverFactory { private BundleFactoryOutputReceiverFactory( return new BundleFactoryOutputReceiverFactory(bundleFactory, components, resultBuilder);
0
import java.io.DataOutputStream; import java.io.IOException;
0
* This source inspector inspects XML files with a xpath expression. * @version CVS $Id: XPathSourceInspector.java,v 1.5 2003/11/21 11:37:48 unico Exp $ public boolean handlesProperty(String namespace, String name) { return this.propertynamespace.equals(namespace) && this.propertyname.equals(name); }
0
import com.twitter.mesos.gen.JobUpdateConfiguration; import com.twitter.mesos.gen.TaskUpdateConfiguration;
0
* Only four constraints to be checked are explicitly stated by * @see org.apache.commons.bcel6.Constants#JVM_CLASSFILE_MAGIC
0
* * * * @version $Revision: 1.16 $ //------------------------------------------------------------------------- //-------------------------------------------------------------------------
1
public static ConnectionConfiguration create(String[] addresses, String index, String type){ ConnectionConfiguration connectionConfiguration = getConnectionConfiguration(); connectionConfiguration != null, checkVersion(connectionConfiguration); ConnectionConfiguration connectionConfigura...
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 int defaultTimeoutSeconds() { return 2 * 60; } @Override @Test
0
package org.apache.accumulo.utils.metanalysis; import org.apache.accumulo.tserver.logger.LogFileKey; import org.apache.accumulo.tserver.logger.LogFileValue;
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 may ...
0
@Override protected String[] flatten(@SuppressWarnings("unused") Options options, String[] arguments, @SuppressWarnings("unused") boolean stopAtNonOption)
0
return new DefaultHCatRecord(Arrays.asList("record " + value, value));
0
* Copyright (c) 2004 The Apache Software Foundation. All rights
0
EndpointStatus join( interface EndpointStatus { class UpdateException extends Exception {
0
/* $Id$ // Select which element is to be the target. Default to zero, // ie the top object on the stack. int targetOffset = 0; String targetOffsetStr = attributes.getValue("targetoffset"); if (targetOffsetStr != null) { targetOffset = Integer....
0
case ClusterStackVersion: return new ClusterStackVersionResourceProvider(managementController); case HostStackVersion: return new HostStackVersionResourceProvider(managementController);
0
INSTANCE_NAME("instance.name", null, PropertyType.STRING, "Name of Accumulo instance to connect to"), INSTANCE_ID("instance.id", null, PropertyType.STRING, "UUID of Accumulo instance to connect to"),
0
/** Simulator for BOUNDED_SIDE_INPUT_JOIN query. */
0
System.out.println("rendered area: " + renderedArea); // Clip g.clip(renderContext.getAreaOfInterest()); System.out.println("ConcreteGraphicsNodeRable done");
0
getContentPane().add( p, BorderLayout.SOUTH ); Color.red, Color.green
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
ImmutableList.of(), ImmutableList.of() ImmutableList.of(), ImmutableList.of() ImmutableList.of(), ImmutableList.of())); ImmutableList.of(), ImmutableList.of())); ImmutableList.of(), ImmutableList.of() ImmutableList.of(), Imm...
0
private static final String TASK_ID_A = "my-fake-task-id"; private LiveTask makeTask(AssignedTask task, String taskId) {
0
* logging namespaces by specifying: * <pre><code> * --workerLogLevelOverrides={"Name1":"Level1","Name2":"Level2",...} * </code></pre> * For example, by specifying: * <pre><code> * --workerLogLevelOverrides={"com.google.cloud.dataflow.examples":"DEBUG"} * </code></pre> * "DEBUG" or higher level logs for the...
0
package aQute.bnd.build.model.conversions; import aQute.bnd.build.model.clauses.*; import aQute.libg.header.*; import aQute.libg.tuple.*; public class HeaderClauseConverter implements Converter<HeaderClause,Pair<String,Attrs>> { public HeaderClause convert(Pair<String,Attrs> input) throws IllegalArgumentException {...
0
* A <a href="http://xml.apache.org/batik/">Batik</a> based Serializer for * generating PNG/JPEG images * * A <a href="http://xml.apache.org/batik/">Batik</a> based Serializer for * generating PNG/JPEG images * @cocoon.sitemap.component.documentation.caching Yes implements Contextualizab...
0
* @version $Revision$
1
import org.apache.sshd.util.test.JUnitTestSupport; @Category(NoIoTestCase.class) public class ValidateUtilsTest extends JUnitTestSupport {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/AbstractTestCollection.java,v 1.7 2003/10/31 01:23:10 scolebourne Exp $ import org.apache.commons.collections.pairs.DefaultMapEntry; * @version $Revision: 1.7 $ $Date: 2003...
0
final WeakReference<ClassLoader> weakRefToComponent1 = new WeakReference<>(componentLoader1);
0
import org.apache.accumulo.server.conf.ServerConfigurationFactory; import org.apache.commons.lang.NotImplementedException; throw new NotImplementedException(); } @Override public void init(ServerConfigurationFactory conf) {
1
dt.createNode("/xyz", new byte[0], null, 0, dt.getNode("/").stat.getCversion()+1, 1, 1); dt.createNode("/test", new byte[0], null, 0, dt.getNode("/").stat.getCversion()+1, 1, 1);
0
JobExecutionResult result;
0
import org.apache.cocoon.util.AbstractLogEnabled; public final class AuthenticationContextProvider extends AbstractLogEnabled implements SessionContextProvider, ThreadSafe, Serviceable {
0
boolean clientOnly, ProcessingComponent pc, Map<String, String> params) { StageWrapper.Type.RU_TASKS, execution.title,
0
long len = validateIncomingDataSize(SshConstants.SSH_MSG_CHANNEL_DATA, buffer.getUInt()); this, BufferUtils.DEFAULT_HEX_SEPARATOR, buffer.array(), buffer.rpos(), (int) len); long len = validateIncomingDataSize(SshConstants.SSH_MSG_CHANNEL_EXTENDED_DATA, buffer.getUInt()); ...
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override @Override
0
* @version CVS $Id: FOM_Cocoon.java,v 1.13 2003/10/15 17:02:05 cziegeler Exp $ Environment env, ComponentManager manager, Logger logger) { (parent == null ? null : parent.getWebContinuation()),
0
public ScpSourceStreamResolver createScpSourceStreamResolver(Session session, Path path) throws IOException { public ScpTargetStreamResolver createScpTargetStreamResolver(Session session, Path path) throws IOException {
0
return String.valueOf( getAncestorSelector() ) + s;
0
* @version $Id: Jdbc2PoolDataSource.java,v 1.8 2003/03/06 18:13:37 rwaldhoff Exp $ isNew = Boolean.valueOf(ra.getContent().toString()).booleanValue(); (Boolean.valueOf(ra.getContent().toString()).booleanValue()); (Boolean.valueOf(ra.getContent().toStr...
0
private final HttpServiceFactory httpServiceFactory; this.httpServiceFactory = new HttpServiceFactory(this.bundleContext, this.registry); ServletContextAttributeListenerManager getContextAttributeListener() return this.httpServiceFactory.getContextAttributeListener(); ServletRequestListenerM...
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.MoreObjects.firstNonNull;
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
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
final Type t = (Type)o; final StringBuilder buf = new StringBuilder("("); for (final Type arg_type : arg_types) { final byte type = Utility.typeOfSignature(signature); final Type t = getType(signature.substring(dim)); final int _temp = unwrap(consumed_ch...
1
teamAndScore return PDone.in(teamAndScore.getPipeline());
0
@Override protected boolean serviceCheckAfterProcessing() { return false; } StageWrapper wrapper = new ServiceCheckStageWrapper(service, upgradeContext.getServiceDisplay(service), true); StageWrapper wrapper = new ServiceCheckStageWrapper(service, upgradeCo...
0
// A value of zero disables rendering of the element if (w == 0) { return; } // A value of zero disables rendering of the element if (h == 0) { return; }
0
public String toString() { return getName(); }
0
private final int columnIndex; private final String columnName; this(1, null); this(columnIndex, null); this(1, columnName); // Helper private ColumnListHandler(int columnIndex, String columnName) { super(); this.columnIndex = columnIndex; this.columnName ...
0
* @param e The &lt;image&gt; element that can't be loaded.
0
Objects.requireNonNull(getKeyPairProvider(), "HostKeyProvider not set"); Objects.requireNonNull(getFileSystemFactory(), "FileSystemFactory not set");
0
import com.google.common.io.Files; import java.io.File; import java.io.IOException; import java.nio.charset.StandardCharsets;
0
* output {@link TransformResult} and committed output bundles after the * called, producing the provided {@link TransformResult} and TransformResult result,
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.
0
import static org.hamcrest.Matchers.instanceOf; import org.junit.internal.matchers.ThrowableMessageMatcher; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import java.nio.channels.SeekableByteChannel; when(mockGcsUtil.create(any(GcsPath.class), anyString())) .then(new An...
0
return new ClientContext(info); return ClientConfConverter.toClientConf(info.getProperties());
0
import org.apache.atlas.TestModules; import org.apache.atlas.model.legacy.EntityResult; @Guice(modules = TestModules.TestOnlyModule.class) private EntityResult updateInstance(Referenceable entity) throws Exception { private EntityResult deleteEntities(String... guids) throws AtlasException { private EntityR...
0
import org.apache.batik.dom.AbstractNode; String baseURI = AbstractNode.getBaseURI(e);
1
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
0
import java.sql.SQLException; @Test public void testInternalConnect_driverManagerDifferentProtocol() throws Exception { thrown.expect(SQLException.class); thrown.expectMessage("No suitable driver found"); DriverManager.getConnection("jdbc:baaaaaad"); }
0
import javax.xml.stream.XMLStreamException; } catch (ParserConfigurationException | IOException | SAXException | XMLStreamException ex) {
0
package org.apache.accumulo.core.dataImpl.thrift;
0
StackServiceComponentDependency, public static final Type StackServiceComponentDependency = InternalType.StackServiceComponentDependency.getType();
0
import org.apache.cocoon.util.WildcardMatcherHelper; final Map.Entry entry = (Map.Entry)iterator.next(); final String pattern = (String)entry.getKey(); if (WildcardMatcherHelper.match(pattern, url) != null) { final Map.Entry entry = (Map.Entry)iterator.next(); ...
0
this(bindOptions(options), Maps.newHashMap()); Maps.newHashMap(handler.jsonOptions); new ProxyInvocationHandler(Maps.newHashMap(), fields)
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 ...
1
JGVTComponent c = (JGVTComponent)e.getSource(); c.getOverlays().add(overlay); c.getOverlays().remove(overlay); c.getOverlays().remove(overlay);
0
import static org.apache.beam.runners.fnexecution.translation.PipelineTranslatorUtils.createOutputMap; import static org.apache.beam.runners.fnexecution.translation.PipelineTranslatorUtils.getWindowingStrategy; import static org.apache.beam.runners.fnexecution.translation.PipelineTranslatorUtils.instantiateCoder;
0
public boolean equate(final Integer o1, final Integer o2) { public int hash(final Integer o) {
0
import org.apache.sshd.common.config.ConfigFileReaderSupport; String levelValue = (options == null) ? null : Objects.toString(options.get(ConfigFileReaderSupport.LOG_LEVEL_CONFIG_PROP), null); throw new IllegalArgumentException("Unknown " + ConfigFileReaderSupport.LOG_LEVEL_CONFIG_PROP + " option va...
0
import java.util.Map; private Map<String, Map<String, String>> configurationTags; /** * @param tags the config tags that match this command */ public void setConfigTags(Map<String, Map<String,String>> tags) { configurationTags = tags; } /** * @return the config tags that match this command,...
0
* Notification that starting the process failed. * * @param e the offending exception * */ public synchronized void failedToStart(Exception e) { this.processStarted = true; this.caught = e; this.notifyAll(); } /** * Ensures that the process is started o...
0
/** * Create a new CoreOperationAdd. * @param args Expression arguments to add together. */ /** * {@inheritDoc} */ /** * {@inheritDoc} */ /** * {@inheritDoc} */ /** * {@inheritDoc} */
0
import org.apache.felix.service.command.CommandProcessor; import org.apache.felix.service.command.CommandSession;
0
import org.apache.sshd.client.future.AuthFuture; AuthFuture authFuture; do { authFuture = session.authAgent(login); authFuture = session.authPassword(login, password); authFuture.await(); } while (authFuture.isFailure()); ...
0
* Copyright (c) 1999 The Apache Software Foundation. All rights * notice, this list of conditions and the following disclaimer. * if any, must include the following acknowledgment: * software without prior written permission. For written * The development of this software was partly funded by the Eu...
0
static HashMap classesHash = new HashMap(); //this.transformSpi.setTransform(this); // Class implementingClass = (Class) _transformHash.get(AlgorithmURI); this.transformSpi = Transform.getImplementingClass(AlgorithmURI); //this.transformSpi.setTransform(this); if (th...
0
.containsInAnyOrder(BID1_EUR, BID2_EUR);
0
import org.apache.beam.sdk.extensions.sql.schema.BeamRecordSqlType; BeamRecordSqlType leftRowType = CalciteUtils.toBeamRowType(left.getRowType()); types.add(leftRowType.getFieldTypeByIndex(pairs.get(i).getKey())); BeamRecordSqlType extractKeyRowType = BeamRecordSqlType.create(names, types); BeamRecord...
0
* An functional interface with a single convert method that is passed the * object to be converted. * @param <F> Type parameter for the source object. * @param <T> Type parameter for the converted object. * @author $Id$ * /** Convert the object into the target type. * @param obj The object to be converted. Thi...
0
try (AccumuloClient c = createClient()) { try (AccumuloClient c = createClient()) { try (AccumuloClient c = createClient()) { try (AccumuloClient c = createClient()) { try (AccumuloClient client = createClient()) {
0
public static class TCMTranslator extends Translator<TConditionalMutation,ServerConditionalMutation> {
0
package org.apache.accumulo.core.iterators; import java.io.IOException; import org.apache.accumulo.core.conf.AccumuloConfiguration; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.Value; import org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope; public interface IteratorEnv...
1
@Override protected int defaultTimeoutSeconds() { return 90; } @Test @Test
0
tablet.updateMemoryUsageStats(memTable.estimatedSizeInBytes(), otherMemTable.estimatedSizeInBytes());
0
private final SideInputReader sideInputReader; this.sideInputReader = sideInputReader; sideInputReader, public void outputWindowedValue( KV<String, OutputT> output, Instant timestamp, Collection<? extends BoundedWindow> windows, PaneInfo pane) { throw new Unsuppor...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.hash.Hashing;
0
/** * */ package org.apache.maven.plugin.eclipse.writers; import java.io.File; import org.apache.maven.plugin.ide.IdeDependency; import org.apache.maven.plugin.logging.Log; import org.apache.maven.project.MavenProject; /** * Common base class for all Eclipse Writers. * * @author <a href="mailto:rahul.thakur.x...
0
log.info("No pattern provided, using default.");
0
/** Helpers for cloud communication. */ String rootUrl = url.getProtocol() + "://" + url.getHost() + (url.getPort() > 0 ? ":" + url.getPort() : ""); /** Returns a Google Cloud Dataflow client builder. */ return new Dataflow.Builder( getTranspor...
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