Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @deprecated use {@link HttpAsyncRequestExecutor} and {@link HttpAsyncRequester}
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/map/TestUnmodifiableMap.java,v 1.5 2003/12/01 22:34:54 scolebourne Exp $ * @version $Revision: 1.5 $ $Date: 2003/12/01 22:34:54 $ public class TestUnmodifiableMap extends Abstract...
0
import org.apache.beam.sdk.values.TypeDescriptor; public interface TypeDescriptorAware<T> extends Serializable { * @return {@link TypeDescriptor} associated with this object TypeDescriptor<T> getTypeDescriptor();
0
import org.apache.xml.security.utils.XMLUtils; Base64OutputStream base64EncoderStream = null; if (XMLUtils.isIgnoreLineBreaks()) { base64EncoderStream = new Base64OutputStream(characterEventGeneratorOutputStream, true, 0, null); } else { ...
0
/* * Copyright 2000-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 ...
0
* A quicklinks profile is essentially a set of quick link filters defined on three levels: * <p>For each link, filters are evaluated bottom up: component level filters take priority to service level filters * and service level filters take priority to global filters.</p> * <p>When a quick link profile is set in Amb...
0
private final boolean isFile; this.isFile=false; this.isFile=true; public boolean isFile(){ return isFile; }
0
import org.apache.beam.runners.spark.translation.streaming.utils.SparkTestPipelineOptions; public final SparkTestPipelineOptions pipelineOptions = new SparkTestPipelineOptions();
0
sb.append("User, username=").append(userName);
0
if ( pattern.equals("/") ) { this.patterns = new String[] {"/", "/*"}; } else { this.patterns = new String[] {pattern, pattern + "/*"}; }
0
import org.apache.sshd.server.auth.pubkey.AcceptAllPublickeyAuthenticator;
0
void dumpState(final StringBuilder buf) { buf.append("requestState=").append(requestState) .append(", responseState=").append(responseState) .append(", responseCommitted=").append(requestCommitted) .append(", keepAlive=").append(keepAlive) .app...
0
* $HeadURL$ * $Revision$ * $Date$ * {@link HttpParams} implementation that delegates resolution of a parameter * to the given default {@link HttpParams} instance if the parameter is not * present in the local one. The state of the local collection can be mutated, * whereas the default collection is treated as r...
0
* @version CVS $Id: PortalManagerImpl.java,v 1.3 2003/07/03 08:27:47 cziegeler Exp $ * @see PortalManager#showPortal(ContentHandler, Parameters)
0
package org.apache.bcel.generic; super(org.apache.bcel.Const.DUP_X2);
1
import java.util.NoSuchElementException; @Test public void testAccumulateExceptionOnNullValues() { assertNull("Unexpected null/null result", GenericUtils.accumulateException(null, null)); Throwable expected=new NoSuchMethodException(getClass().getName() + "#" + getCurrentTestName()); ...
0
package org.apache.xml.security.c14n.implementations; import junit.framework.Test; import junit.framework.TestSuite; public class AllTests { public static Test suite() { TestSuite suite = new TestSuite( "Test for org.apache.xml.security.c14n.implementations"); //$JUnit-BEGIN$ suite.addTest(NameSpaceSymbTa...
0
import com.google.common.collect.ImmutableMap; import com.google.common.collect.Sets; /** * The key property ids for a Feed resource. */ private static Map<Resource.Type, String> keyPropertyIds = ImmutableMap.<Resource.Type, String>builder() .put(Resource.Type.DRFeed, FEED_NAME_PROPERTY_ID) .buil...
0
import cz.seznam.euphoria.core.client.dataset.HashPartitioner; import cz.seznam.euphoria.flink.Utils; import cz.seznam.euphoria.flink.functions.PartitionerWrapper; DataSet<WindowedElement<?, ?, Pair>> reduced; reduced = tuples.groupBy(new TypedKeySelector<>()) // apply custom partitioner if different from ...
0
public class XMLSecurityEventReaderTest extends Assert {
0
if (Utils.secureValidation(xc)) {
0
import java.util.concurrent.Future; final Future<ListenerEndpoint> future = listen(new InetSocketAddress(0)); final ListenerEndpoint listener = future.get();
0
expect(userDAO.findAll()).andReturn(Collections.<UserEntity>emptyList()).anyTimes(); expect(userDAO.findAll()).andReturn(Collections.<UserEntity>emptyList()).anyTimes();
0
* @param opcode opcode of instruction * @param target Target instruction to branch to
0
import org.apache.beam.model.pipeline.v1.RunnerApi.PTransform; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(GreedyPCollectionFusers.class); LOG.debug( "Unknown {} {} will not fuse into an existing {}", PTransform.class.getSimpl...
0
import org.apache.accumulo.server.security.SystemCredentials; MetadataTableUtil.moveMetaDeleteMarkers(instance, SystemCredentials.get().getAsThrift()); return instance.getConnector(SystemCredentials.get().getPrincipal(), SystemCredentials.get().getToken()); TCredentials systemAuths = SystemCredent...
1
import org.apache.beam.sdk.PipelineRunner;
0
import org.apache.ambari.server.DuplicateResourceException; try { clusters.mapHostToCluster(h1, c1); fail("Expected exception for duplicate"); } catch (DuplicateResourceException e) { // expected }
0
private static final String CATEGORY = "Web Console"; public String getCategory() { return CATEGORY; }
0
* @throws SQLException - if a database access error occurs
0
/** * Inserts 10K rows (50K entries) into accumulo with each row having 5 entries using an OutputFormat. */ System.out.println("Usage: bin/tool.sh " + this.getClass().getName() + " <instance name> <zoo keepers> <username> <password> <tablename>");
0
* TODO(William Farner): Consider accepting SanitizedConfiguration here to require that * validation always happens for things entering storage.
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
public boolean hasPendingHostRequests() { return !requestsWithReservedHosts.isEmpty() || !outstandingHostRequests.isEmpty(); public int getPendingHostRequestCount() { return outstandingHostRequests.size() + requestsWithReservedHosts.size(); } /** * Removes pending host requests (outstanding requests...
0
type.hosts.addAll(Arrays.asList("h1", "h2", "h3")); type.hosts.addAll(Arrays.asList("h1", "h2")); type.hosts.addAll(Arrays.asList("h2", "h3", "h4")); type.hosts.addAll(Arrays.asList("h2", "h3")); type.hosts.addAll(Arrays.asList("h2")); type.hosts.addAll(Arrays.asList("h1", "h3"));
0
import org.apache.hadoop.metrics2.sink.timeline.query.DefaultPhoenixDataSource; import org.apache.hadoop.metrics2.sink.timeline.query.PhoenixConnectionProvider; conn = dataSource.getConnectionRetryingOnException(retryCounterFactory);
0
private final AtomicLong failedOffers = Stats.exportLong("scheduler_failed_offers"); private final AtomicLong failedStatusUpdates = Stats.exportLong("scheduler_status_updates"); private final Lifecycle lifecycle; /** * Creates a new mesos scheduler. * * @param schedulerCore Core scheduler. * @param ...
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
// FIXME: complexity is O(n) // FIXME: complexity is O(n) // FIXME: complexity is O(n)
0
* @deprecated Replaced by the new {@link ArrayConverter} implementation
0
import org.apache.accumulo.fate.ReadOnlyTStore.TStatus;
0
import org.apache.ambari.logsearch.conf.AuthPropsConfig; private AuthPropsConfig authPropsConfig; url = authPropsConfig.getExternalAuthHostUrl() + url;
0
cat.debug("java.class.path : " + System.getProperty("java.class.path")); cat.debug("java.library.path : " + System.getProperty("java.library.path")); cat.debug("java.runtime.name : " + System.getProperty("java.runtime.name")); cat.debug("java.runtime.version : ...
0
public static final String METHOD_CACHE_SIZE = "org.apache.felix.dependencymanager.methodcache";
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 RequestDispatcherImpl(final ServletResolution resolution, filterChain.doFilter( req, response); filterChain.doFilter( req, response);
0
* @see <a href="http://en.wikipedia.org/wiki/FTPS#Implicit">Wikipedia: FTPS/Implicit</a>
0
@Override @Override
0
import java.util.ArrayList; import java.util.List; * @param factory
0
private List<Map<String, Object>> beans; public List<Map<String, Object>> getBeans() { public void setBeans(List<Map<String, Object>> beans) { for (Map<String, Object> map : beans) { for (Map.Entry<String, Object> entry : map.entrySet()) { stringBuilder.append(" ").append(entry.toString()).ap...
0
TRAIT_DELETE, TRAIT_UPDATE
0
* Instantiation of BagUtils is not intended or required. private BagUtils() {}
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
public static long UPDATE_WAIT_TIME = 2000; ots.addTestSuite(ManagedServiceFactoryTestForServices.class);
0
this.zPath = ZooUtil.getRoot(master.getInstanceID()) + Constants.ZMASTER_TICK;
0
* @version CVS $Id: WebApplicationDefinitionImpl.java,v 1.3 2004/01/27 08:05:34 cziegeler Exp $ public String icon; public String distributable; public String sessionConfig; public String welcomeFileList; public String errorPage; public String taglib; public String resourceRef; public S...
0
import com.google.common.base.Function; import com.google.common.base.MoreObjects; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import java.util.List; import java.util.Objects;
0
private static String urlEncode( private static String urlDecode( return urlDecode(content, charset != null ? Charset.forName(charset) : Consts.UTF_8, true); return urlDecode(content, charset != null ? charset : Consts.UTF_8, true); return urlEncode(content, charset != null ? Charset.for...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAll.java,v 1.22 2003/09/27 10:54:06 scolebourne Exp $ * @version $Revision: 1.22 $ $Date: 2003/09/27 10:54:06 $
0
import org.apache.commons.digester3.rule.RulesBinder; import org.apache.commons.digester3.rule.SetNestedPropertiesRule;
0
/** * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGElement#getXMLbase()}. */ public String getXMLbase() { return null; } /** * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGElement#setXMLbase(String)}. */ public void setXMLbase(String xmlbase) throws DOMException {...
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
final Constant c = cp.getConstant(name_index, Const.CONSTANT_Utf8);
1
GLOSSARY_ALREADY_EXISTS(409, "ATLAS-409-00-007", "Glossary with qualifiedName {0} already exists"), GLOSSARY_TERM_ALREADY_EXISTS(409, "ATLAS-409-00-009", "Glossary term with qualifiedName {0} already exists"), GLOSSARY_CATEGORY_ALREADY_EXISTS(409, "ATLAS-409-00-00A", "Glossary category with qualifiedName {0...
0
Copyright 2000-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
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
if (code.getCode().length >= Constants.MAX_CODE_SIZE){// length must be LESS than the max "Code array in code attribute '"+code+"' too big: must be smaller than "+Constants.MAX_CODE_SIZE+"65536 bytes.");
0
private final ControlClientPool<FnApiControlClient> pool = QueueControlClientPool.createLinked(); pool.getSink(), GrpcContextHeaderAccessorProvider.getHeaderAccessor()); FnApiControlClient client = pool.getSource().take(); pool.getSource().take();
0
import org.apache.http.entity.mime.MultipartEntity; MultipartEntity reqEntity = new MultipartEntity();
0
import java.io.IOException; protected void doOpen() throws IOException {
0
* @version $Id: ASTNENode.java,v 1.7 2004/08/22 01:53:27 dion Exp $ return (!left.equals(right)) ? Boolean.TRUE : Boolean.FALSE; return (!Coercion.coerceDouble(left).equals(Coercion.coerceDouble(right))) ? Boolean.TRUE : Boolean.FALSE; return (!Coercion.coerceLong(l...
0
byte[] serializedOctets = null; serializedOctets = serializer.serializeToByteArray(children); serializedOctets = serializer.serializeToByteArray(element); encryptedBytes = c.doFinal(serializedOctets); Integer.toString(c.getOutputSize(se...
0
for (OffsetBasedSource<T> split : super.splitIntoBundles(desiredBundleSizeBytes, options)) {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/ExtendedBaseRules.java,v 1.9 2003/10/13 20:52:21 rdonkin Exp $ * $Revision: 1.9 $ * $Date: 2003/10/13 20:52:21 $ * @version $Revision: 1.9 $ $Date: 2003/10/13 20:52:21 $ ...
0
@SuppressWarnings("deprecation")
0
import org.apache.batik.ext.awt.image.rendered.TranslateRed; AffineTransform at, rcAT; at = nodeRenderContext.getTransform(); rcAT = new AffineTransform(at.getScaleX(), at.getShearY(), at.getShearX(), at.getScaleY(), ...
0
return Long.parseLong(value) * 1000;
0
import org.apache.atlas.kafka.NotificationProvider; protected static NotificationInterface notificationInterface; notificationInterface = NotificationProvider.get(); notifyEntitiesInternal(messages, maxRetries, notificationInterface, logFailedMessages, failedMessagesLogger);
0
try { return Enum.valueOf((Class<Enum>) resultType, input); } catch( Exception e) { input = input.toUpperCase(); return Enum.valueOf((Class<Enum>) resultType, input); }
0
import org.apache.batik.util.DoublyIndexedTable;
0
* {@link PCollection} of {@link TableRow TableRows} containing each of the rows of the table. * {@link PCollection} of {@link TableRow TableRows}. * A {@link PTransform} that writes a {@link PCollection} containing {@link TableRow TableRows} * {@link PCollection} of {@link TableRow TableRows} to a BigQu...
0
assertEquals(Integer.valueOf(i), orderedList.get(i));
0
import java.nio.charset.StandardCharsets; p.load(new ByteArrayInputStream( propText.replace(';', '\n').getBytes(StandardCharsets.ISO_8859_1)));
0
import java.util.concurrent.ExecutorService;
0
fail(exprs[e] + " : should have failed due to null argument");
0
import java.util.HashSet; import java.util.Set; import junit.framework.Assert;
0
return new DynamicSelectionList(datatype, uri, this.xmlizer, this.sourceResolver, this.processInfoProvider.getRequest());
0
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; static final Log LOGGER = LogFactory.getLog(ParseFailuresTest.class.getName());
0
package org.apache.aurora.scheduler.storage; import com.google.inject.Guice; import com.google.inject.Module; public abstract class AbstractTaskStoreTest { protected abstract Module getStorageModule(); public void baseSetUp() { storage = Guice.createInjector(getStorageModule()).getInstance(Storage.class); ...
0
* * @version $Id$ * @since 1.0.0
0
import org.apache.felix.dm.annotation.api.Component; @Component(properties={@Property(name="foo", value="bar")}) @Component
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/comparators/BooleanComparator.java,v 1.3 2003/01/11 01:07:13 rwaldhoff Exp $ * @version $Revision: 1.3 $ $Date: 2003/01/11 01:07:13 $ * <code>&#x21;<i>trueFirst</i></code> va...
0
package org.apache.accumulo.server.test;
0
BeanHelper helper = BasicBuilderParameters.fetchBeanHelper(getParameters()); return (helper != null) ? helper : BeanHelper.INSTANCE;
0
* * @since 4.0
0
import org.apache.batik.util.ParsedURL; * The URL of the document. protected ParsedURL url; public ParsedURL getURLObject() { public void setURLObject(ParsedURL url) { url = uri == null ? null : new ParsedURL(uri);
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 applicable law o...
0
* @version $Id: UberspectImpl.java,v 1.6 2004/08/19 17:15:59 dion Exp $
0
public NameSignatureInstruction(final short opcode, final int index) { public ConstantNameAndType getNameAndType(final ConstantPoolGen cpg) { public String getSignature(final ConstantPoolGen cpg) { public String getName(final ConstantPoolGen cpg) {
0