Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
String PRIVILEGE_ALL = "all"; String PRIVILEGE_READ = "read"; String PRIVILEGE_WRITE = "write"; String PRIVILEGE_READ_ACL = "read-acl"; String PRIVILEGE_WRITE_ACL = "write-acl"; String PRIVILEGE_READ_SOURCE = "read-source"; String...
0
public void testPrintHelpWithEmptySyntax() { HelpFormatter formatter = new HelpFormatter(); try { formatter.printHelp(null, new Options()); fail("null command line syntax should be rejected"); } catch (IllegalArgumentException e) { ...
0
import org.apache.hc.core5.util.TimeValue; final TimeValue timeout, requestSession(host, timeout, new SessionRequestCallback() { public Future<ClientSessionEndpoint> connect(final HttpHost host, final TimeValue timeout) throws InterruptedException { return connect(host, timeout, null); ...
0
LOG.error("Leader epoch " + Long.toHexString(newLeaderZxid >> 32L)
0
process.err().println(argv[0] + ": " + e.toString());
0
import java.util.List; import org.apache.ambari.server.api.resources.ResourceDefinition.PostProcessor; import org.apache.ambari.server.api.services.Request; import org.apache.ambari.server.api.util.TreeNode; import org.apache.ambari.server.controller.spi.Schema; import org.apache.ambari.server.controller.utilities.Clus...
0
import org.apache.commons.jxpath.BasicNodeSet; import org.apache.commons.jxpath.NodeSet; import org.apache.commons.jxpath.ri.axes.NodeSetContext; assertArgRange(2, 3); Object value = getArg2().compute(context); EvalContext ec = null; if (value instanceof EvalContext) { ec = ...
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
public interface HttpServerConnection extends BHttpConnection {
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 expression has no ELSE branch"); "IF expression is not of type boolean, but " + TYPE_NAMES[if_type] + "."); "THEN expression is not of expected type " + TYPE_NAMES[expected] + " but " + TYPE_NAMES[then_type] + ...
0
PublicKey key = Objects.requireNonNull(entry, "No key extracted").resolvePublicKey(PublicKeyEntryResolver.FAILING);
0
boolean ambariServerHostnameIsForced = false; ambariServerHostnameIsForced = true; for (String host : hosts) { (ambariServerHostnameIsForced && ambariServerHostname.equals(host)) ? null : host, kerberosDescriptor, false, false); ...
0
LOG.debug("Ganglia server component is not live");
0
public static native int lockMemoryPages();
1
final String uri = "jar:file:" + outerFile.getAbsolutePath() + "!/test.jar";
0
Iterator it; case ConfigurationEvent.CM_LOCATION_CHANGED: // FELIX-3650: Don't log WARNING message // FELIX-3584: Implement event support break;
0
import org.apache.ambari.server.H2DatabaseCleaner; public void teardown() throws AmbariException, SQLException { H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector);
0
* Copyright 2004,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 ap...
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
outCompressionOpt, outReplication, enoSampleOption, extraSummaryOption, enoSummaryOption; put(cl, opts, extraSummaryOption, CompactionSettings.SF_EXTRA_SUMMARY); put(cl, opts, enoSummaryOption, CompactionSettings.SF_NO_SUMMARY); enoSummaryOption = new Option(null, "sf-no-summary", false, "Select files...
1
int opcode = Integer.parseInt(st.nextToken()); boolean initlocal = Boolean.parseBoolean(st.nextToken()); boolean initremote = Boolean.parseBoolean(st.nextToken()); boolean acce...
0
import com.google.common.annotations.VisibleForTesting; import com.google.common.hash.Hashing; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import java.util.UUID; import java.util.concurrent.ThreadLocalRandom; import javax.annota...
0
@Category({NeedsRunner.class, UsesTimersInParDo.class, UsesTestStreamWithProcessingTime.class})
0
final int initialTimeout = timeout; throw new IllegalStateException("Timed out waiting for " + initialTimeout + " ms for step " + nr + ", we are still at step " + step);
0
* Copyright 2002,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 ap...
0
/** The namespace URI. */ private String namespace; if (tag == null) { throw new JellyTagException( "<attribute> tag must be enclosed inside an <element> tag" ); tag.setAttributeValue(getName(), getBodyText(false), getURI()); * Sets the name of the attribut...
0
* http://www.apache.org/licenses/LICENSE-2.0
0
/* (non-Javadoc) * @see org.apache.cocoon.portal.profile.ProfileManager#storeProfile(org.apache.cocoon.portal.layout.Layout, java.lang.String) */ public void storeProfile(Layout rootLayout, String layoutKey) { PortalService service = null; try { service = (PortalSe...
0
import org.apache.felix.http.base.internal.whiteboard.WhiteboardManager; public ServletRequestListenerTracker(final BundleContext context, final WhiteboardManager manager)
0
HashMap m_definedClasses = new HashMap(); if(m_definedClasses.containsKey(name)) { return (Class) m_definedClasses.get(name); } Class c = super.defineClass(name, b, 0, b.length, domain); m_definedClasses.put(name, c); return c; ComponentInstance ci = ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBagUtils.java,v 1.2 2003/09/20 17:02:03 scolebourne Exp $ import junit.framework.Test; import org.apache.commons.collections.decorators.SynchronizedBag; import org.apache.comm...
0
import java.security.SecureRandom; System.currentTimeMillis() + "_" + new SecureRandom().nextInt(Short.MAX_VALUE), token,
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
/** * @since 4.0 */
0
package org.apache.beam.sdk.coders; import org.apache.beam.sdk.util.ExposedByteArrayOutputStream; import org.apache.beam.sdk.util.StreamUtils; import org.apache.beam.sdk.util.VarInt;
0
import org.apache.beam.runners.spark.translation.streaming.Checkpoint.CheckpointDir;
0
import com.google.common.collect.Lists; public void testSourceSplitIntoBundlesVoid() throws Exception { CreateSource<Void> source = CreateSource.fromIterable( Lists.<Void>newArrayList(null, null, null, null, null), VoidCoder.of()); PipelineOptions options = PipelineOptionsFactory.create();...
0
* on the baseline.<br /> * * <b>Note</b>: The current implementation turns a drawString call * into shapes. Therefore, the generated SVG file will be sub-optimal * in terms of size and will have lost semantic (i.e., text is no * longer text but shapes), but it is graphically accurate. ...
0
@SuppressWarnings("unchecked") // OK final Enumeration<String> propertyNames = (Enumeration<String>) cp.propertyNames(); while(propertyNames.hasMoreElements()){ String c = propertyNames.nextElement();
0
/** * Determines if the object has been set up with a ByteArray * * @return true is the object has been set up with an octet stream */ public boolean isByteArray() { return ( (bytes!=null) && ((this._inputNodeSet == null) && _subNode ==null)); }
0
* http://www.apache.org/licenses/LICENSE-2.0
0
import org.apache.accumulo.minicluster.impl.MiniAccumuloConfigImpl; public void configure(MiniAccumuloConfigImpl cfg) {
0
MONITOR_SSL_KEYSTORETYPE("monitor.ssl.keyStoreType", "jks", PropertyType.STRING, "Type of SSL keystore"), MONITOR_SSL_TRUSTSTORETYPE("monitor.ssl.trustStoreType", "jks", PropertyType.STRING, "Type of SSL truststore"),
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 ap...
1
tmpDir = getFile(properties, TMPDIR, new File(System.getProperty("java.io.tmpdir"), "fileinstall"));
0
package org.apache.felix.ipojo.test.scenarios.component; import java.util.Dictionary; import java.util.List; import java.util.Map; import java.util.Properties; import org.apache.felix.ipojo.test.scenarios.configuration.service.CheckService; public class ComplexConfiguration implements CheckService { private...
0
super(null, null, null, null);
0
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Attic/Constant.java,v 1.9 2004/01/11 23:30:20 dgraham Exp $ * $Revision: 1.9 $ * $Date: 2004/01/11 23:30:20 $ * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
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 m...
0
/* * Copyright 1999-2009 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 ...
0
* @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a> * @param x the mouse x coordinate * @param y the mouse y coordinate * @param screenX the mouse x coordinate relative to the screen * @param screenY the mouse y coordinate relative to the screen
0
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressFBWarnings(value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT", justification = "prefetch side effect")
0
public final class JettyLogger implements Logger public void debug(Throwable throwable) { if (this.debugEnabled) { SystemLogger.debug(throwable.getMessage()); } } public void debug(String msg, Object... args) { if (this.debugEnabled) { ...
0
this.loadXmlPage("cocoon-servlet-service-impl-sample/test1/test4?foo=5");
0
import org.apache.ambari.server.events.InitialAlertEvent; * Consumes an {@link InitialAlertEvent}. public void onInitialAlertEvent(InitialAlertEvent event) { onAlertEvent(event.getClusterId(), event.getAlert()); } /** * Consumes an {@link AlertStateChangeEvent}. */ @Subscribe public void onAlert...
0
* Copyright (C) 2015 Google Inc.
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestBidiMap.java,v 1.2 2003/09/26 23:28:43 matth Exp $ import junit.framework.TestCase; * @version $Id: TestBidiMap.java,v 1.2 2003/09/26 23:28:43 matth Exp $ public abstra...
0
super.setAccessFlags(access_flags); file.writeShort(super.getAccessFlags()); String access = Utility.accessToString(super.getAccessFlags(), true); buf.append(access).append(Utility.classOrInterface(super.getAccessFlags())).append(" ").append( buf.append("access flags\t\t").append...
0
import org.apache.aurora.common.args.Arg; import org.apache.aurora.common.args.CmdLine;
0
private static final long serialVersionUID = 5296593071854982754L;
0
final long timeout, final TimeUnit tunit) throws InterruptedException, ConnectionPoolTimeoutException { if(!awaitLatch.await(timeout > 0 ? timeout : Integer.MAX_VALUE, tunit)) { final long timeout, ...
0
Object serialize(Result result);
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
protected void setKey(final SelectionKey key) { this.key = key; } SelectionKey key = this.key; if (key != null) { key.cancel(); Channel channel = key.channel(); if (channel.isOpen()) { try { channel.close(); ...
0
* The RowEncodingIterator is designed to provide row-isolation so that queries see mutations as atomic. It does so by encapsulating an entire row of key/value * pairs into a single key/value pair, which is returned through the client as an atomic operation. This is an abstract class, allowing the user to implement *...
0
// Issue a warning for missing imports. On the other hand, // if packages are being ignored, then this is a new project }
0
* {@link PCollection PCollections}, only a bounded portion of the input Pub/Sub stream * can be processed. As such, either {@link Bound#maxNumRecords(int)} or * {@link Bound#maxReadTime(Duration)} must be set.
0
package org.apache.commons.configuration; * @version $Id: TestCompositeConfigurationNonStringProperties.java,v 1.5 2005/01/03 16:35:04 ebourg Exp $ /** The File that we test with */ private String testProperties = new File("conf/test.properties").getAbsolutePath(); public void setUp() throws Exception ...
0
import org.apache.accumulo.core.util.RootTable; KeyExtent root = RootTable.ROOT_TABLET_EXTENT;
0
Set<SubResourceDefinition> setChildren = new HashSet<>();
1
public List<BoundedSource<KV<K, V>>> split(long desiredBundleSizeBytes, * and cached in this. These splits are further used by split() and
0
import java.util.Map.Entry; import org.apache.accumulo.core.client.impl.Namespaces; if (!curr.startsWith(Namespaces.ACCUMULO_NAMESPACE + ".")) {
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 <E> the type of elements held in this queue
0
import java.util.Random; Random random = new Random(); tmpDir = accumuloDir + "/tmp/idxReduce_" + String.format("%09d", random.nextInt(Integer.MAX_VALUE)); log.debug(String.format("Found midPoint from indexes in %6.2f secs.%n", (t2 - t1) / 1000.0));
0
/* * $HeadURL$ * $Revision$ * $Date$ * * ==================================================================== * 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...
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 applicable law o...
0
* Returns the RGBColor value for this SVGColor. * For the SVG 1.1 ECMAScript binding. */ public RGBColor getRgbColor() { return this; } /** * Returns the SVGICCColor value of this SVGColor. * For the SVG 1.1 ECMAScript binding. */ public SVGICCColor getIccColor() {...
0
import org.apache.beam.runners.core.StateInternals;
0
* Listing API Examples * Both paged and unpaged examples of directory listings are available, * as follows: * Unpaged (whole list) access, using a parser accessible by auto-detect: * <pre> * FTPClient f=FTPClient(); * f.connect(server); * f.login(username, password); * FTPFile[] files = listFiles(...
0
assertEquals(k1, k2); assertEquals(k3, k4);
0
import org.apache.accumulo.core.client.Instance; Instance instance = HdfsZooInstance.getInstance(); Client client = MasterClient.getConnection(instance); client.getMasterStats(Tracer.traceInfo(), SystemCredentials.get().toThrift(instance));
0
exchangeId, operation.setDependency(execRuntime.execute(exchangeId, internalExchangeHandler, clientContext));
0
* Copyright 2008-2010 The Apache Software Foundation. private static final String BASEDIR = System.getProperty("basedir") == null ? "./": System.getProperty("basedir");
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables;
0
Counter.longs("read_output_name-MeanByteCount", MEAN).resetMeanToValue(0, 0L), Counter.longs("DoFn1_output-MeanByteCount", MEAN).resetMeanToValue(0, 0L), Counter.longs("DoFnWithContext_output-MeanByteCount", MEAN).resetMeanToValue(0, 0L), Counter.longs("flatten_output_nam...
0
/** Unit tests for {@link BeamSqlCardinalityExpression}. */ ImmutableList.of(BeamSqlPrimitive.of(SqlTypeName.ARRAY, Arrays.asList("aaa", "bbb"))); ImmutableList.of(BeamSqlPrimitive.of(SqlTypeName.ARRAY, Arrays.asList())); ImmutableList.of(BeamSqlPrimitive.of(SqlTypeName.ARRAY, Arrays.asList("aaa...
0
@Override
0
(BeamFnApi.Elements t) -> { inboundServerValues.add(t); waitForInboundServerValuesCompletion.countDown(); ).build();
0
void failed(Exception cause);
0
(null, target.getHostName(), port, null, 0, params);
0
import org.apache.hc.core5.annotation.Internal; * Request execution handler in the classic request execution chain * that is responsible for implementation of HTTP specification requirements. @Contract(threading = ThreadingBehavior.STATELESS) @Internal public final class ProtocolExec implements ExecChainHandler { ...
0
import java.util.Collections; return Collections.singletonList(input);
0
/** Tests {@link CustomOptional}. */ .addEqualityGroup(CustomOptional.of("3")) .testEquals();
1
package com.twitter.aurora.scheduler.log;
1
import org.slf4j.Logger; import org.slf4j.LoggerFactory; protected static final Logger LOG = LoggerFactory.getLogger(GenerateLoad.class);
0
public class ClassVector implements java.io.Serializable {
0
import org.apache.sshd.util.BaseTestSupport; public class SshServerTest extends BaseTestSupport { try(SshServer sshd = new SshServer()) { sshd.stop(); sshd.stop(); sshd.stop(); } try(SshServer sshd = createTestServer()) { sshd.setScheduledExecutorS...
0