Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
? false : m_revision.isActivationTrigger(pkgName);
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
import java.security.Provider; public DOMCanonicalizationMethod(Element cmElem, XMLCryptoContext context, Provider provider) throws MarshalException { super(cmElem, context, provider); * @throws TransformException if an unexpected error occurs while
0
return translate(operator, left, leftKeyed, right, rightKeyed) PCollection<LeftT> left, PCollection<KV<KeyT, LeftT>> leftKeyed, PCollection<RightT> right, PCollection<KV<KeyT, RightT>> rightKeyed);
0
public class ExceptionTest extends AbstractCommonTest {
0
import org.apache.beam.sdk.transforms.ParDo; List<String> words = Arrays.asList(" some input words ", " ", " cool ", " foo", " bar"); PCollection<String> output = p.apply(Create.of(words).withCoder(StringUtf8Coder.of())) .apply(ParDo.of(new ExtractWordsFn())); PAssert.that(output).cont...
0
import org.apache.accumulo.core.security.SystemPermission;
0
if (leadingParts.length > 2) {
0
import org.apache.hc.core5.testing.classic.ClassicTestClient; public class ClassicTestClientAdapter extends ClientPOJOAdapter {
0
* @author <a href="mailto:commons-dev at jakarta.apache.org">Apache Commons Development Team</a>
0
return "(type=" + Constants.getItemName(type) + printIndex() + ")";
0
/** A helper object for creating builder parameters. */ private Parameters parameters; parameters = new Parameters(); builder.configure(parameters builder.configure(parameters builder.configure(parameters.combined().setDefinitionBuilder( XMLConfiguration....
0
import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.conf.AccumuloConfiguration; private Option timeoutOption; // set timeout scanner.setTimeout(getTimeout(cl), TimeUnit.MILLISECONDS); protected long getTimeout(final CommandLine cl) { if (cl.hasOption(timeoutOption.getLongOpt())) { ...
0
TreeSet<String> tableNames = new TreeSet<>(Tables.getNameToIdMap(context.getInstance()).keySet()); String tableInfo = Tables.getPrintableTableInfoFromName(context.getInstance(), tableOrNamespaceName); ExecutorService executor = Executors.newFixedThreadPool(16, new NamingT...
0
import java.lang.reflect.Proxy; import java.util.Objects; /** * Makes sure that the listener is neither {@code null} nor a proxy * * @param <L> Type of {@link SshdEventListener} being validation * @param listener The listener instance * @param prefix Prefix text to be prepended to validati...
0
* A specialized hierarchical configuration class that is able to parse * XML documents. * * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a> * @version $Revision: 1.1 $, $Date: 2004/07/12 12:14:38 $ public class HierarchicalXMLConfiguration extends HierarchicalConfiguration implements BasePathLoa...
0
import java.util.Set; import org.apache.aurora.scheduler.storage.log.ThriftBackfill; public static final String PROD_TIER_NAME = "tier-prod"; public static final TierConfig TIER_CONFIG = new TierConfig(DEV_TIER_NAME, ImmutableMap.of( PROD_TIER_NAME, PREFERRED_TIER, DEV_TIER_NAME, DEV_TIER ...
0
package org.apache.accumulo.hadoop.mapreduce; import org.apache.accumulo.hadoopImpl.mapreduce.lib.InputConfigurator;
0
(BasicSerializableSourceFormat.BoundedSourceSplit<?>) dynamicSplitResult, options));
0
import org.apache.sshd.common.PropertyResolverUtils; maxAuthRequests = PropertyResolverUtils.getIntProperty(session, ServerFactoryManager.MAX_AUTH_REQUESTS, ServerFactoryManager.DEFAULT_MAX_AUTH_REQUESTS); String mths = PropertyResolverUtils.getString(session, ServerFactoryManager.AUTH_METHODS); ...
0
import org.apache.beam.model.fnexecution.v1.BeamFnApi; this.timerIdToTimerSpecMap = new HashMap<>(); ProcessBundleDescriptors.ExecutableProcessBundleDescriptor executableProcessBundleDescriptor = stageBundleFactory.getProcessBundleDescriptor(); BeamFnApi.ProcessBundleDescriptor processBundleDescript...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/BlockingBuffer.java,v 1.2 2003/08/31 17:24:46 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgement may ...
0
AccumuloConfiguration conf = ServerConfiguration.getSiteConfiguration();
0
public Enumeration<?> getElements( Object target ) return new IteratorEnumeration( ( (Collection<?>) target ).iterator() );
0
return this.getClass().getName(); return propertiesMap.get(name); return properties;
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.accumulo.server.metadata; import org.apache.accumulo.core.client.BatchWriter; import org.apache.accumulo.core.dataImpl.KeyExtent; import org.apache.accumulo.core.metadata.schema.Ample; import org.apache.accumulo.server.ServerContext; class TabletMutatorImpl extends TabletMutatorBase implements Ample...
0
* {@link org.apache.beam.sdk.extensions.euphoria.core.client.operator.Join} translation centered * classes.
0
static final String FIELDS_SEPARATOR = ", ";
0
* Creates a new CursorManager object. * @param ctx the BridgeContext associated to this CursorManager
1
if (node.getNodeType() == Node.TEXT_NODE){ String value = node.getNodeValue(); contentHandler.characters(value.toCharArray(), 0, value.length()); } else { try { IncludeXMLConsumer filter = new IncludeXMLConsumer(contentHandler, ...
0
@SuppressWarnings("deprecation")
0
try (AccumuloClient client = createAccumuloClient()) { try (AccumuloClient client = createAccumuloClient()) { try (AccumuloClient client1 = createAccumuloClient()) { try (AccumuloClient client = createAccumuloClient()) { try (AccumuloClient client = createAccumuloClient()) { try (AccumuloClient ...
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 applicabl...
0
System.setProperty("readonlymode.enabled", "true"); System.setProperty("readonlymode.enabled", "false"); // FIXME this was originally 5 seconds, but realistically, on random/slow/virt hosts, there is no way to guarantee this - start < 30000);
0
List<ServerConditionalMutation> okMutations = new ArrayList<>(scml.size()); List<ServerConditionalMutation> deferred = new ArrayList<>();
1
/** /**
0
output("a", 2, 5, 0, 10), output("a", 1, 10, 5, 15), output("b", 1, 10, 5, 15));
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
import com.google.cloud.dataflow.sdk.testing.CoderProperties;
0
import com.google.cloud.dataflow.sdk.coders.StringDelegateCoder; pipeline.getCoderRegistry().registerCoder(URI.class, StringDelegateCoder.of(URI.class));
0
PrerequisiteCheck check = new PrerequisiteCheck(null, null); check = new PrerequisiteCheck(null, null);
0
import org.apache.avalon.framework.service.ServiceManager; import org.apache.avalon.framework.service.Serviceable; * @version CVS $Id: ErrorHandlerHelper.java,v 1.6 2004/07/15 12:49:50 sylvain Exp $ public class ErrorHandlerHelper extends AbstractLogEnabled implements Serviceable { private ServiceManager manager; ...
0
@SuppressWarnings("OctalInteger")
0
/** Test the Nexmark utils. */
0
throw new FOMResourceNotFoundException("Cannot get sitemap service manager", e);
0
/* * Copyright 2002, 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 requi...
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull;
0
public abstract class ServiceComponentHostEvent
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
* * // // PR - unsure whether or not we should support map.size or force usage of the above 'escaped' version assertExpression(jc, "! empty(string)", Boolean.FALSE); /** * test quoting in strings // handle true for the left arg of 'and' // handle true for the left arg of 'or' ...
1
* @since 1.6 * @since 1.6 * @since 1.6 * @since 1.6 * @since 1.6
0
import java.net.URI; import java.net.URISyntaxException; URI uri = new URI(context.getProperties().get("webhdfs.url")); // variable for sourceFile can be passed from front-end // cannot use webhdfs url as webhcat does not support http authentication // using url hdfs://host/sourcefilepat...
0
/* import java.util.Enumeration; public Enumeration getResources(String name);
1
import org.apache.atlas.repository.store.graph.v2.EntityGraphMapper; private final EntityGraphMapper entityGraphMapper; public PatchContext(AtlasGraph graph, AtlasTypeRegistry typeRegistry, GraphBackedSearchIndexer indexer, EntityGraphMapper entityGraphMapper) { this.entityGraphMapper = entityGraphMappe...
0
* Implementation of {@link Expression} for the operation "div".
1
package org.apache.beam.sdk.extensions.euphoria.testing;
0
receive((line, isDir, timestamp) -> { if (isDir) { throw new StreamCorruptedException("Cannot download a directory into a file stream: " + line); } final Path path = new MockPath(line); receiveStream(line, new ScpTargetStreamResolver() { ...
0
import org.apache.ambari.server.stack.upgrade.AddComponentTask; import org.apache.ambari.server.stack.upgrade.orchestrate.UpgradeContext;
0
GANGLIA_CLUSTER_NAME_MAP.put("RESOURCEMANAGER", "HDPResourceManager"); GANGLIA_CLUSTER_NAME_MAP.put("NODEMANAGER", "HDPSlaves"); GANGLIA_CLUSTER_NAME_MAP.put("HISTORYSERVER", "HDPHistoryServer");
0
package org.apache.felix.sigil.common.core.internal.model.osgi; import org.apache.felix.sigil.common.model.AbstractCompoundModelElement; import org.apache.felix.sigil.common.model.InvalidModelException; import org.apache.felix.sigil.common.model.eclipse.ILibraryImport; import org.apache.felix.sigil.common.model.osgi.IB...
0
.withSocketAndRetryTimeout(120000)
0
private byte[] data; private int offset; private int len; public ByteArrayBackedCharSequence(byte[] data, int offset, int len) { this.data = data; this.offset = offset; this.len = len; } public ByteArrayBackedCharSequence(byte[] data) { this(data, 0, data.length); } public By...
1
private final String stepName; String stepName, this.stepName = stepName; MetricsEnvironment.scopedMetricsContainer(container.getMetricsContainer(stepName))) { MetricsEnvironment.scopedMetricsContainer(container.getMetricsContainer(stepName))) {
0
return Collections.unmodifiableCollection( helpOptions() ); } /** * <p>Returns the Options for use by the HelpFormatter.</p> * * @return the List of Options */ List helpOptions() { return new ArrayList( opts );
0
* {@link org.apache.commons.collections4.OrderedBidiMap OrderedBidiMap} and
0
@Path("/assetNameAvailable") public Response assetNameAvailable(@QueryParam("name") String name){ boolean available=assetService.isAssetNameAvailable(name); return Response.ok(available).build(); } @GET
0
connector.setHeaderBufferSize(this.config.getHeaderBufferSize()); connector.setRequestBufferSize(this.config.getRequestBufferSize()); connector.setResponseBufferSize(this.config.getResponseBufferSize());
0
public void testObservers() throws IOException, InterruptedException { testCommand("observers", new Field("synced_observers", Integer.class), new Field("observers", Iterable.class)); } @Test public void testObserverConnectionStatReset() throws IOException, Interr...
0
* of the walk. This constructor uses {@link FileFilterUtils#makeDirectoryOnly(IOFileFilter)} * and {@link FileFilterUtils#makeFileOnly(IOFileFilter)} internally to combine the filters.
0
import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.apache.excalibur.source.Source; * @author <a href="mailto:bluetkemeier@s-und-n.de">Bjrn Ltkemeier</a> * @version CVS $Id: MountNode.java,v 1.2 2003/04/29 10:45:20 cziegeler Exp $ String oldContext = env.getContext(); e...
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
private static long pause(long millis) throws InterruptedException { Thread.sleep(millis); // wait 2 * last time, with +-10% random jitter return (long)(Math.max(millis * 2, 3000) * (.9 + Math.random() / 5)); } long sleepMillis = 100; sleepMillis = pause(sleepMillis); slee...
0
String TAG_FE_POINT_LIGHT = "fePointLight"; String ATTR_BIAS = "bias"; String ATTR_DIVISOR = "divisor"; String ATTR_HREF = "href"; String ATTR_KERNEL_UNIT_LENGTH_X = "kernelUnitLengthX"; String ATTR_KERNEL_UNIT_LENGTH_Y = "kernelUnitLengthY"; String ATTR_ORDER_X = "orderX"; String ATTR_O...
0
/* * $Header: /cvshome/build/ee.foundation/src/java/net/DatagramSocketImplFactory.java,v 1.6 2006/03/14 01:20:23 hargrave Exp $ * * (C) Copyright 2001 Sun Microsystems, Inc. * Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ...
0
// use the effective cluster version here since this command might happen // in the context of an upgrade and we should send the repo ID which matches // the version being send down ClusterVersionEntity effectiveClusterVersion = cluster.getEffectiveClusterVersion(); if (null != effectiveClusterVersi...
0
import org.apache.beam.runners.core.construction.graph.PipelineNode.PTransformNode; PTransformNode transform, private final PTransformNode transform; PTransformNode transform, MetricsContainerImpl metricsContainer = new MetricsContainerImpl(transform.getId());
0
* @return a new unmodifiable iterator
0
package org.apache.sshd.client.subsystem.sftp.impl; import org.apache.sshd.client.subsystem.sftp.SftpClient; import org.apache.sshd.client.subsystem.sftp.SftpFileSystem; import org.apache.sshd.client.subsystem.sftp.SftpFileSystemProvider; import org.apache.sshd.client.subsystem.sftp.SftpPath;
0
import javax.net.ssl.SSLSession; import org.apache.hc.core5.reactor.ssl.TransportSecurityLayer; public class LoggingIOSession implements IOSession, TransportSecurityLayer { public void start( if (session instanceof TransportSecurityLayer) { ((TransportSecurityLayer) session).start(sslContext, ss...
0
import org.apache.beam.vendor.protobuf.v3.com.google.protobuf.ByteString;
0
CacheKeyGenerator.INSTANCE, this.httpCacheInvalidator != null ? this.httpCacheInvalidator : new DefaultCacheInvalidator());
0
import cz.seznam.euphoria.core.client.util.Pair; .output().persist(URI.create("stdout:///?dump-partition-id=false"));
0
import org.apache.batik.dom.svg.XMLBaseSupport; String baseURI = XMLBaseSupport.getCascadedXMLBase(e); String base = XMLBaseSupport.getCascadedXMLBase(ref); g.setAttributeNS(XMLBaseSupport.XML_NAMESPACE_URI,
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 javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathFactory; import org.apache.xml.security.samples.DSNamespaceContext; XPathFactory xpf = XPathFactory.newInstance(); XPath xpath = xpf.newXPath(); xpath.setNamespaceContext(new DSNamespaceContext()); ...
0
import org.apache.http.params.Config; int timeout = Config.getInt(this.params, CoreConnectionPNames.SO_TIMEOUT, 0);
0
return (new Double(0.0)); return (new Integer(0)); return (new Long(0));
0
import org.apache.accumulo.core.util.MetadataTable; Scanner scanner = instance.getConnector(credential.getPrincipal(), CredentialHelper.extractToken(credential)).createScanner(MetadataTable.NAME, BatchWriter bw = conn.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig());
0
hierarchy = new TransformHierarchy();
0
* Copyright 2001-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 applic...
0
.addMockedMethods("getReplicaSystem", "doesFileExist", "getStatus", "getHelper") .createMock(); Status status = Status.newBuilder().setBegin(0).setEnd(0).setInfiniteEnd(true).setClosed(true) .build();
0
package org.apache.hc.core5.http.impl.nio; import org.apache.hc.core5.http.ContentLengthStrategy; import org.apache.hc.core5.http.nio.ContentDecoder; import org.apache.hc.core5.http.nio.ContentEncoder; import org.apache.hc.core5.http.nio.NHttpConnection; import org.apache.hc.core5.http.nio.SessionInputBuffer; import or...
1
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringUtils; if (!entityHeaderExists(opEntities, header)) { opEntities.add(header); } private boolean entityHeaderExists(List<AtlasEntityHeader> entityHeaders, AtlasEntityHeader newEntityHeader) { ...
0
else { throw new RuntimeException(e); }
0
Assert.assertFalse(ver1.equals(Float.valueOf(1.1f)));
0
if (log.isDebugEnabled()) { log.debug("Can I resolve " + element.getTagName() + "?"); }
0
rbk = new ReduceByKey<InputT, Byte, V, OutputT, W>( getName() + "::ReduceByKey", getFlow(), input, getKeyExtractor(), getKeyType(), valueExtractor, valueType, windowing, euphoriaWindowing, ...
0
package org.apache.felix.dependencymanager.impl;
0
* {@inheritDoc} * {@inheritDoc} * {@inheritDoc}
0