Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
for (final String safeMethod: safeMethods) {
0
public class PoolingHttpClientConnectionManager implements HttpClientConnectionManager, ConnPoolControl<HttpRoute>, Closeable {
0
import javax.servlet.http.HttpSessionAttributeListener; import javax.servlet.http.HttpSessionListener; HttpSessionAttributeListener getHttpSessionAttributeListener(); HttpSessionListener getHttpSessionListener();
0
final ProtocolVersion ver = request.getRequestLine().getProtocolVersion(); final HttpEntity entity = ((HttpEntityEnclosingRequest)request).getEntity(); final HttpClientContext clientContext = HttpClientContext.adapt(context); final RequestConfig co...
0
* public final class CryptorFactory { private CryptorFactory() { * public static synchronized void setCryptor(final Cryptor cryptor) { * Return the Cryptor. If one has not been previously set, create it. The Cryptor class can be set by setting the * "org.apache.commons.vfs2.cryptor" System pro...
1
private static org.slf4j.Logger LOG = LOG.debug(ue.getMessage(), ue); LOG.debug("STEP OUTPUT BUFFER\t\tINPUT BUFFER"); LOG.debug(" " + step + ": " + output); LOG.debug("\t\t\t\t" + input); LOG.debug("\t\t\t" + input);
0
String base = System.getProperty("basedir") == null ? "./": System.getProperty("basedir"); base += fs + "data" + fs
0
/* * Copyright 2006 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
LOG.debug("Discovering instance to create/update for {}", instance); LOG.debug("Instance {} has an assigned id", instance.getId()._getId()); LOG.debug("Creating new vertex for instance {}", instance); LOG.debug("Re-using existing vertex {} ...
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
expect(request.getPageRequest()).andReturn(null); query.setPageRequest(null); expect(request.getPageRequest()).andReturn(null); query.setPageRequest(null); expect(request.getPageRequest()).andReturn(null); query.setPageRequest(null); expect(request.getPageRequest()).andReturn(null); quer...
0
import org.apache.aurora.scheduler.updater.strategy.VariableBatchStrategy; if (settings.getUpdateStrategy().isSetBatchStrategy()) { checkArgument( settings.getUpdateStrategy().getBatchStrategy().getGroupSize() > 0, GROUP_SIZES_INVALID); } else if (settings.getUpdateStrategy...
0
* @param transactionRegistry * transaction registry * @param conn * underlying connection * @param pool * connection pool public PoolableManagedConnection(final TransactionRegistry transactionRegistry, final Connection conn, final ObjectPool...
0
private FTPFileEntryParserFactory __parserFactory; // __systemName is a cached values that should not be referenced directly // except when assigned in getSystemName and __initDefaults. private String __systemName; __parserFactory = new DefaultFTPFileEntryParserFactory(); __systemName ...
0
import org.apache.ambari.view.utils.ambari.ValidatorUtils; if (!ValidatorUtils.validateHdfsURL(webhdfsUrl)) {
0
import org.apache.hc.core5.io.CloseMode; public void close(final CloseMode closeMode) {
0
import org.apache.cocoon.portal.aspect.AspectDescription; * @version CVS $Id: DefaultCopletFactory.java,v 1.6 2003/06/14 17:55:43 cziegeler Exp $ AspectDescription adesc = DefaultAspectDescription.newInstance(aspectsConf[m]); AspectDescription adesc = DefaultAspectDescri...
0
package org.apache.beam.sdk.extensions.euphoria.operator.test.junit;
0
import org.junit.Rule; @Rule public TemporaryFolder folder = new TemporaryFolder(new File(System.getProperty("user.dir") + "/target")); File f = folder.newFile("handleWriteTests"); File f = folder.newFile("writeBadVisibility");
0
import org.apache.calcite.runtime.SqlFunctions; return currentVariance.combineWith(VarianceAccumulator.ofSingleElement( SqlFunctions.toBigDecimal(rawInput)));
0
LogQueryResponse sendQueryRequest(Map<String, String> queryParameters); Set<String> sendGetLogFileNamesRequest(String componentName, String hostName); LogLevelQueryResponse sendLogLevelQueryRequest(String componentName, String hostName); String createLogFileTailURI(String baseURI, String componentName, String h...
0
package org.apache.felix.scr.impl.manager; import org.apache.felix.scr.impl.helper.ReadOnlyDictionary; public class ComponentContextImpl implements ComponentContext
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Attic/ValidatorResourcesInitializer.java,v 1.12 2003/03/12 06:06:46 dgraham Exp $ * $Revision: 1.12 $ * $Date: 2003/03/12 06:06:46 $ * Copyright (c) 1999-2003 The Apache Software F...
0
package org.apache.accumulo.server.master.state; import org.apache.accumulo.server.master.state.DistributedStoreException; public class IllegalDSException extends DistributedStoreException { public IllegalDSException(String why) { super(why); } private static final long serialVersionUID = 1L; }
0
log.info("Received SSH_MSG_CHANNEL_REQUEST {} on channel {}", req, id);
0
package org.apache.commons.exec.launcher; import java.io.File; import java.io.IOException; import org.apache.commons.exec.CommandLine; import org.apache.commons.exec.environment.Environment; /** * A command launcher for a particular JVM/OS platform. This class is a general * purpose command launcher which can only...
1
import org.apache.accumulo.core.client.impl.ClientInfoImpl; /** * @return ClientInfo given properties */ static ClientInfo from(Properties properties) { return new ClientInfoImpl(properties); } /** * @return ClientInfo given properties and token */ static ClientInfo from(Properties propertie...
0
} catch (SQLException | NumberFormatException ex) { LOG.warn("Failed on insert records to store : " + ex.getMessage()); LOG.warn("Metric that cannot be stored : [" + metric.getMetricName() + "," + metric.getAppId() + "]" + metric.getMetricValues().toString()); ...
0
* $Revision: 1.10 $ * $Date: 2003/11/02 17:46:12 $ * @version $Revision: 1.10 $ $Date: 2003/11/02 17:46:12 $ public TesterPreparedStatement(Connection conn, String sql, int resultSetType, int resultSetConcurrency) { super(conn, resultSetType, resultSetConcurrency); _sql = sql; } ...
0
args, opts)) { BatchWriter bw = client.createBatchWriter(clientOpts.getTableName());
0
package org.apache.accumulo.monitor.rest.tables;
0
* Copyright 2003-2005 The Apache Software Foundation
0
import java.util.AbstractSet; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; import java.util.Set; import javax.xml.XMLConstants; import javax.xml.crypto.MarshalException; import javax.xml.crypto.XMLCryptoContext; import javax.xml.crypto.XMLStructure; import javax.xml.crypto...
0
* @version CVS $Id: Workbook.java,v 1.4 2003/09/22 22:44:15 joerg Exp $ _workbook.setSheetName(index, name, HSSFWorkbook.ENCODING_UTF_16);
0
import org.apache.accumulo.core.data.NamespaceId; import org.apache.accumulo.core.data.TableId; public abstract TableConfiguration getTableConfiguration(TableId tableId); public abstract NamespaceConfiguration getNamespaceConfiguration(NamespaceId namespaceId);
0
import org.apache.beam.dsls.sql.BeamSqlCli; import org.apache.beam.dsls.sql.BeamSqlEnv; String plan = BeamSqlCli.explainQuery(sql); String plan = BeamSqlCli.explainQuery(sql); String plan = BeamSqlCli.explainQuery(sql); String plan = BeamSqlCli.explainQuery(sql); String plan = BeamSqlCli.explainQuer...
0
import static java.nio.charset.StandardCharsets.UTF_8; mut1.put(new Text("column"), col1, System.currentTimeMillis(), new Value("This is the value for this key".getBytes(UTF_8))); mut1.put(new Text("column"), col2, System.currentTimeMillis(), new Value("This is the value for this key".getBytes(UTF_8))); mu...
0
import org.apache.accumulo.core.client.impl.Table; public static final Table.ID ID = Table.ID.ROOT;
1
import javax.annotation.Nullable; @Nullable private final Windowing<IN, W> windowing; @Nullable private final UnaryFunction<IN, Long> eventTimeAssigner; @Nullable Windowing<IN, W> windowing, @Nullable UnaryFunction<IN, Long> eventTimeAssigner, Parti...
0
* This is the Key used to store and access individual values in Accumulo. A Key is a tuple composed of a row, column family, column qualifier, * * * * * * * * * * * * * * * * * * * * ...
0
* * * * <p>Tag handler for &lt;Transaction&gt; in JSTL. * // lets commit
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
buf.append(" [").append(a.toString()).append("]"); buf.append("\n\t\tthrows ").append(str);
0
* You may obtain a copy of the License at * the example. * following elements: * <code>components</code> element. * <dd>Used to configure any Components used by the test cases. public abstract class ContainerTestCase extends TestCase { protected void addComponents(ConfigurationInfo info) ...
0
System.arraycopy( rects, srcPos, this.rects, dstPos, len );
0
* @throws ClassNotFoundException if the class cannot be located
0
new Object[] {maximumAllowedXMLStructureDepth}
0
public class SignatureAlgorithmTest {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms/ConnectionTag.java,v 1.3 2003/10/09 21:21:20 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/09 21:21:20 $ * any, must include the following acknowledgement: *...
0
CompositeBehavior enterCompositeTransform(TransformHierarchy.Node node); void leaveCompositeTransform(TransformHierarchy.Node node); void visitPrimitiveTransform(TransformHierarchy.Node node); void visitValue(PValue value, TransformHierarchy.Node producer); public CompositeBehavior enterCompositeT...
0
Set<String> propertyIds = new HashSet<>(); Set<String> propertyIds = new HashSet<>(); Set<String> propertyIds = new HashSet<>();
0
ClusterInformation clusterInformation = new ClusterInformation(CLUSTER_NAME, false, null, null, null); ClusterInformation clusterInformation = new ClusterInformation(CLUSTER_NAME, false, null, null, null); ClusterInformation clusterInformation = new ClusterInformation(CLUSTER_NAME, false, null, null, null);...
0
private final TransformEvaluatorRegistry transformRegistry; TransformEvaluatorRegistry transformRegistry, this.transformRegistry = transformRegistry; executorFactory = new DirectTransformExecutor.Factory(context, transformRegistry); transformRegistry.cleanup();
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
w.write("/**\n"); w.write("* Licensed to the Apache Software Foundation (ASF) under one\n"); w.write("* or more contributor license agreements. See the NOTICE file\n"); w.write("* distributed with this work for additional information\n"); w.write("* regarding...
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
/** * TODO Add javadoc * * @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> * @version $Rev$, $Date$ */
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.junit.FixMethodOrder; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING)
0
import org.apache.excalibur.source.SourceValidity; /** * Get the validity object that describes the validity state * of the properties belonging to the given source. * * @param source the Source for which to calculate the validity * its properties, <code>null</code> if the source properti...
0
* The syntax to use is LAYOUT_ID/PATH. final Object layout = portalService.getProfileManager().getLayout(layoutId);
0
* ALTER table to set new options */ public static final String ALTER_SQL = "ALTER TABLE %s SET TTL=%s"; /**
0
/* ==================================================================== * Copyright (c) 2003-2004 The Apache Software Foundation. All rights * @version $Revision: 1.4 $ $Date: 2004/01/14 21:34:34 $
0
* @return {@code null} if the connect operation is not finished yet,
0
public Iterable<AtlasEdge<Titan1Vertex, Titan1Edge>> wrapEdges(Iterator<? extends Edge> it) { Iterable<? extends Edge> iterable = new IteratorToIterableAdapter<>(it); return wrapEdges(iterable); } public Iterable<AtlasEdge<Titan1Vertex, Titan1Edge>> wrapEdges(Iterable<? extends Edge> it) { ...
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
* 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
void sendInformation(HttpResponse response, HttpContext httpContext) throws HttpException, IOException; void submitResponse(AsyncResponseProducer responseProducer, HttpContext httpContext) throws HttpException, IOException; void pushPromise(HttpRequest promise, HttpContext httpContext, AsyncPush...
0
Copyright 2002-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
final SimpleHttpResponse response = new SimpleHttpResponse(HttpStatus.SC_OK); response.setBodyText("Successful redirect", ContentType.TEXT_PLAIN); return response; return new SimpleHttpResponse(HttpStatus.SC_NOT_FOUND); ...
0
import org.apache.sshd.common.SshConstants; port = SshConstants.DEFAULT_PORT;
0
public class BasicHttpEntity extends AbstractHttpEntity {
0
* A stream for writing to a {@link HttpDataTransmitter HttpDataTransmitter}. *
0
LOG.info("Running setup step: {}", step);
0
import java.io.IOException; import org.apache.http.message.LineFormatter; public HttpResponseWriter(final SessionOutputBuffer buffer, final LineFormatter formatter, final HttpParams params) { super(buffer, formatter, params); protected void wr...
0
private final Flags options; private final Set allowedSchemes = new HashSet();
0
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List;
0
/** * Returns some defaults for this property. The object must be of the appropriate type as defined by the cardinality and getType(). * The return type is a list of String objects that can be converted to the appropriate type. The cardinality of the return * array must follow the absolute ca...
0
if (loginOptions != null && !cl.hasOption(tokenOption.getOpt())) throw new IllegalArgumentException("Must supply '-" + tokenOption.getOpt() + "' option with '-" + loginOption.getOpt() + "' option"); if (loginOptions == null && cl.hasOption(tokenOption.getOpt())) throw new IllegalArgum...
0
/** Tests for {@link CombineFnTester}. */ Iterable<KV<Integer, Integer>> accumulators) {
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
suite.addTest(new TestSuite(NullInputStreamTest.class)); suite.addTest(new TestSuite(NullReaderTest.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 ...
1
* * * OpenVMS. return freeSpaceKb(-1); return freeSpaceKb(new File(".").getAbsolutePath(), timeout); final String[] cmdAttribs = *
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/CallParamRule.java,v 1.18 2004/02/15 01:02:13 craigmcc Exp $ * $Revision: 1.18 $ * $Date: 2004/02/15 01:02:13 $ * @version $Revision: 1.18 $ $Date: 2004/02/15 01:02:13 $
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Msg.java,v 1.12 2004/02/21 17:10:29 rleland Exp $ * $Revision: 1.12 $ * $Date: 2004/02/21 17:10:29 $ * Copyright 2001-2004 The Apache Software Foundation * Licensed under the Apac...
0
// ensure the metadata table is online for (@SuppressWarnings("unused") Entry<Key,Value> unused : c.createScanner(MetadataTable.NAME, Authorizations.EMPTY)) ;
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
fw1.write(65); fw2.write(65);
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
import javax.crypto.BadPaddingException; import javax.servlet.DispatcherType; import org.apache.ambari.server.checks.DatabaseConsistencyCheckHelper; DatabaseConsistencyCheckHelper.checkDBVersionCompatible();
0
package org.apache.beam.sdk.runners.inprocess; import org.apache.beam.sdk.runners.inprocess.InProcessPipelineRunner.CommittedBundle; import org.apache.beam.sdk.transforms.AppliedPTransform;
0
import org.apache.hc.client5.http.async.methods.SimpleHttpRequests; final Future<SimpleHttpResponse> future = httpclient.execute(SimpleHttpRequests.GET.create(target, "/"), context, null);
0
/** Defines basic methods available in user defined functions. */ * Retrieves the window - if any - underlying the current execution of this context. * @return {@code null} if this context is not executed within a windowing strategy, otherwise the * current window of this context
0
public MaxIntegerFn() { super(Integer.MIN_VALUE); } public MaxLongFn() { super(Long.MIN_VALUE); } public MaxDoubleFn() { super(Double.NEGATIVE_INFINITY); }
0
public SecretKey engineLookupAndResolveSecretKey(
0
assertNotNull(conn); assertNotNull(stmt); assertNotNull(rset); assertNotNull(conn); assertNotNull(stmt); assertNotNull(rset); assertNotNull(conn); assertNotNull(stmt); assertNotNull(rset); assertNotNull(stmt); assertNotNull(rset); ...
0
* <p>See {@link TextIO.Write#to(String) Write.to(String)} for more information.
0
when(mockTrigger.onElement(Mockito.<Trigger<IntervalWindow>.OnElementContext>any())) .thenReturn(TriggerResult.CONTINUE, TriggerResult.CONTINUE); tester.injectElements( TimestampedValue.of(1, new Instant(1)), TimestampedValue.of(10, new Instant(10))); TimestampedValue.of(10, new...
0