Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import javax.xml.crypto.dsig.XMLSignature; String namespace = element.getNamespaceURI(); if (tag == null || namespace == null) { if (tag.equals("KeyInfo") && XMLSignature.XMLNS.equals(namespace)) { throw new MarshalException("invalid KeyInfo tag: " + namespace + ":" + tag);
0
package org.apache.bcel.generic; super(org.apache.bcel.Const.FSUB);
1
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
0
import java.util.List; private List<String> configTypes; public StackServiceResponse(String serviceName, String userName, String comments, String serviceVersion, List<String> types) { configTypes = types; public List<String> getConfigTypes() { return configTypes; }
0
import com.google.common.collect.Multimap; import com.google.common.collect.Multimaps; /** * A utility method that returns a multi-map of tasks keyed by JobKey. * @param tasks A list of tasks to be keyed by map * @return A multi-map of tasks keyed by job key. */ public static Multimap<JobKey, ScheduledT...
0
comparator = (AbstractFileComparator) SizeFileComparator.SIZE_COMPARATOR;
0
this.selector.select(timeout); return !this.selector.selectedKeys().isEmpty();
0
Range deleteRange = new Range(TabletsSection.getRow(extent.getTableId(), start), false, TabletsSection.getRow(extent.getTableId(), extent.getEndRow()), true); Range scanRange = new Range(TabletsSection.getRow(range.getTableId(), start), false, stopRow, false);
0
RouteSpecificPool rospl = new RouteSpecificPool(route);
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
0
* Takes a list of files and archives them into Accumulo keyed on hashes of the files. See * docs/examples/README.filedata for instructions. public static final ByteSequence CHUNK_CF_BS = new ArrayByteSequence(CHUNK_CF.getBytes(), 0, CHUNK_CF.getLength()); public static final ByteSequence REFS_CF_BS = new Ar...
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
* * Noteworthy is the fact that the ftp routines in some web browsers don't * work as well as this. They can't, since they have no way of knowing the * server's time zone. Depending on the local machine's position relative * to GMT and the time of day, the browsers may decide that a timestamp * would be in...
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 $Revision$ $Date$
0
* @author Rodney Waldhoff * @version $Revision: 1.13 $ $Date: 2004/02/28 12:18:17 $
0
Mockito.when(this.credentialsProvider.getCredentials(Mockito.<AuthScope>any(), Mockito.<HttpContext>any())).thenReturn(credentials); Assert.assertTrue(this.httpAuthenticator.prepareAuthResponse(host, ChallengeType.TARGET, response, authStrateg...
0
this.buffer.compact();
0
* @version $Id$
0
/** * */ private static final long serialVersionUID = 1L; /** * Constructor InvalidSignatureValueException * */ public InvalidSignatureValueException() { super(); } /** * Constructor InvalidSignatureValueException * * @param msgID */ publ...
0
Engine.VarCollector collector = jxlt.getEngine().varCollector();
0
import java.util.Iterator; import org.apache.atlas.repository.graphdb.AtlasEdge; import org.apache.atlas.repository.graphdb.AtlasGraph; import org.apache.atlas.repository.graphdb.AtlasVertex; new GraphBackedSearchIndexer(); public void tearDown() { AtlasGraphProvider.cleanup(); AtlasVertex ...
1
StringBuilder buffer = new StringBuilder();
0
getDataSourceConfiguration().populateDisplayData(builder); getDataSourceConfiguration().populateDisplayData(builder);
0
protected byte[] doDecoding(final byte[] bytes) { protected byte[] doEncoding(final byte[] bytes) { final RFC1522TestCodec testcodec = new RFC1522TestCodec(); private void assertExpectedDecoderException(final String s) throws Exception { final RFC1522TestCodec testcodec = new RFC1522...
1
import java.util.Map; import java.util.concurrent.ConcurrentMap; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.google.inject.Inject; config.save();
0
@Override @Override @Override @Override @Override @Override @Override
0
public Service setServiceProperties(Dictionary serviceProperties);
0
import org.apache.hc.core5.http.Methods; new BasicRequestProducer(Methods.POST, target, "/stuff", new BasicRequestProducer(Methods.POST, target, "/other-stuff", new BasicRequestProducer(Methods.POST, target, "/more-stuff", new BasicRequestProducer(Methods....
0
import javax.inject.Qualifier; @Qualifier
0
package com.google.cloud.dataflow.sdk.runners.inprocess; import com.google.cloud.dataflow.sdk.runners.inprocess.InMemoryWatermarkManager.FiredTimers; import com.google.cloud.dataflow.sdk.runners.inprocess.InMemoryWatermarkManager.TimerUpdate; import com.google.cloud.dataflow.sdk.runners.inprocess.InMemoryWatermarkManag...
0
private final byte[] data = new byte[32];
0
import org.apache.accumulo.core.client.impl.ClientContext; public static void assertNoDanglingFateLocks(ClientContext context, AccumuloCluster cluster) { FateStatus fateStatus = getFateStatus(context, cluster); private static FateStatus getFateStatus(ClientContext context, AccumuloCluster cluster) { IZooR...
0
@Override public double getTotalParallelism() { return this.endIndex - this.startIndex; } public double getRemainingParallelism() { return tracker.getStopPosition() - nextIndex; } @Override
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributeIterator.java,v 1.10 2003/10/09 21:31:41 rdonkin Exp $ * $Revision: 1.10 $ * $Date: 2003/10/09 21:31:41 $ * any, must include the following acknowledgement: *...
0
package org.apache.felix.gogo.runtime; import org.apache.felix.gogo.runtime.Tokenizer.Type;
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 org.apache.ambari.server.controller.ConfigurationRequest; import org.apache.ambari.server.controller.spi.NoSuchParentResourceException; import org.apache.ambari.server.controller.spi.NoSuchResourceException; import org.apache.ambari.server.controller.spi.Predicate; import org.apache.ambari.server.controller.spi....
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 no Transforms then just default to an Inclusive without comments transform AlgorithmSuiteSecurityEvent algorithmSuiteSecurityEvent = new AlgorithmSuiteSecurityEvent(); algorithmSuiteSecurityEvent.setAlgorithmURI(XMLSecurityConstants.NS_C14N_OMIT_COMMENTS); algorithmSui...
0
null, "", Byte.valueOf((byte)1), Short.valueOf((short)1), Integer.valueOf(1), Long.valueOf(1L), Float.valueOf(1), private final Object[] invalidValues = { "12ab", "abcd", "-12ab", }; if (value == null || value == "") {
0
NodeKeyResolver<ImmutableNode> resolver = NodeStructureHelper.createResolverMock(); NodeStructureHelper.expectResolveKeyForQueries(resolver); EasyMock.replay(resolver); return resolver; NodeKeyResolver<ImmutableNode> resolverMock = NodeStructureHel...
0
public void testWriteZeroLengthArrayWithOffset() {
0
import org.apache.accumulo.core.client.Accumulo; final AccumuloClient client = Accumulo.newClient().from(getClientProperties()).build();
0
@Test(timeout=30*1000)
0
package org.apache.commons.digester3.annotations.rules;
1
package org.apache.http.protocol;
0
String ROLE = JSPEngine.class.getName(); byte[] executeJSP(String url, HttpServletRequest request, HttpServletResponse response, ServletContext context) throws IOException, ServletException, Exception;
0
package org.apache.accumulo.examples.simple.filedata; import org.apache.accumulo.examples.simple.filedata.ChunkInputStream; import org.apache.accumulo.examples.simple.filedata.FileDataIngest;
0
Constants.METADATA_LOCK_COLUMN.put(m, new Value(zooLock.getLockID().serialize(ZooUtil.getRoot(HdfsZooInstance.getInstance()) + "/").getBytes())); Constants.METADATA_TIME_COLUMN.put(m, new Value(time.getBytes())); Constants.METADATA_FLUSH_COLUMN.put(m, new Value((flushId + "").getBytes())); Constants...
0
import org.apache.avalon.framework.container.ContainerUtil; * @version CVS $Id$ final Program p = new JavascriptProgram(sourceFile, clazz, dependecies); ContainerUtil.enableLogging(p, this.getLogger()); return p;
0
private final LRUMap problemReports = new LRUMap(1000);
0
= "separatorUsedInOutput"; @Override public INIBuilderParametersImpl setSeparatorUsedInOutput(String separator) { storeProperty(PROP_SEPARATOR_USED_IN_INI_OUTPUT, separator); return this; }
0
* * * * List<IteratorSetting> iterators = split.getIterators();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/ShortTest.java,v 1.8 2003/05/28 04:28:00 dgraham Exp $ * $Revision: 1.8 $ * $Date: 2003/05/28 04:28:00 $ * @version $Revision: 1.8 $ $Date: 2003/05/28 04:28:00 $ validator.set...
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
executionContext.getOrCreateStepContext(stepName, stepName, null),
0
package org.apache.atlas.typesystem.exception; import org.apache.atlas.AtlasException;
1
import org.apache.beam.sdk.runners.DirectPipelineRunner; @Default.Class(DirectPipelineRunner.class)
0
import org.junit.FixMethodOrder; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING)
0
package org.apache.commons.beanutils2.converters;
1
public Class<?>[] getExceptions() { Class<?>[] cs = new Class[1 + ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION.length];
0
import static org.junit.Assert.assertNotEquals; import java.io.File; import org.apache.jute.Record; import org.apache.zookeeper.ZooDefs; import org.apache.zookeeper.server.persistence.FileTxnSnapLog; import org.apache.zookeeper.test.ClientBase; import org.apache.zookeeper.txn.SetDataTxn; import org.apache.zookeeper.tx...
0
new Object[] {(int) refChild.getNodeType(), new Object[] {(int) oldChild.getNodeType(), new Object[] {(int) oldChild.getNodeType(), new Object[] {(int) getNodeType(), new Object[] {(int) getNodeT...
0
private final Map<Long, List<ACL>> longKeyMap = private final Map<List<ACL>, Long> aclKeyMap = private long aclIndex = 0; public Set<String> getEphemerals(long sessionId) { int getAclSize() { return longKeyMap.size(); } result += value.getApproximateDataSize(); ...
0
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
import org.apache.accumulo.core.clientImpl.mapreduce.lib.FileOutputConfigurator;
0
ClassType(TypeSystem typeSystem, String name, ImmutableList<String> superTypes, AttributeInfo... fields) throw new AtlasException(String.format("Id %s is not valid for class %s", id, getName())); public ITypedReferenceableInstance convert(Object val, Multiplicity m) throws AtlasException { ...
0
import com.google.inject.Inject;
0
* * * * This Tag creates a result set object based on its body content via child row tags. * /** } //------------------------------------------------------------------------- //-------------------------------------------------------------------------
1
import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.clientImpl.Tables; import org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException; import org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException; import org.apache.accumulo.core.dataImpl.KeyExtent; import org....
0
import org.apache.aurora.scheduler.updater.JobUpdateController.JobUpdatingException; import static org.apache.aurora.gen.ResponseCode.JOB_UPDATING_ERROR; jobUpdateController.assertNotUpdating(job.getKey()); } catch (JobUpdatingException e) { return error(JOB_UPDATING_ERROR, e); jobUpdateCo...
0
import org.apache.cocoon.portal.util.AbstractComponent;
0
import com.google.common.collect.ListMultimap; updateServiceStates(cluster, changedServices, changedComponents, changedHosts, ignoredHosts); if (stackInfo == null) { } if (extensionInfo == null) { } if (stackInfo == null) { } if (extensionInfo == null) { } if (stackInfo == null)...
0
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/TagSupport.java,v 1.22 2003/01/24 19:03:24 morgand Exp $ * $Revision: 1.22 $ * $Date: 2003/01/24 19:03:24 $ * $Id: TagSupport.java,v 1.22 2003/01/24 19:03:24 morgand Exp $ * @version $Rev...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ListUtils.java,v 1.10 2002/08/18 20:11:37 pjack Exp $ * $Revision: 1.10 $ * $Date: 2002/08/18 20:11:37 $
0
// We have to ensure that the protocol communication is in ASCII // but we use ISO-8859-1 just in case 8-bit characters cross // the wire. private static final String __DEFAULT_ENCODING = "ISO-8859-1"; new BufferedReader(new InputStreamReader(getInputStream(), ...
0
case Artifact: resourceDefinition = new SimpleResourceDefinition(Resource.Type.Artifact, "artifact", "artifacts"); break;
0
import org.apache.accumulo.core.conf.Property; static long pause(long millis, long maxSleep) throws InterruptedException { return (long) (Math.min(millis * 2, maxSleep) * (.9 + Math.random() / 5)); final long maxSleepTime = context.getConfiguration().getTimeInMillis(Property.GENERAL_MAX_SCANNER_RETRY_PERIOD);...
0
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
0
import com.twitter.aurora.gen.StartUpdateResult; Response resp = thrift.startUpdate(job, SESSION); StartUpdateResult result = resp.getResult().getStartUpdateResult(); assertEquals(token, result.getUpdateToken()); assertTrue(result.isRollingUpdateRequired()); Response resp = thrift.startUpdate(job, S...
0
SparkPipelineOptions options = rc.getPipelineOptions().as(SparkPipelineOptions.class); Long maxRecordsPerBatch = options.getMaxRecordsPerBatch(); SourceDStream<T, CheckpointMarkT> sourceDStream = new SourceDStream<>(jssc.ssc(), source, rc); // if max records per batch was set by the user. if (maxRec...
0
@XmlAttribute(name="family") private String family; * @return the os family public String getFamily() { return family;
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
private X509Certificate certificate = null;
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
throw new IllegalArgumentException( "Coder must be deterministic to perform this sketch." + e.getMessage(), e); * Returns an {@link ApproximateDistinctFn} combiner with a new sparse representation's * precision {@code sp}.
1
} catch (KeeperException.NoNodeException e) {
0
* Adds a file name extension mapping.
0
public Supported2() { super(); } + ",attrsBits=0x" + Integer.toHexString(supportedAttributeBits) + ",openFlags=0x" + Integer.toHexString(supportedOpenFlags) + ",accessMask=0x" + Integer.toHexString(supportedAccessMask) + ",maxR...
0
"src/test/resources" + fs + "ie" + fs + "baltimore" + fs + "merlin-examples",
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 java.util.Comparator; import java.util.function.Function; Collections.unmodifiableMap( GenericUtils.toSortedMap(SIGNALS, Signal::name, Function.identity(), String.CASE_INSENSITIVE_ORDER)); Collections.unmodifiableMap( GenericUtils.toSortedMap(SIGNAL...
0
import javax.annotation.Nullable; private final TimerRegistry<TimerKey<K>> timerRegistry; TimerRegistry<TimerKey<K>> timerRegistry) { public TimerInternals timerInternalsForKey(@Nullable K key) { keyedTimerData.getKeyBytes(), final TimerKey<K> timerKey = new TimerKey<>( key, ...
0
/* * Copyright 2013 Twitter, 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 t...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(ADKerberosOperationHandler.class);
1
throws IOException, GeneralSecurityException {
0
// sync: send data to datanodes sync = logFile.getClass().getMethod("sync"); // hsych: send data to datanodes and sync the data to disk
1
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger logger = LoggerFactory
0