Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
LifecycleHelper.setupComponent(cl, this.getLogger(), context, newManager, appContainer);
0
import org.apache.beam.model.fnexecution.v1.BeamFnApi.StateGetResponse; import org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest; import org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse;
0
import java.util.concurrent.CountDownLatch; import com.twitter.common.args.Arg; import com.twitter.common.args.CmdLine; import com.twitter.common.quantity.Amount; import com.twitter.common.quantity.Time; class SchedulerLifecycle implements RegisteredListener { @CmdLine(name = "max_registration_delay", help = "M...
0
import org.apache.sshd.common.util.security.SecurityUtils;
0
import org.apache.http.util.Asserts; Asserts.check(!this.triggered, "Response already triggered"); Asserts.check(!this.triggered, "Response already triggered"); Asserts.check(!this.triggered, "Response already triggered");
0
new HashMap<>(length);
0
public void write(int b) throws IOException { if (!this.buffer.hasRemaining()) { flushBuffer(); } this.buffer.put((byte)b); }
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 u...
0
import org.apache.sshd.util.test.JUnitTestSupport; public class SignatureDSATest extends JUnitTestSupport {
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
tableRowCoder.encode(value.tableRow, outStream); tableRowCoder.decode(inStream),
0
import org.apache.commons.jelly.util.ClassLoaderUtils; Class clazz = ClassLoaderUtils.loadClass(m_classToBeLoaded, getClass());
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
package org.apache.felix.ipojo.test.scenarios.factories; import java.util.Properties; import org.apache.felix.ipojo.ComponentFactory; import org.apache.felix.ipojo.ComponentInstance; import org.apache.felix.ipojo.ConfigurationException; import org.apache.felix.ipojo.MissingHandlerException; import org.apache.felix.ip...
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...
1
import java.awt.Color; if (useHinting && (fillPaint != null) && !(fillPaint instanceof Color)) // The coordinate system is different for drawGlyphVector. // So complex paints aren't positioned properly. useHinting = false;
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.atlas.repository.store.graph.v2; import org.apache.atlas.RequestContext; public abstract class InverseReferenceUpdateV2Test { RequestContext.clear(); RequestContext.get().setUser(TestUtilsV2.TEST_USER, null); RequestContext.clear(); RequestContext.get().setUser(TestUti...
1
import org.apache.accumulo.core.security.tokens.AuthenticationToken;
0
* Verify that acl optimization of storing just * a few acls and there references in the data assertTrue("waiting for server being up", /* * (non-Javadoc) * */ { ...
0
import org.apache.ambari.server.orm.entities.ViewEntity; import org.apache.ambari.server.orm.entities.ViewEntityTest; import org.apache.ambari.server.orm.entities.ViewInstanceEntity; import org.apache.ambari.server.orm.entities.ViewInstanceEntityTest; ViewEntity viewDefinition = ViewEntityTest.getViewEntity(); ...
0
conn.setClosedInternal(true);
0
private SparkJobServerDriver.SparkServerConfiguration configuration; public static SparkJobInvoker create( SparkJobServerDriver.SparkServerConfiguration configuration) { return new SparkJobInvoker(configuration); private SparkJobInvoker(SparkJobServerDriver.SparkServerConfiguration configuration) { ...
0
private final boolean isBoundedSource; this.isBoundedSource = false; } public ApexReadUnboundedInputOperator(UnboundedSource<OutputT, CheckpointMarkT> source, boolean isBoundedSource, ApexPipelineOptions options) { this.pipelineOptions = new SerializablePipelineOptions(options); this.source = s...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/RegexRulesTestCase.java,v 1.3 2003/10/05 15:35:36 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/05 15:35:36 $ * * Copyright (c) 2001-2003 The Apache Software Foundation. All ri...
0
long timeCreated = 0; Map<String,Long> fileToTimeCreated = new HashMap<>(); m.put(ReplicationSection.COLF, new Text(Integer.toString(index)), StatusUtil.fileCreatedValue(timeCreated)); fileToTimeCreated.put(file, timeCreated); timeCreated++; timeCreated = fileToTimeCreated.get(file.toStr...
0
import java.nio.charset.Charset; AccumuloInputFormat.setConnectorInfo(job, args[0], args[1].getBytes(Charset.forName("UTF-8"))); AccumuloOutputFormat.setConnectorInfo(job, args[0], args[1].getBytes(Charset.forName("UTF-8")));
0
boolean configsChanged = false; if (configsChanged) { m_metadataHolder.get().updateData(m_controllerProvider.get().getClusterMetadataOnConfigsUpdate(cluster)); m_agentConfigsHolder.get().updateData(cluster.getClusterId(), null);
0
* @version CVS $Id: DeliImpl.java,v 1.6 2003/09/25 16:59:19 butlermh Exp $ private String deliConfig = "WEB-INF/deli/config/deliConfig.xml"; // Workspace.getInstance().configure(this.servletContext, this.deliConfig);
0
import java.util.regex.Pattern; private String valueBorders = null; valueBorders = getStringValue("value_borders"); String splitPattern = Pattern.quote(fieldSplit); String[] tokens = valueObj.toString().split(splitPattern); for (String nv : tokens) { String[] nameValue = getNameValue(...
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 java.io.Serializable; public final class ContentType implements Serializable { private static final long serialVersionUID = -7768694718232371896L;
0
/** * A byte sequence that precedes a boundary (<code>CRLF--</code>). */ protected static final byte[] BOUNDARY_PREFIX = { CR, LF, DASH, DASH}; /** * The number of bytes, over and above the boundary size, to use for the * keep region. */ private static final int KE...
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
case THREADED_SELECTOR: log.debug("Instantiating default, unsecure Threaded selector Thrift server"); serverAddress = createThreadedSelectorServer(address, processor, protocolFactory, serverName, numThreads, numSTThreads, timeBetweenThreadChecks, maxMessageSize); ...
0
import java.lang.reflect.Field; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(TransformTranslator.class);
0
StrLookup lookup = (StrLookup) BeanHelper.createBean(decl); BeanHelper.setProperty(lookup, "configuration", this); ConfigurationInterpolator.registerGlobalLookup(key, lookup);
0
private static final long serialVersionUID = 0;
0
import org.apache.hc.client5.http.auth.AuthSchemes; import org.apache.hc.client5.http.cookie.CookieSpecs; .setCookieSpec(CookieSpecs.STANDARD.ident) .setTargetPreferredAuthSchemes(Arrays.asList(AuthSchemes.NTLM.ident, AuthSchemes.DIGEST.ident)) .setProxyPreferredAuthSchemes(Arrays.as...
0
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlJavaTypeAdapter(JaxbAbstractIdSerializer.class)
0
* or more contributor license agreements. See the NOTICE file * regarding copyright ownership. The ASF licenses this file * with the License. You may obtain a copy of the License at * KIND, either express or implied. See the License for the
0
import org.apache.accumulo.core.security.thrift.ThriftSecurityException;
0
import org.apache.beam.runners.core.construction.TransformInputs; new DoFn<KV<String, Integer>, Integer>() { @StateId(stateId) private final StateSpec<ValueState<String>> spec = StateSpecs.value(StringUtf8Coder.of()); ...
0
import org.apache.ambari.server.audit.AuditLoggerModule; injector = Guice.createInjector(new AuditLoggerModule(), new ControllerModule(properties)); injector = Guice.createInjector(new AuditLoggerModule(), new ControllerModule(properties));
1
@SuppressWarnings("checkstyle:anoninnerlength") private Iterator<KeyPair> currentIdentities; currentPair = KeyIdentityProvider.exhaustCurrentIdentities(currentIdentities); if (currentPair != null) { return true; } I...
0
sideInput.getTagInternal().getId(), ParDoTranslation.translateView(sideInput));
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
Service srv = dm.createBundleAdapterService(stateMask, filter, propagate) .setInterface(service, properties) .setImplementation(adapterImpl);
0
TSaslClientTransport transport = new TSaslClientTransport("GSSAPI", null, proxyPrimary, hostname, Collections.singletonMap("javax.security.sasl.qop", "auth"), null, socket); TSaslClientTransport transport = new TSaslClientTransport("GSSAPI", null, proxyPrimary, hostname, Collections.singletonMap("javax....
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 java.util.SortedSet; import java.util.TreeSet; * @version CVS $Id: RequestParameterModule.java,v 1.2 2003/04/23 13:37:35 haul Exp $ SortedSet names = new TreeSet(); Enumeration allNames = request.getParameterNames(); while (allNames.hasMoreElements()) { String...
0
import org.apache.avalon.framework.service.ServiceManager; import org.apache.cocoon.core.container.AbstractComponentHandler; * @version CVS $Id$ public AbstractComponentHandler getHandler(ServiceManager manager, Context context) throws Exception { return AbstractC...
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
import com.google.inject.Singleton;
0
throws CSSException { return new CSSAndCondition(first, second); throws CSSException { throw new CSSException("Not implemented in CSS2"); throws CSSException { throw new CSSException("Not implemented in CSS2"); bool...
1
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting;
0
* Autogenerated by Thrift Compiler (0.10.0) public enum CompactionReason implements org.apache.thrift.TEnum {
0
protected void handleError(final HttpRequest promise, final Exception cause) { } public void failed(final Exception cause) { handleError(promise, cause); responseConsumer.failed(cause);
0
public static final Map<String,Set<Text>> LOCALITY_GROUPS = ImmutableMap.of(STATUS_LG_NAME, STATUS_LG_COLFAMS, WORK_LG_NAME, WORK_LG_COLFAMS); public static BatchScanner getBatchScanner(Connector conn, int queryThreads) throws ReplicationTableOfflineException { return DeprecationUtil.isMockInstance(...
0
@Override public String toString() { return super.toString() + " for " + file; }
0
import org.apache.ambari.server.state.fsm.InvalidStateTransitionException; InvalidStateTransitionException {
0
* http://www.apache.org/licenses/LICENSE-2.0
0
protected void clearPropertyDirect(String key)
0
String redir = BasicServlet.currentPage(req); if (namespaces != null) { sb.append("<div id=\"filters\">\n"); String namespace = BasicServlet.getCookieValue(req, "namespaceDropdown." + BasicServlet.encode(page) + "." + BasicServlet.encode(tableName) + "." + "selected"); if (namespace...
0
import org.apache.beam.runners.spark.translation.streaming.utils.SparkTestPipelineOptionsForStreaming; public SparkTestPipelineOptionsForStreaming pipelineOptions = new SparkTestPipelineOptionsForStreaming();
0
for (Object aFontList : fontList) { GVTFont font = (GVTFont) aFontList;
0
//set hostname and hostIp * * @param propFile * @param propNVList * @throws Exception // Let's load properties from argument list /** * @param nvList */ static public boolean isEnabled(Map<String, Object> configs) { return isEnabled(configs, configs); } static public void logCou...
0
import org.mozilla.javascript.WrapHandler; private WrapHandler wrapHandler = new EventTargetWrapHandler(this); Context ctx = Context.enter(); ImporterTopLevel importer = new ImporterTopLevel(ctx); importer.importPackage(ctx, globalObject, p, null); ctx.setWrapHand...
0
this.status = new AtomicReference<>(Status.READY);
0
uriMap = new HashMap<>();
0
import java.util.Collections; return Collections.emptyList();
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
package org.apache.felix.bundlerepository.impl.metadataparser; import org.apache.felix.bundlerepository.impl.Logger;
0
new char[] {(char)((compression == COMP_JPEG_TTN2)? 1 : 2)}));
0
* Describes a component dependency. They form descriptions of dependencies public interface ComponentDependencyDeclaration {
0
* The Digester EDSL implementation.
0
import org.apache.http.protocol.HttpContext;
0
public abstract LanguageSet merge(LanguageSet other); public LanguageSet merge(final LanguageSet other) { if (other == NO_LANGUAGES) { return this; } else if (other == ANY_LANGUAGE) { return other; } else { final SomeLa...
0
return new Pair<>(low, high);
1
private final String instanceID; * @param instanceID * Accumulo instance ID public AuthenticationTokenSecretManager(String instanceID, long tokenMaxLifetime) { requireNonNull(instanceID); this.instanceID = instanceID; identifier.setInstanceId(instanceID);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListIteratorListIterator.java,v 1.2 2003/04/13 23:26:09 rwaldhoff Exp $ import java.util.ListIterator; import org.apache.commons.collections.itera...
0
ResourceId manifestResourceId = getManifestFileResourceId(request.getStagingSessionToken()); ProxyManifest.Builder proxyManifestBuilder = ProxyManifest.newBuilder() .setManifest(request.getManifest()); proxyManifestBuilder.addLocation(Location.newBuilder() .setName(artifactMeta...
0
* http://www.apache.org/licenses/LICENSE-2.0
0
boolean quote); boolean quote); boolean quote); boolean quote);
0
import org.apache.beam.sdk.annotations.Internal; @Internal
0
/** * Resets the parser. The parser will be ready to start parsing another * HTTP message. */ /** * Fills the internal buffer of the parser with input data from the * given {@link ReadableByteChannel}. * * @param channel the input channel * @return number of bytes 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
MetaDataTableScanner metaDataTableScanner = new MetaDataTableScanner(environment.getInstance(), SecurityConstants.getSystemCredentials(), tableRange, null);
0
* @param requestId the request id public static void updateStageStatus(long requestId, long stageId, HostRoleStatus desiredStatus) { new PredicateBuilder().property(STAGE_STAGE_ID).equals(stageId). and().property(STAGE_REQUEST_ID).equals(requestId).toPredicate();
0
import com.google.common.collect.ImmutableMap; import com.google.common.collect.Sets; /** * The key property ids for a User resource. */ private static Map<Resource.Type, String> keyPropertyIds = ImmutableMap.<Resource.Type, String>builder() .put(Resource.Type.User, USER_USERNAME_PROPERTY_ID) .bu...
0
managementControllerProvider.get().getHostComponents(Collections.singleton(request), true);
0
import java.util.Comparator; /** * Set the comparator. * The indicated class must implement {@link Comparator} */ Class comparator() default Comparator.class;
0
* The class PosixParser provides an implementation of the * @version $Revision$, $Date$ public class PosixParser extends Parser { * is true, then the remaining entries are copied to the list of * information on the bursting algorithm see * <li>if the current <code>arguments</code> entry is not handl...
0
public static final float PRIORITY = 1000; super(name, PRIORITY, ext); super(name, PRIORITY, ext); super(name, PRIORITY, exts); super(name, PRIORITY, exts);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/priv/PrivateIndirect.java,v 1.4 2003/10/05 13:32:13 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/10/05 13:32:13 $ * * Copyright (c) 2001-2003 The Apache Software Foundation. Al...
0
class SideInputContainer { * Create a new {@link SideInputContainer} with the provided views and the provided public static SideInputContainer create( final EvaluationContext context, Collection<PCollectionView<?>> containedViews) { return new SideInputContainer(containedViews, viewByWindows); private ...
0
* Implements {@link ModificationHandler#getObject(Object)}.
0
Copyright 2001,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