Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @response.representation.200.example * @request.representation.example
0
reduceStateByKey, q, output, keyExtractor, valueExtractor,
0
package org.apache.accumulo.monitor.rest.api.zookeeper; /** * * Generates a new zookeeper information as a JSON object * * @since 2.0.0 * */ // Variable names become JSON keys /** * Stores Zookeeper information * * @param server * Location of the ZK * @param mode * ZK mode ...
0
import cz.seznam.euphoria.core.executor.inmem.InMemExecutor; import cz.seznam.euphoria.core.executor.inmem.InMemFileSystem;
0
* @author $Id: e71af7f75c634bd77b2c8ea6da52fe4788760e99 $
0
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class Column implements org.apache.thrift.TBase<Column, Column._Fields>, java.io.Serializable, Cloneable, Comparable<Column> { public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
private BCFile.Writer blockFileWriter; Writer(BCFile.Writer blockFileWriter, int maxBlockSize) {
0
private final static String DATA_TIMEOUT = FTPFileEntryParserFactory.class.getName() + ".DATA_TIMEOUT"; /** * @param opts * @return * @see #setDataTimeout */ public Integer getDataTimeout(FileSystemOptions opts) { return (Integer) getParam(opts, DATA_TIMEOUT); } /**...
0
public static <InputT, OutputT> MapElements<InputT, OutputT> via( final SimpleFunction<InputT, OutputT> fn) { return new MapElements<>(fn, fn.getClass()); public MapElements<InputT, OutputT> withOutputType(final TypeDescriptor<OutputT> outputType) { return new MapElements<>( SimpleFuncti...
0
List<Future<Map<StackModule, RepoUrlInfoResult>>> results;
0
public String getParameter(final String name) { final int beginIndex, final int endIndex) throws MalformedChallengeException {
0
public void testRuleLanguageMatches() {
0
private static final long serialVersionUID = 6461645947151952729L;
0
import org.apache.http.impl.client.HttpClientBuilder;
0
import org.apache.http.conn.params.ConnManagerParams; long timeout = ConnManagerParams.getTimeout(params);
0
package org.apache.beam.sdk.io.range;
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
* {@inheritDoc} * {@inheritDoc}
0
import org.apache.aurora.scheduler.mesos.SchedulerDriverModule; .annotatedWith(SchedulerDriverModule.SchedulerExecutor.class)
0
import java.util.Arrays; * original URL is returned (the same string as {@link #toString()}). mt.addAll(Arrays.asList(mimeTypes));
0
import org.apache.http.params.HttpParams;
0
* if there is an authentication failure while connecting to leader * @throws X509Exception
0
package sample; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlValue; @XmlAccessorType(XmlAccessType.FIELD) public class Field { @XmlAttribute private String name = null; @XmlValu...
1
private static final int DEFAULT_PULL_SIZE = 100; String subscription; if (getSubscription() == null) { } else { subscription = getSubscription().asV1Beta2Path(); } else { pullRequest.setMaxMessages(DEFAULT_PULL_SIZE); if (pu...
0
import java.util.Date;
0
package org.apache.hc.core5.reactor;
1
import org.apache.beam.runners.core.StateTable;
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
/** * 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.beam.sdk.util.Sleeper;
0
* * @return {@code null} if and only if this is the root node of the graph, which has no * associated transform @Nullable
0
log.debug("Starting garbage collector listening on " + result); return TServerUtils.startTServer(result, processor, this.getClass().getSimpleName(), "GC Monitor Service", 2, 1000, maxMessageSize).address;
0
* A serialization friendly type service factory that maintains a mock {@link Spanner} and {@link * DatabaseClient}. */ class FakeServiceFactory implements ServiceFactory<Spanner, SpannerOptions>, Serializable {
1
package org.apache.beam.runners.spark.streaming; import com.google.common.reflect.TypeToken; import org.apache.beam.runners.spark.DoFnFunction; import org.apache.beam.runners.spark.EvaluationContext; import org.apache.beam.runners.spark.SparkPipelineTranslator; import org.apache.beam.runners.spark.TransformEvaluator; i...
0
@Override public IteratorOptions describeOptions() { IteratorOptions io = super.describeOptions(); io.setName("max"); io.setDescription("MaxCombiner interprets Values as Longs and finds their maximum. A variety of encodings (variable length, fixed length, or string) are available"); return io; ...
0
if (zooKeeperProcess != null) { zooKeeperProcess.waitFor(); } if (loggerProcess != null) { loggerProcess.waitFor(); } if (masterProcess != null) { masterProcess.waitFor(); } tserver.waitFor(); if (gcProcess != null) { gcProcess.waitFor(); }
0
* This class implements {@link SVGDefsElement}. * <b>DOM</b>: Implements {@link Node#getLocalName()}.
0
private FlatMapEntry<K, V> currentEntry = null;
0
* The alert definition name. */ private final String definitionName; /** public AlertDefinitionDisabledEvent(long clusterId, long definitionId, String definitionName) { this.definitionName = definitionName; /** * Gets the definition name. * * @return the definitionId name */ public Str...
0
import com.google.common.collect.Lists; private static final List<Long> TEST_TIMESTAMPS = private static final List<Instant> TEST_VALUES; static { TEST_VALUES = Lists.newArrayList(); for (long timestamp : TEST_TIMESTAMPS) { TEST_VALUES.add(new Instant(timestamp)); } } for (Instant value ...
0
Method updateHDFSConfigs = UpgradeCatalog240.class.getDeclaredMethod("updateHDFSConfigs"); .addMockedMethod(updateHDFSConfigs) upgradeCatalog240.updateHDFSConfigs();
0
Inbound rval = new Inbound(responseObserver); clients.add(rval); return rval;
0
* <p> * <p> * <p> * <p> * <p>
0
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public void testUnsafeModifyInPlace() { TwitterTaskInfo updated = TASK_A.getAssignedTask().getTask().deepCopy().setThermosConfig("new_config".getBytes()); String taskId = Tasks.id(TASK_A); assertFalse(store.uns...
0
* </p>
0
updateAccumuloVersion(fs, ServerConstants.PREV_DATA_VERSION); } public static synchronized void updateAccumuloVersion(VolumeManager fs, int oldVersion) { if (getAccumuloPersistentVersion(fs) == oldVersion) { Path prevDataVersionLoc = new Path(dataVersionLocation, Integer.toString(oldVersion))...
0
List<NameValuePair> params = new ArrayList<NameValuePair>(); nvp.getName(),
0
ConcurrentMap<String, Object> requestSharedDataContext = new ConcurrentHashMap<>(); ConcurrentMap<String, Object> requestSharedDataContext = new ConcurrentHashMap<>(); ConcurrentMap<String, Object> requestSharedDataContext = new ConcurrentHashMap<>(); ConcurrentMap<String, Object> requestSharedDataConte...
0
import org.apache.commons.digester3.RulesBinder;
0
import org.apache.http.Consts; SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 256, Consts.ASCII); SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 256, Consts.ASCII); SessionInputBuffer inbuf = new SessionInputBufferImpl(1024, 256, Consts.ASCII); SessionInputBuffe...
0
* @version CVS $Id: CocoonBean.java,v 1.36 2003/10/13 12:08:10 upayavira Exp $ /** * Print a description of the software before running */ public static String getProlog() { String lSep = System.getProperty("line.separator"); StringBuffer msg = new StringBuffer(); msg.append("...
0
ZooReaderWriter.getInstance().delete(lockPath, -1);
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
/* * 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 by appl...
0
import static org.apache.atlas.repository.Constants.ENTITY_TEXT_PROPERTY_KEY; AtlasGraphUtilsV2.setEncodedProperty(vertex, ENTITY_TEXT_PROPERTY_KEY, fullText); String existingFullText = AtlasGraphUtilsV2.getEncodedProperty(atlasVertex, ENTITY_TEXT_PROPERTY_KEY, String.class); ...
0
LoggingCookieStore.INSTANCE.getCookiesMap().clear(); LoggingCookieStore.INSTANCE.getCookiesMap().clear(); LoggingCookieStore.INSTANCE.getCookiesMap().clear(); LoggingCookieStore.INSTANCE.getCookiesMap().clear(); LoggingCookieStore.INSTANCE.getCookiesMap().clear();
0
LOG.info("Number of hosts to monitor: "+allHosts.size()); LOG.info("host : "+ hostObj.getHostName() +", last heartbeat = "+lastHeartbeat);
0
import org.apache.cocoon.util.AbstractLogEnabled;
0
.setStartCommand("echo") .setRequestedPorts(ImmutableSet.<String>of());
0
if (log.isDebugEnabled()) { log.debug("De-reference of KeyInfoReference URI returned null: " + uriAttr.getValue()); }
0
quotaManager.checkCronUpdate(sanitized.getJobConfig(), storeProvider));
0
import org.apache.ambari.logsearch.config.api.model.inputconfig.FilterGrokDescriptor; public Input getTestInput(InputConfig inputConfig, String logId) { for (InputDescriptor inputDescriptor : inputConfig.getInput()) { if (inputDescriptor.getType().equals(logId)) { inputConfigList.add(inputDescriptor...
0
try (final BufferedOutputStream output3 = new BufferedOutputStream(new FileOutputStream(lessFile))) { try (final BufferedOutputStream output2 = new BufferedOutputStream(new FileOutputStream(equalFile1))) { try (final BufferedOutputStream output1 = ...
0
private static String QUOT_EOL = XML_CHAR_QUOT + EOL; private static String CONFIG_USAGE = private static String CONFIG_SVG_BEGIN = private static String CONFIG_SVG_TEST_CARD_START = private static String CONFIG_SVG_TEST_CARD_END =
0
import java.util.Date; Date startDate; public Date getStartDate() { return startDate; } public void setStartDate(Date date) { this.startDate = date; }
0
* Defines if Upgrade Catalog should be executed last * @return */ boolean isFinal(); /**
0
@QueryParam(LogSearchConstants.REQUEST_PARAM_HOSTS) private String hostList; @Override public String getHostList() { return hostList; } @Override public void setHostList(String hostList) { this.hostList = hostList; }
0
import org.apache.cocoon.portal.avalon.AbstractComponent;
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(NamespaceIdTest.class); @Test(timeout = 30_000) public void testCacheIncreasesAndDecreasesAfterGC() { long initialSize = NamespaceId.cache.asMap().entrySet().stream().count(); assertTrue(in...
0
import org.apache.beam.sdk.io.aws.options.S3ClientBuilderFactory; import org.apache.beam.sdk.util.InstanceBuilder; this.amazonS3 = InstanceBuilder.ofType(S3ClientBuilderFactory.class) .fromClass(options.getS3ClientFactoryClass()) .build() .createBuilder(options) ...
0
byte[] output = new byte[colFam.length()];
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 void testOpcodeExtractorOnNull() { assertEquals(-1, PtyMode.OPCODE_EXTRACTOR.applyAsInt(null));
0
import org.apache.accumulo.core.client.impl.Namespace; private static final Namespace.ID NSID = new Namespace.ID("namespace");
1
private final String class_name; // name of current class private final PrintWriter file; // file to write to private final ConstantHTML constant_html; private final AttributeHTML attribute_html;
0
package org.apache.bcel.generic; import org.apache.bcel.ExceptionConst; super(org.apache.bcel.Const.MONITOREXIT, (short) 1);
1
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString;
0
public HttpContextBridge(final ServletContextHelper delegatee)
0
} catch (AtlasBaseException e) { LOG.error("Unable to get schema for entity={}", guid, e); throw new WebApplicationException(Servlets.getErrorResponse(e, e.getAtlasErrorCode().getHttpCode()));
0
* @version $Id$
0
ots.addTestSuite(WhiteBoard.class); ots.addTestSuite(Extender.class); ots.addTestSuite(EventAdmin.class);
0
import java.util.Optional; assertEquals(Optional.empty(), leaderRedirector.getRedirect()); assertEquals(Optional.empty(), leaderRedirector.getRedirect()); assertEquals(Optional.empty(), leaderRedirector.getRedirect());
0
import org.apache.sshd.common.channel.exception.SshChannelClosedException; PropertyResolverUtils.updateProperty(session, SftpClient.SFTP_CHANNEL_OPEN_TIMEOUT, TimeUnit.SECONDS.toMillis(7L)); } catch (SocketTimeoutException | EOFException | WindowClosedException | SshChannelClosedException e) {
0
/** $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v 1.3 2002/04/20 18:31:01 craigmcc Exp $ * $Revision: 1.3 $ * $Date: 2002/04/20 18:31:01 $ * @version $Revision: 1.3 $ $Date: 2002/04/20 18:31:01 $ logWriter...
0
import org.apache.aurora.common.quantity.Amount; import org.apache.aurora.common.quantity.Time; import org.apache.aurora.common.testing.easymock.EasyMockTest;
0
* defined by RFC 2045, by Freed and Borenstein. * @see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>, by Freed and Borenstein: * Multipurpose Internet Mail Extensions (MIME) Part One: * Format of Internet Message Bodies. Reference 1996. * @version $Id: Base64.java,v 1.12 2003/11/03 22:16...
0
import org.apache.beam.sdk.AggregatorRetrievalException; import org.apache.beam.sdk.AggregatorValues; pipeline.getAggregatorSteps();
0
new PoolableConnectionFactory(connFactory, null); new PoolableConnectionFactory(connFactory, null); new PoolableConnectionFactory(connFactory, null);
0
String expected = "usage: app [-a]"; assertEquals("simple auto usage", expected, out.toString().trim()); expected = "usage: app [-b] [-a]"; assertEquals("simple auto usage", expected, out.toString().trim());
0
ComponentHandler handler = (ComponentHandler)this.componentHandlers.get( role ); final ComponentHandler handler = (ComponentHandler)this.componentMapping.get( component ); final ComponentHandler handler = (ComponentHandler)this.newComponentHandlers.get( i ); ...
0
final Object h1 = new Object(); final Object h2 = new Object(); final Object h3 = new Object(); final UriPatternMatcher<Object> matcher = new UriPatternMatcher<Object>(); final UriPatternMatcher<Object> matcher = new UriPatternMatcher<Object>(); final Object h1 = new Obje...
0
// return customer-supplied properties without updating them if (isFQDNValue(origValue)) { return origValue; } /** * Convenience method to determine if a property value is a * customer-specified FQDN. * * @param value property value to examine * @return true if t...
0
/** Convert runtime java.lang.Class to BCEL Type object. * @param cl Java class * @return corresponding Type object */ public static Type getType(java.lang.Class cl) {
0
package org.apache.commons.digester3.edsl.atom; /* * 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 Apa...
0
package org.apache.commons.ognl.test.objects;
0
BatchScanner bs = conn.createBatchScanner(clientOpts.getTableName(), auths, bsOpts.scanThreads);
0
LOG.debug("Loaded widget descriptor: {}", widgetDescriptor);
1
x509Util.close();
0
if (saslEnabled()) { if (saslEnabled()) {
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