Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
ManualTask task = new ManualTask(); task.message = batch.message; StageWrapper wrapper = new StageWrapper( StageWrapper.Type.MANUAL, "Validate partial upgrade", new TaskWrapper(null, null, Collections.<String>emptySet(), task)); results.add(wrapper);
1
import org.apache.cocoon.portal.LayoutException; protected abstract void publish(PortalService service, Layout layout, String[] values) throws LayoutException; final Layout layout = service.getProfileManager().getLayout(values[0] ); try { this.publish( service, layout, values...
0
import org.apache.ambari.server.topology.SecurityConfiguration; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; * security configuration */ protected SecurityConfiguration securityConfiguration; /** public SecurityConfiguration getSecurityConfiguration() { ...
0
@Mojo( name = "manifest", requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true, defaultPhase = LifecyclePhase.PROCESS_CLASSES)
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/CreditCardValidatorTest.java,v 1.4 2004/01/11 23:30:21 dgraham Exp $ * $Revision: 1.4 $ * $Date: 2004/01/11 23:30:21 $ * Copyright (c) 2001-2004 The Apache Software Foundation. All...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Attic/SoftRefHashMap.java,v 1.6 2002/10/12 22:15:18 scolebourne Exp $ * $Revision: 1.6 $ * $Date: 2002/10/12 22:15:18 $ import java.lang.ref.Reference; import java.lang.ref.SoftR...
0
package org.apache.beam.harness.channel; ManagedChannel channel = ManagedChannelFactory.createDefault().forDescriptor(apiServiceDescriptor); ManagedChannel channel = ManagedChannelFactory.createEpoll().forDescriptor(apiServiceDescriptor); ManagedChannel channel = ManagedChannelFacto...
0
assertEquals( new String(output, "UTF-8"), expectedResult);
0
StageBundleFactory bf1 = bundleFactory.forStage(getExecutableStage(environment)); StageBundleFactory bf2 = bundleFactory.forStage(getExecutableStage(environment));
0
*/ public POP2() { super(org.apache.bcel.Constants.POP2); } /** * Call corresponding visitor method(s). The order is: * Call visitor methods of implemented interfaces first, then * call methods according to the class hierarchy in descending order, * i.e., the most specific visi...
0
import org.apache.sshd.common.util.ThreadUtils; this.executor = ThreadUtils.newCachedThreadPool(manager.toString() + "-mina");
0
* Copyright 2016 Seznam.cz, a.s.
0
expect(attributeStore.getHostAttributes("a")).andReturn(Optional.absent()); Suppliers.ofInstance(ImmutableSet.copyOf(activeTasks)), .setAttributes(ImmutableSet.copyOf(attributes))))); .setValues(ImmutableSet.copyOf(values));
0
// Alerts notifications properties public static final String AMBARI_DISPLAY_URL = "ambari.display.url"; * Get the ambari display URL * @return */ public String getAmbariDisplayUrl() { return properties.getProperty(AMBARI_DISPLAY_URL, null); } /**
0
if (monitor.isCanceled()) { return Status.CANCEL_STATUS; }
0
import org.apache.http.HttpCoreNIOTestBase; import org.apache.http.impl.nio.SSLNHttpClientConnectionFactory; import org.apache.http.impl.nio.SSLNHttpServerConnectionFactory; import org.apache.http.nio.NHttpClientIOTarget; import org.apache.http.nio.NHttpConnectionFactory; import org.apache.http.nio.NHttpServerIOTarget;...
0
import org.apache.commons.dbutils.handlers.KeyedHandlerTest; suite.addTestSuite(KeyedHandlerTest.class);
0
package org.apache.felix.karaf.shell.admin;
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
if ( hasDelegate ) { hasDefaultConstructor = getAccessibleConstructor( clazz, new Class[0] ) != null; if ( argTypes[i].equals( boolean.class ) ) templateConstructorArguments[i] = convert( "0", argTypes[i] ); DeferredConstruction...
0
GANGLIA_CLUSTER_NAME_MAP.put("DATANODE", Arrays.asList("HDPDataNode", "HostMetrics")); GANGLIA_CLUSTER_NAME_MAP.put("TASKTRACKER", Arrays.asList("HDPTaskTracker", "HostMetrics")); GANGLIA_CLUSTER_NAME_MAP.put("NODEMANAGER", Arrays.asList("HDPNodeManager", "HostMetrics")); GANGLIA...
0
public void testParseSuccess() throws Exception { public void testParseFailure() throws Exception { public void testParseInvalidInput() throws Exception { public void testFormatting() throws Exception { RequestLine requestline = new RequestLine("GET", "/stuff", HttpVersion.HTTP_1_1); Str...
0
import org.apache.hc.core5.http.io.entity.AbstractImmutableHttpEntity;
1
return BlockingBuffer.blockingBuffer(new MyBuffer<E>()); Buffer<E> blockingBuffer = BlockingBuffer.blockingBuffer(new MyBuffer<E>(), 500); Buffer<E> blockingBuffer = BlockingBuffer.blockingBuffer(new MyBuffer<E>(), 500); Buffer<E> blockingBuffer = BlockingBuffer.blockingBuffer(new MyBuff...
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
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken; import org.apache.accumulo.core.security.CredentialHelper; String principal; AuthenticationToken token; principal = SecurityConstants.getSystemPrincipal(); token = SecurityConstants.getSystemToken(); principa...
0
* <!> FIX ME: add a scale factor to account for ObjectBoundingBox *
0
import org.apache.batik.util.ParsedURL; ParsedURL uri, ParsedURL uri, ParsedURL uri,
0
public Connector getConnector() {
0
import org.apache.commons.collections.functors.TruePredicate; public class TestPredicatedBag<T> extends AbstractTestBag<T> { protected Predicate<T> stringPredicate() { return new Predicate<T>() { public boolean evaluate(T o) { } protected Predicate<T> truePredicate = TruePredicate.<T>...
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
/* * 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
package org.apache.hadoop.metadata.types; import org.apache.hadoop.metadata.MetadataException; import org.apache.hadoop.metadata.MetadataException; import org.apache.hadoop.metadata.storage.DownCastStructInstance; import org.apache.hadoop.metadata.storage.StructInstance;
0
import org.apache.accumulo.server.conf.ServerConfigurationFactory; ServerConfigurationFactory conf = new ServerConfigurationFactory(opts.getInstance());
1
public void write(final int b) throws IOException { public void write(final byte[] b) throws IOException { public void write(final byte[] b, final int off, final int len) throws IOException {
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
* @param lineParser the line parser. * {@link AbstractMessageParser#AbstractMessageParser(SessionInputBuffer, LineParser, * MessageConstraints)} public AbstractMessageParser( final SessionInputBuffer buffer, final LineParser lineParser, this.lineParser = (linePar...
0
package org.apache.commons.digester3.rule;
0
import org.apache.beam.sdk.extensions.sql.impl.utils.CalciteUtils; import org.apache.calcite.sql.type.SqlTypeName; .typeDescriptor(FieldTypeDescriptor.of(FieldType.STRING) .withMetadata(CalciteUtils.typeToMetadata(SqlTypeName.VARCHAR)))
0
/* * $Id$ * 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...
0
public final void add( String pattern, Rule rule )
0
final ExecChain.Scope scope = new ExecChain.Scope("test", route, request, mock(ExecRuntime.class), context);
0
import org.apache.ambari.server.ldap.domain.AmbariLdapConfiguration; private static final String AMBARI_ADMIN_LDAP_ATTRIBUTE_KEY = "ambari_admin"; private final AmbariLdapConfiguration ldapConfiguration; public AmbariLdapBindAuthenticator(BaseLdapPathContextSource contextSource, AmbariLdapConfiguration ldapConfig...
0
Copyright 2000-2003 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 applicable l...
0
UpgradeEntity lastUpgradeItemForCluster = s_upgradeDAO.findLastUpgradeForCluster( cluster.getClusterId(), Direction.UPGRADE);
0
* @version CVS $Id: EPFont.java,v 1.3 2003/09/05 07:31:40 cziegeler Exp $
0
requestParameters, requestProperties.get(REQUEST_CONTEXT_PROPERTY), false); Map<String, String> requestParameters, String requestContext, boolean runSmokeTest) if (runSmokeTest && (State.INSTALLED == s.getDesiredState())) { if (runSmokeTest && (entry.getValue().size() > 1)) { if ...
0
/** * {@link OutputStream} adaptor for {@link ContentOutputBuffer}. */
0
import cz.seznam.euphoria.core.annotation.audience.Audience; @Audience(Audience.Type.CLIENT)
0
assertThat(value, equalTo(pcsByTag.get(tag)));
0
* result of the test in the DOM using the following namespace: <br> * xmlns:test="http://xml.apache.org/batik/test" <br> * test file. <br> * Sample input SVG file:<br><code>
0
public class GarbageCollectorIT extends ConfigurableMacIT {
0
if (name == null) { return commands.keySet(); }
0
@Override
1
import org.apache.ambari.server.controller.internal.UnitUpdater.PropertyValue;
0
import org.apache.http.HttpHost; import org.apache.http.client.HttpClient; import org.apache.http.client.RoutedRequest; import org.apache.http.conn.ClientConnectionManager; import org.apache.http.conn.HttpRoute; import org.apache.http.conn.PlainSocketFactory; import org.apache.http.conn.Scheme; import org.apache.http.c...
0
import java.awt.print.PrinterException; import javax.swing.JOptionPane; import org.apache.batik.transcoder.TranscoderInput; new Thread() { public void run(){ // // Build a PrintTranscoder to handle printing ...
0
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class NotServingTabletException extends TException implements org.apache.thrift.TBase<NotServingTabletException, NotServingTabletException._Fields>, java.io.Serializable, Cloneable, Comparable<NotServingTabletException> { public enum _Fields impl...
0
import java.util.Arrays; @Override putEvents(Arrays.asList(events)); } @Override /** * Add events to the event repository * @param events events to be added * @throws AtlasException */ public void putEvents(List<EntityAuditEvent> events) throws AtlasException { L...
0
* @version $Revision$
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
import static org.apache.ambari.metrics.core.timeline.PhoenixHBaseAccessor.DATE_TIERED_COMPACTION_POLICY; import static org.apache.ambari.metrics.core.timeline.PhoenixHBaseAccessor.FIFO_COMPACTION_POLICY_CLASS; import static org.apache.ambari.metrics.core.timeline.PhoenixHBaseAccessor.HSTORE_COMPACTION_CLASS_KEY; impor...
0
if (repoInfo.isEmpty()){ LOG.error(String.format("Repository list is empty. Ambari may not be managing the repositories for %s", osFamily)); }
0
public void testCannotEscapeUserAbsoluteRoot() throws Exception { testCannotEscapeRoot(true); } @Test // see SSHD-605 public void testCannotEscapeUserRelativeRoot() throws Exception { testCannotEscapeRoot(false); } private void testCannotEscapeRoot(boolean useAbsolutePath) th...
0
.combineBy(Sums.ofLongs(), TypeDescriptors.longs())
0
@SuppressWarnings("EmptyMethod") public static void checkJarHell() {
0
import javax.persistence.NamedQueries; @NamedQueries({ @NamedQuery(name = "AlertNoticeEntity.findAll", query = "SELECT notice FROM AlertNoticeEntity notice"), @NamedQuery(name = "AlertNoticeEntity.removeByDefinitionId", query = "DELETE FROM AlertNoticeEntity notice WHERE notice.alertHistory.alertDefinition.defi...
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
= "dataflow.gcr.io/v1beta3/beam-java-batch:beam-master-20160427"; = "dataflow.gcr.io/v1beta3/beam-java-streaming:beam-master-20160427";
0
* http://www.apache.org/licenses/LICENSE-2.0
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(AbortHandler.class); LOG.info("Received abort HTTP signal from {} ({})", req.getRemoteAddr(), req.getRemoteHost());
0
import org.apache.beam.runners.core.metrics.MetricUpdates;
0
private byte[] buffer; private int len; public byte[] buffer() { return this.buffer; }
0
final int EXPECTED_TOTAL_COUNT = 92;
0
* This is a Java Bean class that can be used to wrap an instance of * {@link HttpParams} and manipulate HTTP authentication parameters * using Java Beans conventions.
0
MapFile.Writer output = new MapFile.Writer(ns.getConf(), ns.makeQualified(path), MapFile.Writer.keyClass(LogFileKey.class), MapFile.Writer.valueClass(LogFileValue.class));
0
serviceContexts.put( implementationObject, serviceContext ); serviceContexts.remove( implementationObject ); <T> void invokeBindMethod( DependencyManager<S, T> dependencyManager, RefPair<T> refPair, int trackingCount ) dependencyManager.invokeBindMethod( implementationObj...
0
import static org.junit.Assert.assertNotNull; import java.util.Collections; import org.apache.commons.configuration.interpol.DefaultLookups; * Tests whether a {@code ConfigurationInterpolator} is created from * properties defined in the parameters object if necessary. */ @Test public void testInt...
0
* The 'type' attribute values. */ protected final static String[] TYPE_VALUES = { "", SVG_IDENTITY_VALUE, SVG_TABLE_VALUE, SVG_DISCRETE_VALUE, SVG_LINEAR_VALUE, SVG_GAMMA_VALUE }; /** return getAnimatedEnumerationAttribute (null,...
0
// add service check actions from the target stack for(ServiceInfo serviceInfo : stackInfo.getServices()) { if(serviceInfo.getCommandScript() != null) { actionMetadata.addServiceCheckAction(serviceInfo.getName()); } }
0
/** A test that verifies that metrics push system works in spark runner. */ @Rule public final transient ReuseSparkContextRule noContextResue = ReuseSparkContextRule.no(); @Rule public final TestPipeline pipeline = TestPipeline.create(); public void init() { private static class CountingDoFn extends DoFn<Intege...
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 ...
0
* Sets FTPS mode, either "implicit" or "explicit". * Returns the FTPS mode. Defaults to "explicit" if not defined. * Sets FTPS type, either "implicit" or "explicit". * Returns the FTPS type. Defaults to "explicit" if not defined.
0
/** * Constructor CertificateElement * * @param element * @param BaseURI * @throws XMLSecurityException */ public CertificateElement(Element element, String BaseURI) throws XMLSecurityException { /** * Method setJCAType * * @param cert */ this._con...
0
upstream = upstream.apply(stageName + "_assignEventTimestamp", WithTimestamps PCollection<BeamSqlRow> windowStream = upstream.apply(stageName + "_window", PCollection<KV<BeamSqlRow, BeamSqlRow>> exGroupByStream = windowStream.apply( stageName + "_exGroupBy", .apply(stageName + "_groupBy",...
0
return clusters.getHostsForCluster(clusterName).values();
0
* @version $Revision: 1.3 $ $Date: 2004/05/22 20:33:05 $ HeaderElement[] element;
0
import java.util.Collection; import java.util.Map; import org.apache.felix.utils.json.JSONParser; import org.apache.felix.utils.json.JSONWriter; @Override @Override @Override { JSONParser parser = new JSONParser(dataRaw); final Map<String, Object> data = pars...
0
import org.apache.xml.security.transforms.Transforms; import org.w3c.dom.Document; import org.w3c.dom.Node;
0
import org.apache.http.impl.nio.DefaultClientIODispatch; final IOEventDispatch ioEventDispatch = new DefaultClientIODispatch(handler, params);
0
REPO, PROJECT, EXTERNAL, LIBRARY, ERROR
0
// FIXME this.cocoon = (Cocoon)this.coreUtil.createProcessor(); // FIXME this.cocoon = (Cocoon)this.coreUtil.getProcessor(request.getParameter(Constants.RELOAD_PARAM) != null); // FIXME this.cocoon = (Cocoon)this.coreUtil.getProcessor(request.getPa...
0
final int port;
0
* Included starting in Oracle Java 9 GA. * Included starting in Oracle Java 9 GA. * Included starting in Oracle Java 9 GA. * Included starting in Oracle Java 9 GA.
0
import java.io.EOFException; import java.io.WriteAbortedException; public IoWriteFuture writePacket(Buffer buffer) throws IOException { throw new EOFException("Not open"); throw new WriteAbortedException("Failed to offer outgoing buffer", new IllegalStateException("Offer failure"...
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
userEntity.setUserName(UserName.fromString(userName)); userEntity.setUserName(UserName.fromString(userName));
0
Coder<?> valueCoder = ((WindowedValueCoder<?>) coder).getValueCoder(); try { super.close(); } finally { outputChannel.close(); } try { super.close(); } finally { outputChannel.close(); }
0
document = XMLUtils.parse(is, false); document = XMLUtils.parse(is, false); document = XMLUtils.parse(is, false); document = XMLUtils.parse(is, false); document = XMLUtils.parse(is, false); document = XMLUtils.parse(is, false); document...
0