Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List;
0
public class HostComponentUpdateEventPublisher extends BufferedUpdateEventPublisher<HostComponentUpdate> { @Override protected Runnable getScheduledPublished(EventBus m_eventBus) { return new HostComponentsEventRunnable(m_eventBus); List<HostComponentUpdate> hostComponentUpdates = retrieveBuffer(); ...
0
final UnaryFunction<?, Long> eventTimeAssigner = operator.getEventTimeAssigner(); new CompositeKeyExtractor(keyExtractor, valueExtractor, windowing, eventTimeAssigner)); private final UnaryFunction eventTimeAssigner; Windowing windowing, ...
0
@Description("Base name of Kafka source topic in streaming mode.") @Nullable @Default.String("nexmark-source") String getKafkaSourceTopic(); void setKafkaSourceTopic(String value); @Description("Base name of Kafka sink topic in streaming mode.") @Nullable @Default.String("nexmark-sink") String getK...
0
import org.apache.accumulo.minicluster.impl.MiniAccumuloConfigImpl; public void configure(MiniAccumuloConfigImpl cfg) {
0
.register("http", new MyConnectionSocketFactory()) .build(); CloseableHttpClient httpclient = HttpClients.custom() .setConnectionManager(cm) .build(); HttpHost target = new HttpHost("localhost", 80, "http"); System.out.print...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestArrayIterator.java,v 1.6 2002/02/25 22:48:52 morgand Exp $ * $Revision: 1.6 $ * $Date: 2002/02/25 22:48:52 $ * * @author Morgan Delagrange * @version $Id: TestArray...
0
* The Google Compute Engine * <a href="https://cloud.google.com/compute/docs/regions-zones/regions-zones">region</a> * for creating Dataflow jobs. * * <p>NOTE: The Cloud Dataflow service does not yet honor this setting. However, once service * support is added then users of this SDK will be able to co...
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
* 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...
0
import java.io.IOException; import java.util.concurrent.ExecutionException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(SimpleWordCount.class); public static void main(String[] args) { try { // Allocate an executor by the specified na...
0
} catch (KeeperException | InterruptedException e) {
0
import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; public static URI findRepositoryXml( String mavenRepository, String obrRepository ) uri = new File( obrRepository ).toURI(); * @param repository maven repository * @param artifact maven a...
0
assertEquals(Integer.parseInt(cf) + Integer.parseInt(cq), Integer.parseInt(value)); assertTrue("Encountered unexpected split on the cloned table: " + clonedSplit, assertTrue("Did not find all expected splits on the cloned table: " + expectedSplits, fail("Unexpected number of entries");
0
import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; public static String getNamespaceOpt(final CommandLine cl, final Shell shellState) throws NamespaceNotFoundException, AccumuloException, AccumuloSecurityException {
0
* {@link PBegin} is the "input" to a root {@link PTransform}, such as {@link Read Read} or * {@link Create}. * Returns a {@link PBegin} in the given {@link Pipeline}. * of the {@link PTransform}. * Applies the given {@link PTransform} to this input {@link PBegin}, * Constructs a {@link PBegin} in the give...
0
import org.apache.ambari.server.StaticallyInject; import com.google.inject.Inject; @StaticallyInject public static final String LZO_CODEC_CLASS_PROPERTY_NAME = "io.compression.codec.lzo.class"; public static final String LZO_CODEC_CLASS = "com.hadoop.compression.lzo.LzoCodec"; @Inject private static org.apach...
0
super("FollowerRequestProcessor:" + zks.getClientPort());
0
import java.util.concurrent.TimeUnit; import org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.http.impl.ConnectionListener; import org.apache.hc.core5.http.impl.Http1StreamListener; import org.apache.hc.core5.http.impl.HttpProcessors; import org.apache.hc.core5.pool.ConnPoolListener; import org.apache.hc....
0
import org.codehaus.jackson.annotate.JsonProperty; List<ExecutionCommand> executionCommands = new ArrayList<ExecutionCommand>(); RegistrationCommand registrationCommand; @JsonProperty("responseId") @JsonProperty("responseId") @JsonProperty("executionCommands") public List<ExecutionCommand> getExecutionCo...
1
final int buffersize, public void setSocketTimeout(final int timeout) {
0
package org.apache.accumulo.server.test.randomwalk.concurrent; import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import java.util.Properties; import java.util.Random; import org.apache.accumulo.core.Constants; import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.cor...
1
void removeHeaders(String name);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/PropertyUtils.java,v 1.10 2001/09/19 01:50:37 craigmcc Exp $ * $Revision: 1.10 $ * $Date: 2001/09/19 01:50:37 $ * @version $Revision: 1.10 $ $Date: 2001/09/19 01:50:37 $ * intr...
0
public void testWrongPassword() throws Exception { try(SshClient client = SshClient.setUpDefaultClient()) { client.start(); try(ClientSession s = client.connect("user", "localhost", port).await().getSession()) { s.addPasswordIdentity("bad password"); a...
0
HttpClient client = HttpClients.custom()
0
Comparator<IN> c = comparator::apply; Iterable<IN> values = reducibleValues.get(); try (ExternalIterable<IN> sorted = spill.sorted(values, c)) { reducer.apply(StreamSupport.stream(sorted.spliterator(), false), ctx); } } catch (InterruptedException ex) {
0
final Collection<ServletContextDTO> contextDTOs = new ArrayList<ServletContextDTO>(); // add the context for the http service final ServletContextHelperInfo info = new ServletContextHelperInfo(Integer.MAX_VALUE, 0, HTTP_SERVICE_CONTEXT_NAME, "/", null); final ServletContextDTO dto = Serv...
0
import org.apache.hc.core5.reactor.IOSession; import org.apache.hc.core5.reactor.ListenerEndpoint; import org.apache.hc.core5.reactor.ssl.SSLSetupHandler;
1
* @version $Revision: 1.7 $ $Date: 2004/07/07 20:01:35 $ // free basefile getManager().setBaseFile((FileObject) null); // free basefile getManager().setBaseFile((FileObject) null);
0
import java.util.Map; import java.util.concurrent.ConcurrentHashMap; private final ConcurrentHashMap<AuthScope, Credentials> credMap; this.credMap = new ConcurrentHashMap<AuthScope, Credentials>(); public void setCredentials( final Map<AuthScope, Credentials> map, public Credentials get...
0
import java.sql.SQLException; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.H2DatabaseCleaner; public void after() throws AmbariException, SQLException { H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector); }
0
public AuthScheme create(final HttpContext context) {
0
* @throws Exception if invocation failed; IntrospectionException if a property getter could not be found * @throws Exception if invocation failed; IntrospectionException if a property setter could not be found
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; }
0
import com.twitter.common.application.modules.LifecycleModule; LifecycleModule.bindServiceRunner(binder(), ThriftServerLauncher.class);
0
public List<? extends BoundedSource<T>> split( // If this source represents a split from split, // then return the size of the split, rather then the entire input
0
import org.apache.directory.api.util.Strings; import org.apache.hadoop.security.authentication.util.KerberosName; import org.apache.hadoop.security.authentication.util.KerberosUtil; import sun.security.krb5.KrbException; public static final String HADOOP_SECURITY_AUTH_TO_LOCAL = "hadoop.security.auth_to_local"; pub...
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
* @version CVS $Id: FormattingDateConvertorBuilder.java,v 1.3 2004/07/04 14:35:41 joerg Exp $ if (variant.equals(FormattingDateConvertor.DATE) || variant.equals(FormattingDateConvertor.TIME) || variant.equals(FormattingDateConvertor.DATE_TIME)) { conv...
0
public String description() { return "Prints usage"; } @Override
0
public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException { final CharArrayBuffer buffer; final ParserCursor cursor;
0
List<T> list = new ArrayList<>(); List<Text> encList = new ArrayList<>(); List<T> decodedList = new ArrayList<>();
0
import org.apache.accumulo.harness.AccumuloClusterHarness; public class RestartStressIT extends AccumuloClusterHarness {
0
LOG.debug("Triggering Action Manager, request={}", request);
1
import org.apache.accumulo.core.util.HostAndPort;
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
Mockito.when(this.reuseStrategy.keepAlive(request, response, exchangeContext)).thenReturn(Boolean.TRUE); Mockito.when(this.reuseStrategy.keepAlive(request, response, exchangeContext)).thenReturn(Boolean.TRUE); Mockito.when(this.reuseStrategy.keepAlive(request, response, exchangeContext)).thenRet...
0
if (serviceInfo.isMaintainerEmpty()) { serviceInfo.setMaintainer(parent.getMaintainer()); }
0
package org.apache.batik.ext.awt.image.renderable; import org.apache.batik.ext.awt.image.rendered.CachableRed; import org.apache.batik.ext.awt.image.rendered.PadRed; import org.apache.batik.ext.awt.image.rendered.BufferedImageCachableRed; import org.apache.batik.ext.awt.image.rendered.AffineRed; public class GaussianB...
0
import org.apache.felix.sigil.common.repository.IBundleRepository; import org.apache.felix.sigil.common.repository.IRepositoryProvider; import org.apache.felix.sigil.common.repository.RepositoryException;
0
private static final long serialVersionUID = 939724715678693963L;
0
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken; import org.apache.accumulo.core.client.security.tokens.PasswordToken;
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; assertTrue("Max Migration exceeded " + maxMigrations + " " + migrationsOut.size(), assertEquals(tabletLocs.get(tabletMigration.tablet), tabletMigration.oldServer); assertTrue(tservers.contains(tabletMigr...
0
* Gets the {@link HostRoleCommand} matching the specified ID from this stage. * This will not hit the database, instead using the pre-cached list of HRCs * from the construction of the stage. * * @param taskId * the ID to match * @return the {@link HostRoleCommand} or {@code null} if none ...
0
* Utilities for working with {@link DoFnSignature}. See {@link #getSignature}. private DoFnSignatures() {}; private static final Map<Class<?>, DoFnSignature> signatureCache = new LinkedHashMap<>(); public static <FnT extends DoFn<?, ?>> DoFnSignature signatureForDoFn(FnT fn) { public static synchronized <FnT e...
0
/** * This parameter can no longer be used at the request level. * @deprecated (4.3) */ @Deprecated
0
import org.apache.commons.lang3.StringUtils;
0
package org.apache.felix.sigil.core.repository; import org.apache.felix.sigil.repository.IBundleRepository; import org.apache.felix.sigil.repository.IRepositoryProvider; import org.apache.felix.sigil.repository.RepositoryException;
0
return input.apply(Combine.globally(new FixedSizedSampleFn<>(sampleSize))); return input.apply(Combine.perKey(new FixedSizedSampleFn<>(sampleSize))); return new ArrayList<>((int) limit); topCombineFn = new Top.TopCombineFn<>( sampleSize, new KV.OrderByKey<>());
0
FTPListParseEngine engine = new FTPListParseEngine(parser, __configuration); FTPListParseEngine engine = new FTPListParseEngine(MLSxEntryParser.getInstance(), __configuration);
0
import org.apache.accumulo.core.data.TableId; private TableId tableId; public CopyFailed(TableId tableId, String source, String bulk, String error) {
0
data(charbuf, endOfStream);
0
* @since 3.0
0
import java.lang.reflect.Field; import org.apache.commons.jexl.util.Introspector; import org.apache.commons.jexl.util.introspection.Info; Iterator iter = null; Object result = evaluate(context); if (result != null) { /* The Info object is supposed to contain the script ...
0
import org.apache.beam.model.jobmanagement.v1.ArtifactApi.Manifest; "Artifact location %s is not a directory", * Returns the {@link File} which contains the {@link Manifest}. * Returns the local location of this {@link LocalArtifactStagingLocation}.
0
import org.apache.http.conn.scheme.PlainSocketFactory; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.scheme.SchemeRegistry; context.setAttribute(ClientContext.ROUTE, route); context.setAttribute(ClientContext.ROUTE, route); context.setAttribute(ClientContext.ROUTE, route...
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 m...
0
ArrayList<String> tmp = new ArrayList<String>(getPackages()); ArrayList<String> tmp = new ArrayList<String>(getPackages());
0
package org.apache.beam.runners.flink.translation.types;
0
* @version $Revision$ $Date$
0
context.getCounter(Counts.CORRUPT).increment(1l); context.getCounter(Counts.UNDEFINED).increment(1l); context.getCounter(Counts.UNREFERENCED).increment(1l); context.getCounter(Counts.REFERENCED).increment(1l);
0
* @version CVS $Id$ public interface EventRegistry {
0
import org.apache.ambari.server.controller.spi.PropertyId; import org.apache.ambari.server.controller.spi.Request; /** * The property ids associated with this request. Used for requests that * get resource values. */ /** * The properties associated with this request. Used for requests that create *...
1
import org.apache.beam.sdk.nexmark.queries.NexmarkQueryTransform; public class SqlQuery3 extends NexmarkQueryTransform<NameCityStateId> {
0
loader.dispose();
0
import org.apache.beam.sdk.transforms.windowing.TimestampCombiner; TimestampCombiner timestampCombiner = windowingStrategy.getTimestampCombiner(); WindowFn<Object, W> windowFn = windowingStrategy.getWindowFn(); timestampCombiner.assign( mergedWindow, windowFn.getOutputTime(curren...
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
* * /** * Tests whether whitespace is left unchanged for quoted values. */ public void testQuotedValueWithWhitespace() throws Exception { final String content = "CmdPrompt = \" [test@cmd ~]$ \""; INIConfiguration config = new INIConfiguration(); config.load(new StringRe...
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionShortCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $ import org.apache.commons.collections.AbstractTestObject; * @version $Revi...
0
* Activate bridges and internal manager.
0
* @param das List of dirty areas. * @param das List of dirty areas.
1
* * * * List<ByteBuffer> args = Arrays.asList(ByteBuffer.wrap(tableName.getBytes(UTF_8)), start == null ? EMPTY : TextUtil.getByteBuffer(start), end == null ? EMPTY : TextUtil.getByteBuffer(end)); List<ByteBuffer> args = Arrays.asList(ByteBuffer.wrap(tableName.getBytes(UTF_8)), start == null ?...
0
* Immutable once set. ((ExtenderManager) m_managers.get(i)).open(); ((ExtenderManager) m_managers.get(i)).close();
0
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.base.Preconditions; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v26_0_jre.com.goog...
0
import org.apache.aurora.codec.ThriftBinaryCodec.CodingException; import org.apache.aurora.gen.storage.Snapshot; import org.apache.aurora.scheduler.storage.Storage.StorageException; * A storage component that applies full-state snapshots. public interface SnapshotStore { * Clean up the underlying storage by optimi...
0
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlExpressionEnvironments; public class BeamNullExpressionTest extends BeamSqlFnExecutorTestBase { Assert.assertEquals( false, exp1.evaluate(row, null, BeamSqlExpressionEnvironments.empty()).getValue()); Assert.assertEquals( true, ex...
0
* @param session the current ssh session * @param buffer the request buffer containing parameters specific to this request * failed and {@code null} if not finished yet * @param buffer the request buffer containing parameters specific to this request * failed and {@code null} if not finished...
1
LOG.debug("Task dump :{}", taskStatus); LOG.info("Cluster Dump: " + sb); LOG.debug("Stage dump: {}", stage); LOG.debug("Stage dump: {}", stage); LOG.debug("Stage dump: {}", stage); LOG.debug("role: {}", hrc.getRole()); LOG.info("Stage dump : " + s); String secretName = "S...
1
import org.apache.hc.core5.annotation.Immutable; import org.apache.hc.core5.util.Args;
1
import org.apache.felix.scr.annotations.sling.SlingFilter; import org.apache.felix.scr.annotations.sling.SlingServlet; final String[] scopes = Util.getAnnotationValues(annotation, "scope", description); tags.add(new SlingServletPropertyTag(annotation, "sling.filter.scope", scopes, description, t...
0
return String.format("%s.%s", getJobSourceName(task), task.getInstanceIdDEPRECATED());
0
package org.apache.commons.fileupload2.util;
0
import org.apache.http.HeaderIterator; private HttpParams params; // non-javadoc, see interface HttpMessage // non-javadoc, see interface HttpMessage // non-javadoc, see interface HttpMessage // non-javadoc, see interface HttpMessage // non-javadoc, see interface HttpMessage // non-javadoc, ...
0
public class MultiScanSession extends ScanSession { super(credentials, new HashSet<>(), ssiList, ssio, authorizations); public Type getScanType() { return Type.MULTI; } @Override public String getTableId() { return threadPoolExtent.getTableId().canonicalID(); } @Override
0
public static final String IMPULSE_ELEMENT = "impulse_element";
0
package org.w3c.dom.svg; import org.w3c.dom.events.EventTarget; public interface SVGForeignObjectElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, E...
1
import org.apache.accumulo.core.client.sample.RowSampler; import org.apache.accumulo.core.client.sample.SamplerConfiguration;
0
* A Flink combine runner that first sorts the elements by window and then does one pass that merges * windows and outputs results. Collector<WindowedValue<KV<K, OutputT>>> out) throws Exception { AccumT accumulator = flinkCombiner.firstInput( key, firstValue, options, sideInputRead...
1