Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.apache.felix.serializer.serializer.json;
0
import org.apache.felix.dm.AspectComponent; public class AspectServiceImpl extends FilterComponent<AspectComponent> implements AspectComponent { private volatile String m_add; private volatile String m_change; private volatile String m_remove; private volatile String m_swap; private volatile int m_ranking; pri...
0
private final Collection<E> collection;
0
import org.apache.xml.security.utils.Constants; import org.apache.xml.security.utils.SignatureElementProxy; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.w3c.dom.Text;
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private final Logger log = LoggerFactory.getLogger(getClass());
0
ImmutableMap.Builder contextBuilder = new ImmutableMap.Builder<>();
0
/* * Copyright (C) 2015 Google Inc. * * 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 ...
0
package org.apache.batik.bridge;
0
* @version $Revision$ $Date$
0
private ByteArrayOutputStream outputStream; private InputStream contentInputStream;
0
import junit.framework.Assert;
0
/* * Copyright (c) OSGi Alliance (2010, 2013). All Rights Reserved. * * 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 re...
0
* @version $Id: VMSFTPEntryParser.java,v 1.13 2004/01/09 16:35:36 dfs Exp $ int next; next = 0; remaining = files.length - next; System.arraycopy(files, next, result, 0, result.length); next+=quantityRequested; return (next < files.length && files.len...
0
public class Http2AlpnTest { throw ex.getCause() instanceof HttpException ? (Exception) ex.getCause() : ex;
0
* @since 1.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 2.0 * @since 1.2 * @since 1.2 * @since 1.2 * @since 1.2 * @since 1.2 ...
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 ...
1
Transform transform = new Transform(this.doc, transformURI); Transform transform = new Transform(this.doc, transformURI, contextElement); Transform transform = new Transform(this.doc, transformURI, contextNodes);
0
} catch (final IOException | HttpException ex) {
0
this.spi = spi; try { spi = TransformService.getInstance(algorithm, "DOM"); } catch (NoSuchAlgorithmException e1) { try { spi = TransformService.getInstance(algorithm, "DOM", provider); } catch (NoSuchAlgorithmException e2) { th...
1
* * @param executorService the {@code ExecutorService} instance used to run JDBC invocations concurrently. * @param executorService the {@code ExecutorService} instance used to run JDBC invocations concurrently. * @param executorService the {@code ExecutorService} instance used to run JDBC invocatio...
0
import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.transforms.DoFn.MultiOutputReceiver; private String mockElement; private Instant mockTimestamp; @Mock private OutputReceiver<String> mockOutputReceiver; @Mock private MultiOutputReceiver mockMultiOutputReceiver; mockElement = ne...
0
import org.apache.ambari.server.ldap.LdapModule; Injector injector = Guice.createInjector(new ControllerModule(), new AuditLoggerModule(), new CleanupModule(), new LdapModule());
0
ComponentMetadata.CONSTRUCTOR_MARKER.equals(componentMetadata.getActivate()) ? null : componentMetadata.getActivate(), // special constructor handling with activation fields and/or constructor injection if ( componentMetadata.getActivationFields() != null || ComponentMetadata.CO...
0
import org.apache.ibatis.migration.JavaMigrationLoader; import org.apache.ibatis.migration.MigrationLoader; .add(MigrationMapper.class) public static class MigrationManagerModule extends PrivateModule { private static final String MIGRATION_PACKAGE = "org.apache.aurora.scheduler.storage.db.migratio...
0
if ( kont != null ) return (kont.interpreterMatches(interpreterId)) ? kont : null; return null;
0
import java.beans.PropertyDescriptor; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; imp...
0
Closeable closer = builder() closer.addCloseFutureListener(future -> clearAttributes()); return closer;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/observed/Attic/ObservedCollection.java,v 1.4 2003/09/07 10:33:32 scolebourne Exp $ * @version $Revision: 1.4 $ $Date: 2003/09/07 10:33:32 $ this.handler.init(this, coll);
0
log.info("table {} ({}) unlocked for {}", tableId, Long.toHexString(tid),
0
return new OutputFormatBuilderImpl<>();
0
hostComponentNames.put(request.getClusterName(), new HashMap<>()); request.getServiceName(), new HashMap<>()); .get(request.getServiceName()).put(request.getComponentName(), new HashSet<>()); includeProps ? config.getProperties() : new HashMap<>(), include...
0
/** * Returns true if this Rable get's it's contents by calling * primitivePaint on the associated <tt>GraphicsNode</tt> or * false if it uses paint. */ public boolean getUsePrimitivePaint(); /** * Set to true if this Rable should get it's contents by calling * primitivePaint...
0
package org.apache.beam.sdk.extensions.gcp.util;
0
package org.apache.felix.service.command;
0
/** A {@link BigEndianShortCoder} encodes {@link Short Shorts} in 4 bytes, big-endian. */ public Short decode(InputStream inStream) throws IOException, CoderException { protected long getEncodedElementByteSize(Short value) throws Exception {
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
import org.apache.cocoon.portal.services.LinkService;
0
if (k % 1000 == 0) expected = k / 1000; // end key is inclusive else expected = k / 1000 + 1;
1
final static int ASPECTS_PER_SERVICE = 10;
0
= CSSUtilities.convertColorInterpolationFilters(filterElement);
0
import org.apache.beam.sdk.transforms.display.DisplayData; public void populateDisplayData(DisplayData.Builder builder) { super.populateDisplayData(builder); builder .addIfNotNull("filePattern", filepattern) .addIfNotDefault("validation", validate, true); } @Overri...
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
import java.util.TreeMap; TreeMap<String, TopologyCluster> topologyUpdates = new TreeMap<>(); public TreeMap<String, TopologyCluster> createUpdateFromDeleteMetaData(DeleteHostComponentStatusMetaData metaData) { TreeMap<String, TopologyCluster> topologyUpdates = new TreeMap<>(); .setServiceName(hostC...
1
import org.apache.felix.scrplugin.annotations.ScannedAnnotation;
0
import org.apache.accumulo.test.functional.ConfigurableMacBase; public class ProxyDurabilityIT extends ConfigurableMacBase {
0
import com.google.inject.Singleton; @Singleton @UpgradeCheck(group = UpgradeCheckGroup.NAMENODE_HA, order = 2.0f)
0
/** {@code BeamSqlExpression} for {@code <=} operation. */ || (leftValue != null && rightValue != null && leftValue.floatValue() <= (rightValue).floatValue());
0
result = Integer.valueOf( map.size() );
0
private static final char ESCAPE_CHAR = '\\'; while (stopDelim > 0 && val.charAt(stopDelim - 1) == ESCAPE_CHAR) { stopDelim = val.indexOf(DELIM_STOP, stopDelim + 1); } // Remove escape characters preceding {, } and \ int escape = val.indexOf(ESCAPE_CHAR); ...
0
inputPCollection.apply(transformName, ParDo.of(new InputToKvDoFn<>(keyExtractor)));
0
public static <E> SynchronizedSortedBag<E> synchronizedSortedBag(final SortedBag<E> bag) { protected SynchronizedSortedBag(final SortedBag<E> bag) { protected SynchronizedSortedBag(final Bag<E> bag, final Object lock) {
0
import org.apache.ambari.api.controller.utilities.PropertyHelper; resourceProviderProperties.add(PropertyHelper.getPropertyId("p1", "c1")); resourceProviderProperties.add(PropertyHelper.getPropertyId("p2", "c1")); resourceProviderProperties.add(PropertyHelper.getPropertyId("p3", "c1")); resourceProvider...
0
@Ignore //TODO Should be rewritten after actual configs calculate workflow change. @Ignore //TODO Should be rewritten after stale configs calculate workflow change. @Ignore //TODO Should be rewritten after stale configs calculate workflow change.
0
@XmlElement(name = "increment-step") @JsonProperty("increment_step") private String incrementStep; public String getIncrementStep() { return incrementStep; } public void setIncrementStep(String incrementStep) { this.incrementStep = incrementStep; } if (incrementStep != null ? !incrementStep...
0
private CommandResult commandResult; private CommandResult cleanUpCommandResult; public CommandResult getCommandResult() { return commandResult; public void setCommandResult(CommandResult commandResult) { this.commandResult = commandResult; public CommandResult getCleanUpCommandResult() { return c...
0
List<byte[]> auths = new ArrayList<>(conn.securityOperations().getUserAuthorizations(userName).getAuthorizations());
1
this.authenticator.addAuthResponse(connect, this.proxyAuthState, context); if (this.authenticator.isChallenged(proxy, ChallengeType.PROXY, response, this.proxyAuthState, context)) { if (this.authenticator.prepareAuthResponse(proxy, ChallengeType.PROXY, response,
0
final Deprecated c = (Deprecated) clone();
1
public void testGetContent() throws Exception { final FileObject file = resolveFile1Txt(); assertTrue(file.exists()); final FileContent content = file.getContent(); assertNotNull(content); } public void testGetContentInfo() throws Exception { final FileObject...
0
import com.beust.jcommander.Parameter; @Parameter(names = "--testId", required = true) @Parameter(names = "--action", required = true, description = "one of 'setup', 'teardown' or 'client'") @Parameter(names = "--count", description = "number of tablet servers", required = true) int numTabletServers...
0
import org.apache.felix.gogo.commands.Command; @Command(scope = "features", name = "refreshUrl", description = "Reload the repositories to obtain a fresh list of features.")
0
HttpResponse connected = conn.receiveResponseHeader(); HttpResponse rsp = conn.receiveResponseHeader();
0
* Calls a "set top" method on the top (child) object, passing the (top-1) (parent) object as an argument. * * @param methodName Method name of the "set parent" method to call */ public SetTopBuilder setTop( String methodName ) { if ( methodName == null || methodName.length() == 0 ) ...
0
for (int i = 0; i < eventNamesSVG11.length; i++) { animationEventNames11.add(eventNamesSVG11[i]); } for (int i = 0; i < eventNamesSVG12.length; i++) { animationEventNames12.add(eventNamesSVG12[i]); }
0
import org.apache.accumulo.server.fs.VolumeManager; public Repo<Master> call(long tid, Master master) throws Exception { VolumeManager fs = master.getFileSystem(); TabletOperations.createTabletDirectory(fs, tableInfo.tableId, null); public void undo(long tid, Master master) throws Exception { VolumeMana...
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
* Copyright 2001-2006 The Apache Software Foundation
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
return unescape(doSubstVars(val, currentKey, cycleMap, configProps, callback)); } private static String doSubstVars(String val, String currentKey, Map<String,String> cycleMap, Map<String,String> con...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/SuiteTag.java,v 1.3 2003/10/09 21:21:22 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/09 21:21:22 $ * any, must include the following acknowledgement: * ...
0
import org.apache.commons.jexl2.parser.ASTNumberLiteral; Constructor<?> ctor = uberspect.getConstructor(namespace, args, node); for (int c = 2, size = node.jjtGetNumChildren(); c < size; c += 2) { throw new JexlException(left, "illegal assignment form 0"); for (; v <= c;...
0
import org.apache.hc.core5.http.HttpConnection;
0
package org.apache.commons.vfs2;
1
import org.apache.beam.runners.spark.SparkRunner; opts.setRunner(SparkRunner.class); opts.setRunner(SparkRunner.class); opts.setRunner(SparkRunner.class);
0
propsToBeans = new HashMap<>(); new ArrayList<>(beans.size());
0
* @version $Revision: 1.7 $ $Date: 2004/05/12 22:20:54 $ try { getList().listIterator(-1); } catch (IndexOutOfBoundsException ex) {} resetFull(); try { getList().listIterator(getList().size() + 1); } catch (IndexOutOfBoundsException ex) {} resetFu...
0
package org.apache.commons.net;
0
dto.parameter = (r.getParamterIndex() == -1 ? 0 : r.getParamterIndex());
0
package org.apache.hadoop.metadata.typesystem.types; if (reverseAttributeName != null ? !reverseAttributeName.equals(that.reverseAttributeName) : that .reverseAttributeName != null)
0
import com.google.common.util.concurrent.MoreExecutors; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; private static final ExecutorService executor = MoreExecutors.getExitingExecutorService( (ThreadPoolExecutor) Executors.newFixedThreadPool(100), 10, TimeUnit.SECONDS);
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.apache.accumulo.core.spi.common.Stats; public class Stat implements Stats { long min; long max; long sum; clear(); min = Math.min(min, stat); max = Math.max(max, stat); sum += stat; mean.increment(stat); @Override public long min() { return num() == 0 ? 0L : min; @Override...
0
import org.apache.cocoon.components.flow.WebContinuation;
0
/** * @since 6.0 */
0
* @version CVS $Id: JDBCTypeConversions.java,v 1.5 2003/09/24 21:54:49 cziegeler Exp $ length = anyFile.getSize(); length = anyFile.getSize();
0
import org.apache.ambari.server.controller.metrics.timeline.cache.TimelineMetricCacheProvider; TimelineMetricCacheProvider cacheProvider, cacheProvider,
0
* @param entityType name of a type which is unique Preconditions.checkNotNull(entityType, "Entity type cannot be null"); } catch (NullPointerException e) { LOG.error("Entity type cannot be null", e); throw new WebApplicationException( Servlets.getErr...
0
import org.apache.felix.scr.impl.inject.LifecycleMethod; import org.apache.felix.scr.impl.inject.ComponentMethods; import org.apache.felix.scr.impl.inject.MethodResult; LifecycleMethod modifiedMethod = getComponentMethods().getModifiedMethod();
0
import org.apache.cocoon.components.container.ComponentLocatorImpl; * @version CVS $Id: ComponentsSelector.java,v 1.11 2004/07/14 19:39:09 cziegeler Exp $ /** * Give access to the parent selector - if any public void setParentLocator(ComponentLocatorImpl locator)
0
protected ViewEntity createViewDefinition(ViewConfig viewConfig, Configuration ambariConfig, protected ViewInstanceEntity createViewInstanceDefinition(ViewEntity viewDefinition, InstanceConfig instanceConfig)
0
* * * * *
0
import org.apache.beam.sdk.transforms.DoFn; .apply(ParDo.of(new DoFn<Long, String>() { @ProcessElement
0
* Defines the content of the {@code User-Agent} header. * Defines the content of the {@code Server} header. * Defines whether responses with an invalid {@code Transfer-Encoding}
0
import org.apache.accumulo.server.cli.ClientOpts;
0
protected void useThread(Thread thread, XMLOutput output) throws InterruptedException { protected void useThreadGroup(List threadGroup, XMLOutput output) throws InterruptedException {
0
* @version $Id$
0
public PCollection<Row> buildIOReader(PBegin begin) { begin public POutput buildIOWriter(PCollection<Row> input) {
0
/* * Copyright (c) OSGi Alliance (2016). All Rights Reserved. * * 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
return ( (matches(rowMatcher, rowMatcher == null ? null : key.getRowData())) || (matches(colfMatcher, colfMatcher == null ? null : key.getColumnFamilyData())) || (matches(colqMatcher, colqMatcher == null ? null : key.getColumnQualifierData())) || (matches(valueMatcher, ...
0
* */ private static final long serialVersionUID = 1L; /**
0