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
/** * 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
import org.daisycms.clientapp.adapter.DaisyClientException; import org.daisycms.clientapp.adapter.DaisyDocument; import org.daisycms.clientapp.adapter.DaisyDocumentProxy; import org.daisycms.clientapp.adapter.transformer.impl.ResourceXsltTransformerSource; import org.daisycms.clientapp.adapter.util.XMLUtils;
0
/** * Default implementation does nothing. * * @throws ParseException subclasses may throw this */
0
* $todo$ implement
0
import java.io.InputStream; import java.util.HashSet;
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
package org.apache.felix.gogo.shell.telnet;
0
* * * /** } //-------------------------------------------------------------------------
1
final HttpRequestBase result;
0
@Override
0
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; final HttpServletRequest request = this.portalService.getRequestContext().getRequest(); final HttpServletRequest request = this.portalService.getRequestContext().getRequest(); final HttpServletResponse ...
0
import org.apache.accumulo.core.security.tokens.AuthenticationToken;
0
bind(YarnAMSJacksonJaxbJsonProvider.class); }
0
import org.apache.beam.sdk.values.TypeDescriptor; String name, Flow flow, Dataset<InputT> input, Set<OutputHint> outputHints, TypeDescriptor<OutputT> outputType) { super(name, flow, input, outputType);
0
* @version $Id: TestBaseNullConfiguration.java,v 1.2 2004/10/18 21:38:45 epugh Exp $
0
Collections.<MetricUpdate<DistributionData>>emptyList(), Collections.<MetricUpdate<GaugeData>>emptyList()); /** All of the gauges updates. */ public abstract Iterable<MetricUpdate<GaugeData>> gaugeUpdates(); Iterable<MetricUpdate<DistributionData>> distributionUpdates, Iterable<MetricUpdate...
0
* Extension of {@link AbstractTestSet} for exercising the {@link ListOrderedSet}
0
* Provides multi-threading of {@link OldDoFn}s, using threaded execution to * <p>To parallelize a {@link OldDoFn} to 10 threads: * <p>An uncaught exception from the wrapped {@link OldDoFn} will result in the exception * {@link OldDoFn} that processes elements using multiple threads. public static <InputT, Outpu...
0
for (String logSet : logEntry.logSet) { volumes.add(getLogURI(logSet)); }
0
package org.apache.cocoon.el.objectmodel; * {@link org.apache.cocoon.el.objectmodel.ObjectModel}.
0
//updateMembers memberService = new TestMemberService("engineering"); m = memberService.getClass().getMethod("updateMembers", String.class, HttpHeaders.class, UriInfo.class); args = new Object[] {"body", getHttpHeaders(), getUriInfo()}; listInvocations.add(new ServiceTestInvocation(Request.Type.PUT,...
0
import java.awt.Shape; import org.apache.batik.ext.awt.image.GraphicsUtil; import org.apache.batik.ext.awt.image.rendered.CachableRed; import org.apache.batik.ext.awt.image.rendered.DiffuseLightingRed; import org.apache.batik.ext.awt.image.rendered.PadRed; Shape aoi = rc.getAreaOfInterest(); if (aoi == ...
0
import static org.junit.Assert.assertEquals;
0
public interface Nameable { String getName(); void setName( String name );
1
import org.apache.sshd.common.PropertyResolverUtils; channel.open().verify(PropertyResolverUtils.getLongProperty(channel, CHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT));
0
return (String[]) m_provides.toArray( new String[m_provides.size()] ); m_validated = true;
0
return ParDoTranslation.translateDoFn( parDo.getFn(), parDo.getMainOutputTag(), newComponents); sideInput.getTagInternal().getId(), ParDoTranslation.translateView(sideInput, components));
0
result = buildResult(response, null, null); resultCallback.completed(result);
0
import org.apache.beam.sdk.transforms.SerializableFunctions; pipeline.apply( "boundedInput3", Create.of(rowsInTableB) .withSchema( schemaInTableB, SerializableFunctions.identity(), SerializableFunctions.identity(...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.ListeningExecutorService; import org.apache.beam.vendor.guava.v20_0.com.google.common.util.concurrent.MoreExecutors;
0
import org.apache.hc.core5.http.nio.command.RequestExecutionCommand; if (command instanceof RequestExecutionCommand) { final RequestExecutionCommand executionCommand = (RequestExecutionCommand) command; if (command instanceof RequestExecutionCommand) { ...
0
import java.util.Objects; GenericUtils.supplierOf(Objects.requireNonNull(loader, "No client identity loader")), GenericUtils.supplierOf(Objects.requireNonNull(provider, "No password provider")), this.loaderHolder = Objects.requireNonNull(loader, "No client identity loader"); th...
0
import java.awt.Graphics2D; import java.awt.Composite; implements PadRable, PaintRable { /** * Should perform the equivilent action as * createRendering followed by drawing the RenderedImage to * Graphics2D, or return false. * * @param g2d The Graphics2D to draw to. * @return tru...
0
private final Collection<ServletRuntime> servletRuntimes; private final Collection<ServletRuntime> resourceRuntimes; Collection<ServletRuntime> servletRuntimes, Collection<ServletRuntime> resourceRuntimes, this.servletRuntimes = servletRuntimes; this.resourceRuntimes = r...
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
import org.apache.beam.sdk.runners.TransformHierarchy; public void visitValue(PValue value, TransformHierarchy.Node producer) { public void visitPrimitiveTransform(TransformHierarchy.Node node) { public CompositeBehavior enterCompositeTransform(TransformHierarchy.Node node) { public void...
0
ZooKeeper zk = new ZooKeeper(HOSTPORT, CONNECTION_TIMEOUT, this);
0
Set<DisplayData> displayData = evaluator.displayDataForPrimitiveSourceTransforms(read);
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...
0
* @see Trace#wrapAll
0
import org.apache.aurora.gen.Constraint; import org.apache.aurora.gen.TaskConstraint; import org.apache.aurora.gen.ValueConstraint; private static final ITaskConfig NEW_DIFFERENT_CONSTRAINTS = ITaskConfig.build(new TaskConfig() .setConstraints(ImmutableSet.of(new Constraint("different", TaskConstraint...
0
private Constant[] constants;
0
* <li><code>US-ASCII</code><p> * Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.</p></li> * <li><code>ISO-8859-1</code><p> * ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.</p></li> * <li><code>UTF-8</code><p> * Eight-bit Unicode Transformation Format.</p></li> * <li><...
0
* <p>This class is synchronized, but only used from the dispatch and commit threads, so should
0
import org.apache.accumulo.core.client.AccumuloClient; final private AccumuloClient accumuloClient; accumuloClient = ensureTraceTableExists(conf); writer = new AtomicReference<>(this.accumuloClient.createBatchWriter(tableName, private AccumuloClient ensureTraceTableExists(final AccumuloConfiguration conf) ...
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...
1
* functionalities of SVGLength. To have
1
import org.apache.zookeeper.server.admin.AdminServer; import org.apache.zookeeper.server.admin.AdminServer.AdminServerException; import org.apache.zookeeper.server.admin.AdminServerFactory; AdminServer adminServer; adminServer = AdminServerFactory.createAdminServer(); adminServer = AdminServerFacto...
1
* @version CVS $Id$ setCommonProperties(widgetElement, definition);
0
private final ThriftBackfill thriftBackfill; public ConfigurationManager( ConfigurationManagerSettings settings, TierManager tierManager, ThriftBackfill thriftBackfill) { this.thriftBackfill = requireNonNull(thriftBackfill); thriftBackfill.backfillTask(builder);
0
m_utils = new EahTestUtils(getContext()); getContext(), DonutProvider.class.getName(), m_providers[i] = (DonutProvider) getContext() getContext(), DonutConsumer.class.getName(), m_consumers[i] = (DonutConsumer) getContext() getConte...
0
registerTag("useBeanXP", UseBeanIgnoreBadProps.class);
0
import org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException;
0
invalidateAuthIfSuccessful(this.proxyAuthState); invalidateAuthIfSuccessful(this.targetAuthState);
0
package org.apache.aurora.scheduler.http; import org.antlr.stringtemplate.StringTemplate; import org.apache.aurora.scheduler.base.Query; import org.apache.aurora.scheduler.stats.ResourceCounter; import org.apache.aurora.scheduler.stats.ResourceCounter.GlobalMetric; import org.apache.aurora.scheduler.stats.ResourceCoun...
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
package org.apache.ambari.server.state.live.host; public enum HostState { * New host state * State when a registration request is received from the Host but * the host has not been verified/authenticated. * State when the host has been verified/authenticated * State when the server is receiving heartbeat...
0
public void setList(@SuppressWarnings("rawtypes") List list) throws XMLSecurityException { public void setList(@SuppressWarnings("rawtypes") List list) throws XMLSecurityException { public void setList(@SuppressWarnings("rawtypes") List list) throws XMLSecurityException { ...
0
import org.apache.beam.sdk.values.TaggedPValue; for (TaggedPValue inputValue : current.getInputs()) { inputValue.getValue().finishSpecifying(); checkState( producers.get(inputValue.getValue()) != null, "Producer unknown for input %s", inputValue.getValue()); for (Tagged...
0
IResourceChangeDescriptionFactory deltaFactory = checker.getDeltaFactory();
0
import org.apache.beam.sdk.coders.BigEndianIntegerCoder; import org.apache.beam.sdk.coders.BigEndianLongCoder; .withKeyDeserializerAndCoder(IntegerDeserializer.class, BigEndianIntegerCoder.of()) .withValueDeserializerAndCoder(LongDeserializer.class, BigEndianLongCoder.of()) .makeSour...
0
import org.apache.ambari.server.actionmanager.*; @Inject ActionDBAccessor actionDBAccessor; new HostsMap((String) null), null, unitOfWork, null, injector.getInstance(RequestFactory.class)); Request request = new Request(stages, clusters); db.persistActions(request); actionDBAccessor,...
1
implements ImageOperation { private String prefix; private boolean enabled; private boolean alongY; public void setPrefix( String prefix ) { this.prefix = prefix; throws ProcessingException { enabled = params.getParameterAsBoolean( prefix + "enabled", true); alongY = ...
0
assertThat(new LineReader(Channels.newReader(pipe.source(), StandardCharsets.UTF_8.name())).readLine(),
0
@Override @Override
0
m_repoAdmin.dispose();
0
DirectionAttributes directionAtts = JXpathBindingBuilderBase.getDirectionAttributes(bindingElm); new ValueJXPathBinding(directionAtts.loadEnabled, directionAtts.saveEnabled, widgetId, xpath, updateBindings, convertor, convertorLocale);
0
StringBuilder sb = new StringBuilder("Employee[");
0
@Override void postRegister() { //do nothing }
0
* A compressed file. * * <p> * Such a file only has one child (the compressed filename with stripped last extension) * </p> * * @param <FS> * A CompressedFileFileSystem public abstract class CompressedFileFileObject<FS extends CompressedFileFileSystem> extends AbstractFileObject<FS> protected C...
0
package cz.seznam.euphoria.core.client.dataset; /** * Windowing with windows aligned across the whole dataset. */ public interface AlignedWindowing<T, W extends AlignedWindow<W>> extends Windowing<T, Void, W> { }
0
if (range.getStartKey().equals(range.getEndKey(), keyDepth)) return true;
1
* Copyright 2000-2009 The Apache Software Foundation
0
final File temp = File.createTempFile("temp-file-name", ".tmp"); final FileSystemManager fileSystemManager = VFS.getManager(); final byte[] data = new byte[100]; final File temp = File.createTempFile("temp-file-name", ".tmp"); final FileSystemManager fileSystemMan...
0
System.setProperty("sun.nio.ch.bugLevel", System.getProperty("sun.nio.ch.bugLevel",""));
0
private static String m_threadLock = new String("thread lock"); private static volatile boolean m_stopping = false; try EventDispatcher.run(); finally // Ensure we update state even if stopped by external...
0
* Test our decode with a pad character in the middle.
0
/** * Single entity that tracks all clusters and hosts that are managed * by the Ambari server */ /** * Get all hosts being tracked by the Ambari server * @return */ * @throws AmbariException public List<Cluster> getClustersForHost(String hostname) throws AmbariException; * Get a Host object...
1
* @author <a href="mailto:bluetkemeier@s-und-n.de">Bjrn Ltkemeier</a> * @version CVS $Id: CocoonComponentManager.java,v 1.11 2003/04/29 10:45:22 cziegeler Exp $ baseURI = ((Environment)objects[0]).getContext();
0
* @author <a href="mailto:felix-dev@incubator.apache.org">Felix Project Team</a>
0
package org.apache.batik.dom.anim;
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
private static ResourceManager resourceManager; resourceManager = instance; public Response getResource(@PathParam("resourcePath") String resourcePath, @Context HttpServletRequest req) { if (LOG.isDebugEnabled()) { LOG.debug("Received a resource request from agent" + ", resourcePath=" +...
1
public static final String ACCUMULO_CLASSPATH_VALUE = "$ACCUMULO_HOME/conf,\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...
0
package org.apache.beam.sdk.util;
0
private final List<LogEntry> m_entriesToDeliver = new ArrayList<>(); private final List<LogListener> m_listeners = new ArrayList<>(); List<LogEntry> entriesToDeliver = new ArrayList<>(); // the interrupt-flag is cleared; so, let's play nice and else ...
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
import org.apache.cocoon.components.source.SourceUtil; * @version CVS $Id: XSPUtil.java,v 1.4 2003/05/16 07:04:55 cziegeler Exp $ SourceUtil.toSAX(source, new IncludeXMLConsumer(contentHandler));
0
String CHANNEL_SUBSYSTEM = "subsystem";
0
import org.apache.bcel.classfile.JavaClass; * whether a class is a sub-class of another. Delegates actual class loading * to SyntheticRepository. * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> private static org.apache.bcel.util.SyntheticRepository _repository = SyntheticRepository.getInstance();...
0
ClientConfiguration clientConf; try { clientConf = options.getClientConfiguration(); } catch (Exception e) { printException(e); return true; } final String user; try { user = options.getUsername(); } catch (Exception e) { printException(e); return true; ...
1
import javax.inject.Inject; import javax.inject.Singleton;
1
reader = new BufferedReader(new InputStreamReader(_input_, this.getCharset()));
0
private static final String TARGET_DIRECTORY = System.getProperty("embedded.solr.directory");
0
import org.apache.accumulo.server.test.MiniAccumuloCluster;
0
private volatile Exception ex; public Exception getException() { return this.ex; } public synchronized void fail(final String message, final Exception ex) { this.ex = ex; public void fail(final String message) { fail(message, null); }
0
package org.apache.commons.fileupload2; import org.apache.commons.fileupload2.FileUploadBase;
0