Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
0
private FTPSClient init(final FTPSClient client) final FTPSClient client1 = this.init(new FTPSClient(true)); final FTPSClient client2 = this.init(new FTPSClient(true));
1
for (int glyphCode : glyphCodes) { workBuff.append(glyphUnicodes[glyphCode]);
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
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 use this file except in compliance with the License. You may obta...
0
package org.apache.beam.runners.core;
0
System.err.println("System: " + client.getSystemType());
0
if (log.isDebugEnabled()) log.debug("Transforms.addTransform(" + transformURI + ")"); if (log.isDebugEnabled()) log.debug("Transforms.addTransform(" + transformURI + ")"); if (log.isDebugEnabled()) log.debug("Transforms.addTransform(" + transform.getURI() + ")");
0
import org.apache.commons.vfs.UserAuthenticationData; import org.apache.commons.vfs.util.UserAuthenticatorUtils; public final static UserAuthenticationData.Type[] AUTHENTICATOR_TYPES = new UserAuthenticationData.Type[] { UserAuthenticationData.USERNAME, UserAuthenticationData.PASSWORD }; // private JSch jSch...
0
import org.apache.hc.core5.function.Callback; private Callback<Exception> exceptionCallback; * Assigns {@link Exception} {@link Callback} instance. */ public final AsyncRequesterBootstrap setExceptionCallback(final Callback<Exception> exceptionCallback) { this.exceptionCallback = exceptionCall...
0
public ZooKeeperBindException() {}
0
// TODO we probably need to keep the ObjectInstance returnde for setupJmxFor for // later deregistering.
0
* Implementation of {@link Expression} for the operation "mod".
1
Collections.sort(sent, (o1, o2) -> Long.compare(o1.value(), o2.value())); injectorThread.submit(() -> { int errorsInjected = 0; while (!done.get()) { boolean successful; if (errorsInjected < maxErrors && ((numCompletions + 1) % errorFrequency) == 0) { successful...
0
package org.apache.commons.ognl.test; import org.apache.commons.ognl.test.objects.Root; {ROOT, "'javascript:' + @org.apache.commons.ognl.test.NullStringCatenationTest@MESSAGE", "javascript:blarney" },
0
private int name_index; // Name of field/method // TODO could be final (setter unused) private int signature_index; // and its signature. // TODO could be final (setter unused) public final void setNameIndex( int name_index ) { // TODO unused public final void setSignatureIndex( int signature_index ) { ...
0
public void init()
0
private static final WeakHashMap<Text,WeakReference<Text>> tableIds = new WeakHashMap<>(); tableIds.put(tableId, new WeakReference<>(tableId)); Collection<KeyExtent> keys = new ArrayList<>(); children = new TreeSet<>(); return new TreeSet<>(); TreeSet<KeyExtent> result = new TreeSet<>(); ...
0
commandParams.put("version", version); commandParams);
0
@SuppressWarnings({"unused"}) public enum CompactionReason implements org.apache.thrift.TEnum {
0
repository.setAmbariManagedRepositories(true); Assert.assertEquals("[{\"OperatingSystems/ambari_managed_repositories\":true,\"repositories\":[{\"Repositories/base_url\":\"baseurl\",\"Repositories/repo_id\":\"repoId\",\"Repositories/unique\":true}],\"OperatingSystems/os_type\":\"os\"}]", serialized);
0
&& this.layered == that.layered;
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.InvalidProtocolBufferException;
0
// look for any item from the prior upgrade which is still in progress // (not failed, completed, or aborted) mostRecentUpgrade.getRequestId(), HostRoleStatus.IN_PROGRESS_STATUSES);
0
public class InstructionFactory implements InstructionConstants, java.io.Serializable {
0
import org.apache.http.nio.NHttpServerIOTarget; private final NHttpServiceHandler handler; this.allocator = createByteBufferAllocator(); protected ByteBufferAllocator createByteBufferAllocator() { return new HeapByteBufferAllocator(); protected NHttpServerIOTarget createConnection(...
0
LOG.debug("Waiting up to {} msec as assertion failed", mustEnd - System.currentTimeMillis(), e);
0
import java.io.DataOutputStream; public class INVOKEDYNAMIC extends InvokeInstruction { public INVOKEDYNAMIC(int index) { super(Constants.INVOKEDYNAMIC, index); * Dump instruction as byte code to stream out. * @param out Output stream public void dump( DataOutputStream out ) throws IOException...
0
* Copyright 1999-2005 The Apache Software Foundation. c.removeChild(config.getChild("listeners"));
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 SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) { Combiner newInstance; try { newInstance = this.getClass().newInstance(); } catch (Exception e) { throw new RuntimeException(e); } newInstance.setSource(getSource().deepCopy(env)); newInstance.combiners = c...
0
import org.apache.accumulo.core.client.mapreduce.lib.impl.FileOutputConfigurator;
0
* A ProtocolCommandSupport object used to manage the registering of * ProtocolCommandListeners and te firing of ProtocolCommandEvents. */ private ProtocolCommandSupport _commandSupport_; /** _commandSupport_ = new ProtocolCommandSupport(this); /** * Adds a ProtocolCommandListen...
0
private boolean isNumeric; setIsNumeric(lookup, context, isPrimitive, attributeName); private void setIsNumeric(Lookup lookup, GremlinQueryComposer.Context context, boolean isPrimitive, String attrName) { if (isPrimitive) { isNumeric = lookup.isNumeric(context, a...
0
if (!toPrune.isEmpty()) { deleteTasks(toPrune); }
0
for (FilesystemObserver observer : observers) { addObserver(observer); Thread.currentThread().interrupt(); while (running) { } catch (final InterruptedException ignored) {
0
SortTest.class,
0
/* ==================================================================== * Copyright (c) 2001-2004 The Apache Software Foundation. All rights * @version $Revision: 1.3 $ $Date: 2004/01/14 21:43:04 $
0
ExecutableGraph<PTransformNode, ? super PCollectionNode> graph, * Handle the provided {@link TransformResult}, produced after evaluating the provided {@link * CommittedBundle} (potentially null, if the result of a root {@link PTransform}). * <p>The result is the output of running the transform contained ...
1
* Copyright 2000-2009 The Apache Software Foundation
0
ret = actual;
0
StringBuffer sb = new StringBuffer(); sb.append("Slots used: "); sb.append(slotsUsed()); sb.append(" MaxStack: "); sb.append(maxStack); sb.append(".\n"); sb.append(peek(i)); sb.append(" (Size: "); sb.append(String.valueOf(peek(i).getSize())); sb.append(")\n"); return sb.toString();
0
final String stuff = "stuff"; final String stuff = "stuff"; final List<String> list = Arrays.asList("stuff");
0
import org.apache.http.nio.NHttpConnection; public void connectionOpen(final NHttpConnection conn) { System.out.println("Connection open: " + conn); public void connectionTimeout(final NHttpConnection conn) { System.out.println("Connection timed out: " + conn); public voi...
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: Expression.java,v 1.1 2003/09/04 12:42:32 cziegeler Exp $
0
// System.out.println(" ** viewBox rect set: "+viewBox);
0
* A {@link GoogleClientRequestInitializer} that adds the 'trace' token to Google API calls. * Creates a {@link GoogleApiTracer} that sets the trace {@code token} on all * calls that match the given client type. * Creates a {@link GoogleApiTracer} that sets the trace {@code token} on all * calls t...
0
public class PredicatedSortedSet<E> extends PredicatedSet<E> implements SortedSet<E> { * @return a new predicated sorted set. public static <T> SortedSet<T> decorate(SortedSet<T> set, Predicate<? super T> predicate) { return new PredicatedSortedSet<T>(set, predicate); protected PredicatedSortedSet(...
0
package org.apache.commons.digester3.rss; */
0
import org.apache.aurora.gen.ResourceAggregate; import org.apache.aurora.scheduler.storage.entities.IResourceAggregate; private static final IResourceAggregate QUOTA = IResourceAggregate.build(new ResourceAggregate(1, 1, 1));
0
* @since 2.0
0
Enumeration en; en = ccList.elements(); while (en.hasMoreElements()) client.addRecipient((String)en.nextElement());
0
import org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink;
0
return evaluate(scriptreader, ""); } public Object evaluate(Reader scriptreader, String description) {
0
* @version CVS $Id: JdbcEsqlQuery.java,v 1.5 2003/07/03 07:59:59 cziegeler Exp $
0
import org.apache.beam.runners.direct.DirectRunner.CommittedBundle;
0
import org.apache.hc.core5.util.Deadline; import org.apache.hc.core5.util.DeadlineTimeoutException; if (entry.getExpiryDeadline().isBefore(now)) { private final Deadline deadline; final Timeout requestTimeout, this.deadline = Deadline.calculate(System.currentTimeMilli...
0
import org.apache.hc.core5.annotation.Contract; import org.apache.hc.core5.annotation.ThreadingBehavior; @Contract(threading = ThreadingBehavior.IMMUTABLE)
0
private static final String isTaxonomyEnabled = "atlas.feature.taxonomy.enable"; Boolean enableTaxonomy = null; PropertiesConfiguration configProperties = new PropertiesConfiguration("atlas-application.properties"); enableTaxonomy = new Boolean(configProperties.getString(isTaxonomyEn...
0
upgradeResourceProvider.processConfigurations(stack211.getStackName(), cluster, "2.2.0.0", Direction.UPGRADE, upgradePacks.get("upgrade_to_new_stack"));
0
import java.util.List;
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override
0
return "unsatisfied";
0
public void sendInformation(final HttpResponse response, final HttpContext httpContext) throws HttpException, IOException { public void sendResponse(final HttpResponse response, final EntityDetails entityDetails, final HttpContext httpContext) throws HttpException, IOException { ...
0
@Override @Override
0
import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; import org.apache.felix.scrplugin.helper.StringUtils;
0
* @param traits trait that needs to be added to entity void onTraitsDeleted(Referenceable entity, Collection<? extends Struct> traits) throws AtlasException;
0
final Config config1 = injector.getInstance(ConfigFactory.class).createNew(cluster, "t1", "1", Config config2 = injector.getInstance(ConfigFactory.class).createNew(cluster, "t1", "2",
0
import org.apache.ambari.view.utils.ambari.AmbariApi; import org.apache.ambari.view.utils.ambari.AmbariApiException; import java.io.IOException; import java.util.List; private AmbariApi ambariApi; this.ambariApi = new AmbariApi(context); if (ambariApi.isClusterAssociated()) { List<String> hiveServerHost...
0
import org.apache.beam.sdk.transforms.Mean.CountSum; import org.apache.beam.sdk.util.state.CombiningState; private final StateSpec<Object, CombiningState<Integer, int[], Integer>> @StateId(countStateId) CombiningState<Integer, int[], Integer> private final StateSpec<Object, CombiningSt...
0
private static final String InvalidTypeNameErrorMessage = "Only alphanumeric characters, numbers and '_' are allowed in names."; private static final String InvalidTraitTypeNameErrorMessage = "Only alphanumeric characters, numbers, '.' and '_' are allowed in names.";
0
StageResourceProvider.calculateSummaryStatus(counters, stages.size(), false), requestedIds);
0
import org.apache.hc.client5.http.ClientProtocolException; import org.apache.hc.client5.http.classic.ExecChain; import org.apache.hc.client5.http.classic.ExecChainHandler; import org.apache.hc.client5.http.classic.ExecRuntime;
0
return true; } return true; } return true; } return true; } { return false; // avoid possible NPEs below } return false; } return false; ...
0
Copyright 2002-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
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
private static final Pattern GLOB_PREFIX = Pattern.compile("(?<PREFIX>[^\\[*?]*)[\\[*?].*"); private Storage storage; // Use this only for testing purposes. protected void setStorageClient(Storage storage) { this.storage = storage; } * Expands a pattern into matched paths. The pattern path may contain...
0
* @version CVS $Id$
0
"root", PTransform.newBuilder() .setSpec( FunctionSpec.newBuilder() .setUrn(PTransformTranslation.IMPULSE_TRANSFORM_URN) .build()) .putOutputs("output", "output.out") ...
0
import static org.junit.Assert.assertFalse; assertFalse(factory.isFeatureSupported("not supported"));
0
private boolean bcInstalled; if (cons != null) { bcInstalled = true; if (!bcInstalled) { return; } if (!bcInstalled) { return; } if (!bcInstalled) { return; } if (!bcInstalled) { retur...
0
public void testSourceGetOutputCoderReturnsConstructorCoder() throws Exception { Coder<Integer> defaultCoder = source.getOutputCoder();
0
* <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
0
/** * Method createDSctx * * @param doc * @param prefix * @param namespace * @return the element. */ public static Element createDSctx(Document doc, String prefix, String n...
0
// Predefined char arrays for better performance and less GC load private static final char[] AEIJOUY = new char[] { 'A', 'E', 'I', 'J', 'O', 'U', 'Y' }; private static final char[] SCZ = new char[] { 'S', 'C', 'Z' }; private static final char[] WFPV = new char[] { 'W', 'F', 'P', 'V' }; private stat...
0
Map<String,String> namespaces = new TreeMap<>(shellState.getConnector().namespaceOperations().namespaceIdMap());
1
import org.apache.felix.service.command.CommandSession;
0
cluster.addDesiredConfig("_test", config1); host1.addDesiredConfig(cluster.getClusterId(), true, "_test", config2);
0
import org.apache.ambari.annotations.ApiIgnore; @GET @ApiIgnore // until documented @GET @ApiIgnore // until documented
0
import org.apache.ambari.server.state.stack.OsFamily; import static org.easymock.EasyMock.createNiceMock; bind(OsFamily.class).toInstance(createNiceMock(OsFamily.class));
0
@Override
0
import org.apache.batik.gvt.filter.Filter; import org.w3c.dom.css.ViewCSS; public GraphicsNode createGraphicsNode(BridgeContext ctx, Element element){ // Initialize the transform AffineTransform at = SVGUtilities.convertAffineTransform(element, ...
0
import com.google.common.collect.Lists; import java.util.Arrays; expect(mockAuthPropsConfig.getAllowedRoles()).andReturn(Arrays.asList("AMBARI.ADMINISTRATOR")); expect(mockAuthPropsConfig.getAllowedRoles()).andReturn(Arrays.asList("AMBARI.ADMINISTRATOR"));
0
/** * Wrapper around euphoria's {@code Window} into beam. */
0
try (AccumuloClient c = getAccumuloClient()) { String tableName = getUniqueNames(1)[0]; c.tableOperations().create(tableName); IteratorSetting setting = new IteratorSetting(10, SummingCombiner.class); SummingCombiner.setEncodingType(setting, Type.STRING); SummingCombiner.setColumns(set...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/event/Attic/ModificationVetoedException.java,v 1.3 2003/08/31 17:25:49 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgem...
0
String query = String.format("%s as t where name = '%s', dbName where name = '%s' and clusterName = '%s'" + " select t", HiveDataTypes.HIVE_TABLE.getName(), tableName, dbName, CLUSTER_NAME); JSONObject row = results.getJSONObject(0); if (row.has("$id$")) { ret...
0
throw new WrappedException (new RuntimeException("Implicit declaration of global variable '" + name + throw new WrappedException(new RuntimeException("Global scope locked. Cannot set value for index " + index));
0
* Copyright 2006-2009 The Apache Software Foundation. new XPathFilterParameterSpec(expr,
0