Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
Mockito.verify(managedConn, Mockito.times(1)).close();
0
BundleProcessor<PCollectionNode, CommittedBundle<?>, PTransformNode> bundleProcessor, private final Map<PTransformNode, ConcurrentLinkedQueue<CommittedBundle<?>>> pendingRootBundles; BundleProcessor<PCollectionNode, CommittedBundle<?>, PTransformNode> bundleProcessor, Map<PTransformNode, ConcurrentL...
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 u...
0
import org.apache.ambari.server.state.UpgradeContextFactory; binder.bind(UpgradeContextFactory.class).toInstance(EasyMock.createNiceMock(UpgradeContextFactory.class));
0
Collection<Text> remainingSplits = this.getConnector().tableOperations().listSplits(table);
0
// Force computation of DStream. dStream.dstream().register();
0
public class DurationCoder extends CustomCoder<ReadableDuration> { private static final VarLongCoder LONG_CODER = VarLongCoder.of(); LONG_CODER.encode(toLong(value), outStream, context); return fromLong(LONG_CODER.decode(inStream, context)); } @Override public void verifyDeterministic() { LONG_CO...
0
* This annotation defines behavioral contract enforced at runtime by instances of annotated classes. @Retention(RetentionPolicy.CLASS) public @interface Contract { ThreadingBehavior threading() default ThreadingBehavior.UNSAFE;
0
* * * * * * * *
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
// @formatter:off org.apache.accumulo.core.client.mapreduce.RangeInputSplit accSplit = (org.apache.accumulo.core.client.mapreduce.RangeInputSplit) split; // @formatter:on
0
// To prevent extension outside of this package. AppliedPTransform() {}
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
/* Cassandra */
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 ...
1
import java.sql.Statement; private Integer defaultQueryTimeout = null; /** * Obtain the default query timeout that will be used for {@link Statement}s * created from this connection. <code>null</code> means that the driver * default will be used. */ public Integer getDefaultQueryTimeout...
0
import org.apache.http.params.BasicHttpParams; this.params = new BasicHttpParams(null);
0
@SuppressWarnings("rawtypes") @Override public void addedService(ServiceReference ref, Object event) { getComponentContext().handleEvent(this, EventType.ADDED, new ServiceEventImpl(m_component, ref, m_serviceInstance)); @SuppressWarnings("rawtypes") @Override @SuppressWar...
0
userpass = tpc.proxy().login("root", new TreeMap<String,String>() { { put("password", ""); } }); // TODO: add back in as a test when Mock is improved - ACCUMULO-1306 @Test tpc.proxy().deleteRows(userpass, testtable, ByteBuffer.wrap("51".getBytes()), ByteBuffer.wrap("99".getBytes()));
0
* DefaultAppleResponse provides a default implementation for the
0
response.getEntity(), ElasticsearchIO.getBackendVersion(connectionConfiguration)); JsonNode searchResult = ElasticsearchIO.parseResponse(response.getEntity()); JsonNode searchResult = parseResponse(response.getEntity());
0
/* * Copyright 2001-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 applica...
0
for (Header header : headers) { HEADERS_LOG.debug("<< " + header.toString()); for (Header header : headers) { HEADERS_LOG.debug(">> " + header.toString());
0
HttpCacheEntry updated = new BasicHttpCacheEntry(
0
import com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel; @Test public void testGcsUploadBufferSizeDefault() throws IOException { DataflowPipelineOptions batchOptions = buildPipelineOptions(); DataflowRunner.fromOptions(batchOptions); assertNull(batchOptions.getGcsUploadBufferSizeBytes()); ...
0
.add( DisplayData.item("inferBeamSchema", getInferBeamSchema()) .withLabel("Infer Beam Schema")) .addIfNotNull(DisplayData.item("schema", String.valueOf(getSchema()))) .addIfNotNull(DisplayData.item("recordClass", getRecordClass()).withLabel("Record Class"))...
0
import java.util.Map; import java.util.concurrent.TimeUnit; import org.apache.sshd.client.ClientFactoryManager; import org.apache.sshd.common.PropertyResolverUtils; import org.apache.sshd.common.session.SessionHeartbeatController.HeartbeatType; import org.apache.sshd.common.util.GenericUtils; public static <C exte...
0
* @since 1.4 * @since 1.4 * @since 2.0 * @since 2.0 * @since 1.3 * @since 1.3
1
import org.apache.aurora.gen.MaintenanceMode; MaintenanceMode mode, Set<Veto> vetoes = delegate.filter(offer, slaveHost, mode, task, taskId, jobState);
0
* @deprecated (4.3) use {@link org.apache.http.impl.client.HttpClientBuilder}.
0
// SQL array indexing is 1 based return BeamSqlPrimitive.of(outputType, array.get(index - 1));
0
import org.apache.http.annotation.Immutable; @Immutable // provided injected dependencies are immutable
0
/** Return only directories? */ private boolean iterateDirectories = false; public FileIterator(Project project, Iterator fileSetIterator) { this( project, fileSetIterator, false); } public FileIterator(Project project, Iterator fileSetIterat...
0
* Deprecated since 1.9. * * @param right the Phoneme to join * @return a new Phoneme
0
import org.apache.ambari.server.stack.upgrade.UpgradePack;
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
DataSource newDataSource; newDataSource = createDataSourceInstance(); newDataSource.setLogWriter(logWriter); dataSource = newDataSource;
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
package org.apache.felix.scr.impl.inject;
0
private final Map resourceBundleCaches; this.resourceBundleCaches = new HashMap(); * @return the resource bundle - if not bundle with the requested locale exists, cache = ( ResourceBundleCache ) resourceBundleCaches.get( key );
0
import org.apache.http.params.HttpConnectionParams; * <li>{@link org.apache.http.params.CoreConnectionPNames#SO_TIMEOUT}</li> return new DefaultNHttpServerConnection( int timeout = HttpConnectionParams.getSoTimeout(this.params); session.setSocketTimeout(timeout); this.handler.connected(con...
0
sb.append("<div class='left show'><dl>\n");
0
import org.apache.cocoon.components.flow.java.*; ArrayList results = new ArrayList(); // Sort result Collections.sort(results, new EmployeeComparator()); public class EmployeeComparator implements Comparator, Continuable { public int compare(Object o1, Object o2) { retur...
0
package org.apache.felix.karaf.gshell.admin.internal.commands; import org.apache.felix.karaf.gshell.admin.AdminService; import org.apache.felix.karaf.gshell.admin.Instance; import org.apache.felix.karaf.gshell.core.OsgiCommandSupport;
0
public <R,P> R accept(NodeVisitor<? extends R, ? super P> visitor, P data) { return visitor.visit(this, data); }
0
// Used to specify the maximum # of versions of an Accumulo cell value to return * Specify an Accumulo iterator type to manage the behavior of the underlying table scan this InputFormat's Record Reader will conduct, w/ priority dictating * The Class RangeInputSplit. Encapsulates an Accumulo range for use in Map...
0
* @param jobKey Job key. public boolean deleteJob(JobKey jobKey) {
0
public void init(AbstractSession s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception { super.init(s, v_s, v_c, i_s, i_c);
1
* SSLNHttpServerConnectionFactory#SSLNHttpServerConnectionFactory(SSLContext, * SSLSetupHandler, HttpRequestFactory, ByteBufferAllocator)} * SSLNHttpServerConnectionFactory#SSLNHttpServerConnectionFactory(SSLContext, * SSLSetupHandler)} * SSLNHttpServerConnectionFactory#SSLNHttpSe...
0
Collections.emptyList(),
0
public NullInputStreamTest(final String name) { final int size = 5; final InputStream input = new TestNullInputStream(size); final int result = input.read(); } catch (final IOException e) { final byte[] bytes = new byte[10]; final InputStream input = new TestNullI...
1
* Copyright (C) 2015 Google Inc.
0
return attemptHiveConnection(pass,ldapEnabled); return attemptHiveConnection(NO_PASSWORD,ldapEnabled); private Response attemptHiveConnection(String pass, boolean ldapEnabled) { if(isLoginError(e) && ldapEnabled)
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
private static final long serialVersionUID = -4604082205545049134L;
0
package com.twitter.nexus.scheduler.configuration;
0
package org.apache.hc.core5.http.nio.codecs;
0
/** {@code ConverterRule} to replace {@code Intersect} with {@code BeamIntersectRel}. */ super( LogicalIntersect.class, Convention.NONE, BeamLogicalConvention.INSTANCE, "BeamIntersectRule"); @Override public RelNode convert(RelNode rel) { intersect.all);
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 2013 Twitter, Inc. * * 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 or agreed t...
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 use ...
0
* <code>TranscoderOutput</code>. This method does nothing if the output already
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 java.util.Collection; import java.util.HashMap; import java.util.Map; import org.apache.hc.client5.http.cache.HttpCacheCASOperation; import org.apache.hc.core5.util.Args; @Override public Map<String, HttpCacheEntry> getEntries(final Collection<String> keys) throws ResourceIOException { Args.notN...
0
import org.apache.http.params.HttpParams; public class TestHttpServer { private final ListeningIOReactor ioReactor; private final HttpParams params; private final Object socketMutex; private volatile IOReactorThread thread; private volatile InetSocketAddress address; public TestHttpServer(final...
0
import org.apache.sshd.client.subsystem.sftp.extensions.SftpClientExtension; /** * @param extensionType The extension type * @return The extension instance - <B>Note:</B> it is up to the caller * to invoke {@link SftpClientExtension#isSupported()} - {@code null} if * this extension type is not i...
0
} catch (final URISyntaxException e) {
0
// nothing extra
0
if (SideEffect.hasActions(result.getSideEffects().values())) { throw new IllegalArgumentException( "A terminal state should not specify actions: " + result); } LOG.info("Executing side-effects for update of " + job + ": " + result.getSideEffects()); for (Map.Entry<Integer, Si...
0
for (final String pattern : patterns) {
0
* @version $Id$
0
import com.google.cloud.dataflow.sdk.util.TimeDomain; if (c.timeDomain() != TimeDomain.PROCESSING_TIME) { return TriggerResult.CONTINUE; } Instant delayedUntil = c.state().access(DELAYED_UNTIL_TAG).get().read(); if (delayedUntil == null || delayedUntil.isAfter(c.timestamp())) { return Trigg...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/BeanUtilsTestCase.java,v 1.9 2002/04/27 23:11:23 craigmcc Exp $ * $Revision: 1.9 $ * $Date: 2002/04/27 23:11:23 $ * @version $Revision: 1.9 $ * Test populate() on mapped proper...
0
private static final long serialVersionUID = 0;
0
import org.apache.cocoon.forms.FormsException; if (!(definition instanceof RepeaterDefinition)) { throw new FormsException("Parent definition " + definition.getClass().getName() + " is not a RepeaterDefinition.", getLocation()); } RepeaterDefiniti...
0
import java.util.Map; NamedResource resourceKey, PuttyKeyReader pubReader, PuttyKeyReader prvReader, Map<String, String> headers)
0
import org.apache.beam.sdk.transforms.DoFnSchemaInformation; WINDOWING_STRATEGY, DoFnSchemaInformation.create());
0
import org.apache.cocoon.objectmodel.ObjectModel; import org.apache.cocoon.xml.NamespacesTable; ObjectModel objectModel, NamespacesTable namespaces, Event startEvent, Event endEvent) throws SAXException {
0
* @param compare result of comparison to evaluate
0
/* * Copyright (c) OSGi Alliance (2012, 2014). All Rights Reserved. * * 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 re...
0
Init.init(); Document doc=DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); Attr uri=doc.createAttribute("id"); uri.setNodeValue("urn:ddd:uuu"); ((Element)doc.createElement("test")).setAttributeNode(uri); try { Resour...
0
import org.apache.accumulo.core.clientImpl.Namespace; import org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException; import org.apache.accumulo.core.securityImpl.thrift.TCredentials;
0
import cz.seznam.euphoria.core.client.dataset.WindowContext; public interface WindowAware<IN, W extends WindowContext<?, ?>> {
0
import com.google.bigtable.v2.MutateRowResponse; import com.google.bigtable.v2.Mutation; import com.google.bigtable.v2.Row; import com.google.bigtable.v2.RowFilter; import com.google.bigtable.v2.SampleRowKeysResponse; import com.google.cloud.bigtable.config.BigtableOptions; import com.google.cloud.bigtable.config.Retry...
0
import java.util.Set; private Set<String> excludedConfigTypes; excludedConfigTypes = service.getExcludedConfigTypes(); public Set<String> getExcludedConfigTypes() { return excludedConfigTypes; }
0
/** This is a map using the name as the key and {@link PropertyDescription} * as values. */ final private Map properties = new HashMap(); public void testProperty(JavaTag property, String defaultName, JavaField field, boolean isInspectedClass) properties.put(propName, new Property...
0
import com.google.common.annotations.VisibleForTesting; public class AvroCoder<T> extends CustomCoder<T> { private final AvroCoder<T> myCoder = AvroCoder.this; return myCoder.createDatumReader(); this.writer = new EmptyOnDeserializationThreadLocal<DatumWriter<T>>() { private final Av...
0
import static junit.framework.Assert.assertNotNull; import static junit.framework.Assert.assertNull; @Test public void testRenameChildren() { TestResourceDefinition resourceDefinition = new TestResourceDefinition(); ResourceDefinition.PostProcessor processor = resourceDefinition.getPostProcessors().iterator...
0
protected List<Field> lFields = new ArrayList<Field>(); public List<Field> getFields() { List<Field> templFields = new ArrayList<Field>(); Map<String, Field> temphFields = new FastHashMap(); Iterator<Field> dependsIt = depends.getFields().iterator(); for (Iterator<Field> ...
1
* Minimal interface to read a block from a * *
0
import org.apache.hc.core5.io.CloseMode; server.close(CloseMode.IMMEDIATE); requester.close(CloseMode.GRACEFUL);
0
package org.apache.felix.ipojo.runtime.core.api.services; public interface BarService { public void doSomethingWithBar(); }
0
import com.google.common.collect.Lists; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.PriorityQueue;
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 applica...
0
import com.google.cloud.dataflow.sdk.runners.worker.status.BaseStatusServlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public BaseStatusServlet statusServlet() { return new BaseStatusServlet("/...
0
assertEquals("tableId of the keyExtent should be 1", "1", markers.keySet().iterator().next().getTableId().canonicalID());
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
* {@code null} for HTTP. The actual version
0
import org.apache.batik.dom.AbstractAttr; import org.apache.batik.util.SVGConstants; return ((AbstractAttr) a).isId();
0
* <p> * </p> * @return {@code true} if this connection is secure, * {@code false} otherwise * @param secure {@code true} if this connection is secure, for * example if an {@code SSLSocket} is used, or * {@code false} if it is not secure ...
0