Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
/** * Name of the Framework property indicating whether the servlet context * attributes of the ServletContext objects created for each HttpContext * used to register servlets and resources share their attributes or not. * By default (if this property is not specified or it's value is not *...
0
package org.apache.commons.net.examples.mail;
0
HashMap<InetAddress, Set<NIOServerCnxn>> ipMap = new HashMap<InetAddress, Set<NIOServerCnxn>>( ); int maxClientCnxns = 10; * @param port - the port to listen on for connections. LOG.info("binding to port " + port); ss.register(selector, SelectionKey.OP_ACCEPT); ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DoubleOrderedMap.java,v 1.2 2002/06/12 03:59:15 mas Exp $ * $Revision: 1.2 $ * $Date: 2002/06/12 03:59:15 $ * @since 2.0
0
Set<String> schedule(MutableStoreProvider storeProvider, Set<String> taskIds);
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
Assert.assertEquals(String.format("Actual counts of words [%s] does not equal expected " + "count[%s].", actualCountSet, EXPECTED_COUNT_SET), EXPECTED_COUNT_SET, actualCountSet);
0
* * @SuppressWarnings("unused")
0
* @version $Revision$
0
repositoryVersion, null, null);
0
protected VO finalValue(W window) throws Exception { VA accumulator = lookupAccumulator(window); if (accumulator == null) { return combineFn.extractOutput(key, accumulator); protected WindowStatus put(W window, VI value) throws Exception { VA accumulator = lookupAccumulator(window); if (accumula...
0
import org.apache.accumulo.core.clientImpl.Tables;
0
continue; throw new AmbariException("Delete services not supported"); throw new AmbariException("Delete components not supported"); throw new AmbariException("Delete hosts not supported"); throw new AmbariException("Delete host components not supported");
0
public LocalVariable(final LocalVariable c) { LocalVariable(final DataInput file, final ConstantPool constant_pool) throws IOException { public LocalVariable(final int start_pc, final int length, final int name_index, final int signature_index, final int index, final ConstantPool constant_pool) ...
0
import org.apache.felix.bundlerepository.Capability; final Dictionary dict = m_bundle.getHeaders(); DataModelHelperImpl.populate(new DataModelHelperImpl.Headers() { public String getHeader(String name) { return (String) dict.get(name); } ...
0
private List<ActionDefinitionSpec> actionDefinitions = new ArrayList<>();
0
import org.apache.ambari.server.stack.upgrade.Direction; import org.apache.ambari.server.stack.upgrade.UpgradePack; import org.apache.ambari.server.stack.upgrade.UpgradeType; import org.apache.ambari.server.stack.upgrade.orchestrate.UpgradeHelper;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/EndianUtilsTest.java,v 1.2 2003/11/26 07:56:38 bayard Exp $ * $Revision: 1.2 $ * $Date: 2003/11/26 07:56:38 $ * @version $Revision: 1.2 $ $Date: 2003/11/26 07:56:38 $ assertEquals( (short...
0
import org.apache.accumulo.test.randomwalk.Environment; public void visit(State state, Environment env, Properties props) throws Exception { Connector conn = env.getInstance().getConnector(WalkingSecurity.get(state,env).getSysUserName(), WalkingSecurity.get(state,env).getSysToken()); String tableName = Walkin...
0
import org.apache.ambari.server.orm.entities.RepositoryVersionEntity; import org.apache.ambari.server.state.UpgradeContext; import org.apache.ambari.server.state.stack.upgrade.Direction; public class ConfigureAction extends AbstractUpgradeServerAction { UpgradeContext upgradeContext = getUpgradeContext(cluster); ...
0
return new XmlSource<>(configuration, getMinBundleSize(), metadata, start, end); return new XMLReader<>(this);
0
import junit.framework.Assert; public void doParameterTest() throws Exception { Assert.assertEquals("abc", getParameters().getParameter("p1")); Assert.assertEquals("def", getParameters().getParameter("p2")); Assert.assertEquals(2.3f, getParameters().getParameterAsFloat("p3"), 0.1f); }
0
import org.apache.cocoon.woody.event.WidgetEvent; public Form getForm() { return Repeater.this.getForm(); } public void broadcastEvent(WidgetEvent event) { throw new UnsupportedOperationException("Widget " + this.getFullyQualifiedId() + " doesn't handle ...
0
package org.osgi.util.converter;
0
package org.apache.beam.sdk.extensions.sql.rel; import org.apache.beam.sdk.extensions.sql.BeamSqlEnv; import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow; import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRowCoder; import org.apache.beam.sdk.extensions.sql.utils.CalciteUtils;
0
import org.apache.hc.core5.net.NamedEndpoint; private final NamedEndpoint remoteEndpoint; final NamedEndpoint remoteEndpoint, this.remoteEndpoint = Args.notNull(remoteEndpoint, "Remote endpoint"); this.remoteAddress = Args.notNull(remoteAddress, "Remote address"); public NamedEndpoin...
0
package aQute.libg.sax; import org.xml.sax.ContentHandler; public interface ContentFilter extends ContentHandler { void setParent(ContentHandler parent); ContentHandler getParent(); }
0
import java.util.Map; private Map p3avs = new HashMap(); private Map p3bvs = new HashMap();
0
throw new BindingException("Error building a insert-bean binding", e, DomHelper.getLocationObject(bindingElm));
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
new HashMap<>();
0
case TransformType.TRANSFORM_GENERAL: transformParameters = matrixMultiply(transformParameters, stackElement.transformParameters); break; /** * Multiplies two 2x3 matrices of double precision values */...
0
* @author William Farner
0
import java.util.Arrays; if (!super.isApplicable(request, Arrays.asList("YARN"), true)) {
0
assertNotEquals(7654321L, bwDefaults.getMaxLatency(TimeUnit.MILLISECONDS)); assertNotEquals(9898989L, bwDefaults.getTimeout(TimeUnit.MILLISECONDS)); assertNotEquals(1123581321L, bwDefaults.getMaxMemory()); bwConfig.setMaxLatency(7654321L, TimeUnit.MILLISECONDS); bwConfig.setTimeout(9898989L, TimeUni...
0
public static final String AUTHENICATE_AUDIT_TEMPLATE = "action: authenticate;";
0
// delete config, ensure factory is not active anymore and component instance not changed TestCase.assertEquals( Component.STATE_UNSATISFIED, component.getState() );
0
import javax.annotation.Nullable; @Nullable
0
* any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * permission of the Apache Software Foundation. * @version $Revision: 1.4 $ $Date: 2003/10/13 08:44:26 $
0
import java.util.concurrent.CopyOnWriteArraySet; private Collection<ScpTransferEventListener> listeners = new CopyOnWriteArraySet<>(); other.listeners = new CopyOnWriteArraySet<>(this.listeners);
0
* @version CVS $Id$ // ignroe it
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/core/CoreTagLibrary.java,v 1.4 2002/03/07 02:46:04 jstrachan Exp $ * $Revision: 1.4 $ * $Date: 2002/03/07 02:46:04 $ * $Id: CoreTagLibrary.java,v 1.4 2002/03/07 02:46:04 jstrachan Exp ...
0
// Do not clean registration map, so injection still works // after disposal for late callbacks.
0
private static int esHttpPort; esHttpPort = serverSocket.getLocalPort(); public void testWritePartialUpdateWithErrors() throws Exception { elasticsearchIOTestCommon.setPipeline(pipeline); String[] addresses = new String[] {"http://" + ES_IP + ":" + esHttpPort}; elasticsearchIOTestCommon.setIndexMap...
0
return v;
0
return new RepeaterActionDefinition.AddRowActionDefinition(repeater); } else if ("sort-by".equals(actionCommand)) { String field = DomHelper.getAttribute(element, "field", null); return new RepeaterActionDefinition.SortActionDefinition(repeater, field); ...
0
import static org.apache.felix.http.base.internal.util.CollectionUtils.sortedUnion; import org.apache.felix.http.base.internal.runtime.dto.ErrorPageRuntime; return sortedUnion(errorCodesMap.values(), exceptionsMap.values()); public ErrorPageRuntime getErrorPage(ServletHandler servletHandler) return ...
0
package org.apache.felix.ipojo; /** * Component Instance Fake. * We're using a fake to avoid the cyclic build dependency: * manipulator -> ipojo -> maven-ipojo-plugin -> manipulator */ public interface ComponentInstance { }
0
if (svc == null) {
0
import java.util.Date; import org.apache.http.client.utils.DateUtils; final Date expiry = DateUtils.parseDate(value, this.datepatterns); if (expiry == null) { + value); cookie.setExpiryDate(expiry);
0
package org.apache.hadoop.metadata.typesystem;
0
import org.apache.hc.core5.http.Chars; if (b == Chars.LF) { if (linebuffer.charAt(l - 1) == Chars.LF) { if (linebuffer.charAt(l - 1) == Chars.CR) {
0
super("FollowerRequestProcessor:" + zks.getServerId());
0
}, MoreExecutors.directExecutor());
0
/* * Copyright 1999-2005 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 ap...
0
import org.apache.accumulo.core.util.DeprecationUtil; return DeprecationUtil.makeMockInstance(instance);
0
package org.apache.cocoon.generation; * @version CVS $Id: PauseGenerator.java,v 1.2 2003/03/12 15:02:17 bloritsch Exp $
0
package org.apache.commons.vfs2.provider.webdav; import org.apache.commons.vfs2.FileSystem; import org.apache.commons.vfs2.FileSystemOptions; import org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder;
1
*/ /** Convert float to long */ public F2L() { super(org.apache.bcel.Constants.F2L); } /** * Call corresponding visitor method(s). The order is: * Call visitor methods of implemented interfaces first, then * call methods according to the class hierarchy in descending order,...
0
.parallel(toString(), channels.values()) return new AbstractIoWriteFuture(req, 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 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...
0
import org.apache.beam.sdk.values.KV; Dataset<KV<String, Long>> reduced =
0
super(HttpException.clean(message));
0
/** Tests for {@link PipelineRunner}. */ private static class ScaleFn<T extends Number> extends SimpleFunction<T, Double> { result .metrics() .queryMetrics( MetricsFilter.builder() .addNameFilter(MetricNameFilter.inNamespace(namespace)) ...
1
* http://www.apache.org/licenses/LICENSE-2.0
0
import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Random; import org.apache.beam.sdk.coders.AvroCoder; import org.apache.beam.sdk.coders.DefaultCoder; import org.apache.beam.sdk.util.AvroUtils.AvroMetadata;
0
import java.util.Collection; import java.util.LinkedList; import java.util.concurrent.TimeUnit; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @RunWith(Parameterized.class) // see https://github.com/junit-team/junit/wiki/Parameterized-tests...
0
* $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/ServiceRegistration.java,v 1.14 2007/02/21 16:49:05 hargrave Exp $ * Copyright (c) OSGi Alliance (2000, 2007). All Rights Reserved. * @ThreadSafe * @version $Revision: 1.14 $
0
Copyright 2000-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 applica...
0
import org.apache.http.nio.NHttpServerProtocolHandler; public void consumeInput(final NHttpServerProtocolHandler handler) { public void produceOutput(final NHttpServerProtocolHandler handler) {
0
public <G, L, W extends Window<G, L>> ReduceByKey<IN, KEY, VALUE, OUT, W> windowBy(Windowing<IN, G, L, W> windowing) {
0
/* $Id: LogUtils.java,v 1.8 2004/05/10 06:44:13 skitching Exp $ * Copyright 2003-2004 The Apache Software Foundation.
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestByteList.java,v 1.3 2003/08/31 17:28:41 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgement may ap...
0
return Combine.<NumT, Double>globally(new MeanFn<>()).named("Mean"); return Combine.<K, NumT, Double>perKey(new MeanFn<>()).named("Mean.PerKey");
0
public Set<Resource> getResources(Request request, Predicate predicate) throws NoSuchResourceException {
0
import cz.seznam.euphoria.hadoop.input.SimpleHadoopTextFileSource; import java.util.regex.Pattern; /** Implements a very simplistic WordCount over text files using hadoop data sinks. */ private static final Pattern SPLIT_RE = Pattern.compile("\\s+"); if (args.length != 1) { System.err.println("Usage: " + E...
0
public long getContentLength() { return -1; } @Override
0
StreamSupport.stream(availableSideInputs.spliterator(), false) .filter( sideInputCandidate -> { if (sideInputCandidate == null) { return false; } return Iterables.contains(sideInputCandidate.getWindows(), sideI...
0
String expected = NamedResource.getNames(BuiltinUserAuthFactories.VALUES);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributePointer.java,v 1.7 2002/10/20 03:47:18 dmitri Exp $ * $Revision: 1.7 $ * $Date: 2002/10/20 03:47:18 $ * @version $Revision: 1.7 $ $Date: 2002/10/20 03:47:18 $ ...
0
try (Scanner scanner = c.createScanner(tableName, new Authorizations()); BatchScanner bscanner = c.createBatchScanner(tableName, new Authorizations(), 3)) { setupIter(scanner); verify(scanner, 1, 999); bscanner.setRanges(Collections.singleton(new Range((Key) null, null))); setupIter(bscanner...
0
@SuppressWarnings("boxing")
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 org.apache.batik.util.DoublyIndexedTable;
0
package org.apache.accumulo.minicluster;
0
* Copyright 2002,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...
1
* /** the DynaBean which is used to store the attributes of this tag. */ /** Sets the context in which the tag will be run. */
0
import org.apache.ambari.server.controller.KerberosHelper; bind(KerberosHelper.class).toInstance(createNiceMock(KerberosHelper.class));
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 org.apache.aurora.common.quantity.Amount; import org.apache.aurora.common.quantity.Time; import org.apache.aurora.common.stats.Stats; import org.apache.aurora.common.util.Clock;
0
* @param maxIdleTime maximum time persistent connections can stay idle while kept alive * @deprecated (4.5) use {@link #evictIdleConnections(long, TimeUnit)} * @Deprecated return evictIdleConnections(maxIdleTime.longValue(), maxIdleTimeUnit); } /** * Makes this instance of HttpC...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
0
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class MapFileInfo implements org.apache.thrift.TBase<MapFileInfo, MapFileInfo._Fields>, java.io.Serializable, Cloneable, Comparable<MapFileInfo> { public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
public String createConfig(ConfigurationInfo info, boolean addCocoon) final Map components = info.getComponents(); // first add includes final Iterator includeIter = info.getImports().iterator(); while ( includeIter.hasNext() ) { final String uri = (String)includeIter.ne...
0
PCollectionConsumerRegistry consumers = new PCollectionConsumerRegistry( mock(MetricsContainerStepMap.class), mock(ExecutionStateTracker.class));
0
package org.apache.ambari.infra.solr.commands; import org.apache.ambari.infra.solr.AmbariSolrCloudClient;
0
import org.apache.cocoon.portal.profile.PortalUser; /* (non-Javadoc) * @see org.apache.cocoon.portal.profile.ProfileManager#getUser() */ public PortalUser getUser() { final RequestState state = this.getRequestState(); return new User(state); } protected static final class...
0
import org.apache.beam.runners.core.metrics.MonitoringInfoConstants; .putLabels(MonitoringInfoConstants.Labels.PTRANSFORM, "anyValue") .putLabels(MonitoringInfoConstants.Labels.PTRANSFORM, "anyValue")
0
* @version $Id$
0