Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
throw new SshException("Target directory " + local.toString() + " is probably inaccesible"); | 0 |
SimpleDateFormat sdf1 =
| 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... | 0 |
import org.apache.http.nio.impl.reactor.SessionOutputBuffer; | 0 |
ZooKeeper zk = ClientBase.createZKClient("127.0.0.1:" + secureClientPorts[i], TIMEOUT);
ZooKeeper zk = ClientBase.createZKClient("127.0.0.1:" + secureClientPort, TIMEOUT); | 0 |
HttpParams setParameter(String name, Object value);
HttpParams setLongParameter(String name, long value);
HttpParams setIntParameter(String name, int value);
HttpParams setDoubleParameter(String name, double value);
HttpParams setBooleanParameter(String name, boolean value); | 0 |
int buffersize = HttpConnectionParams.getSocketBufferSize(params);
this.datatransmitter = new SocketHttpDataTransmitter(this.socket, buffersize);
this.datareceiver = new SocketHttpDataReceiver(this.socket, buffersize); | 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 |
* @author William Farner | 0 |
/** TODO: complete javadoc. */
private TypeAwareReduceFunctor(
ReduceFunctor<InT, OutT> functor, TypeDescriptor<OutT> resultType) { | 0 |
* Copyright 2000-2009 The Apache Software Foundation | 0 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TestConfigurationSet {
@Before
@After
@Test
@Test
Iterator<Map.Entry<Object, Object>> iterator = set.iterator();
... | 0 |
/**
*
* @since 1.6.0
*/
| 0 |
import org.apache.mesos.v1.Protos.ExecutorInfo;
import org.apache.mesos.v1.Protos.Volume; | 0 |
Set<String> propertyIds = new HashSet<>(); | 0 |
output.persist(URI.create("stdout:///?dump-partition-id=false")); | 0 |
* @version $Revision$ $Date$ | 0 |
throw new KeeperException.InvalidACLException(clientPath); | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.client.dataset;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience;
import org.apache.beam.sdk.extensions.euphoria.core.client.flow.Flow;
import org.apache.beam.sdk.extensions.euphoria.core.client.io.DataSource;
import org.apache.beam.sd... | 0 |
public void buildGraphicsNode(GraphicsNode node, BridgeContext ctx,
Element element) {
}
| 0 |
public PCollection<KV<String, Integer>> expand(PBegin input) { | 0 |
public interface CompressionFactory extends BuiltinFactory<Compression>, CompressionInformation { | 0 |
import org.apache.commons.configuration.builder.BasicBuilderProperties;
import org.apache.commons.configuration.builder.CopyObjectDefaultHandler;
import org.apache.commons.configuration.builder.FileBasedBuilderProperties;
.registerChildDefaultsHandler(
FileBasedBuilderProperties.... | 0 |
import org.apache.beam.sdk.values.Row;
@Override public BeamSqlPrimitive<? extends Number> evaluate(Row inputRow, | 0 |
// nothing to do here
// TODO - we could remove this method?
// Notify the end of the load phase
this.listener.phaseEnded(new ProcessingPhaseEvent(this, ProcessingPhase.LOAD_MODEL));
// nothing to do here
// TODO - we could remove this method?
// Notify the en... | 0 |
catch (IOException e) //NOPMD | 0 |
import org.apache.accumulo.core.spi.cache.BlockCache;
import org.apache.accumulo.core.spi.cache.BlockCacheManager;
import org.apache.accumulo.core.spi.cache.CacheType; | 0 |
import org.apache.ambari.logfeeder.plugin.filter.Filter;
import org.apache.ambari.logfeeder.plugin.input.InputMarker;
import org.apache.ambari.logfeeder.plugin.manager.InputManager;
private InputFileMarker testInputMarker;
logEntryCacheConfig.setCacheEnabled(false);
logEntryCacheConfig.setCacheLastDedupEnable... | 0 |
private int SMALL_QUEUE_SIZE = 100000;
private int LARGE_QUEUE_SIZE = SMALL_QUEUE_SIZE * 10;
private static final long N = 1000000;
try (BatchWriter bw = c.createBatchWriter(tableName, cfg)) {
for (int i = 0; i < N; i++) {
random.nextBytes(row);
Mutation m = new Mutation(row);
... | 0 |
final List<byte[]> testData = new ArrayList<>(reqNo);
final List<byte[]> testData = new ArrayList<>(reqNo);
final List<byte[]> testData = new ArrayList<>(reqNo);
final List<byte[]> testData = new ArrayList<>(reqNo);
final List<byte[]> testData = new ArrayList<>(reqNo); | 0 |
private static Object getTypedValue(String type, String value) | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/LRUMap.java,v 1.7 2002/02/14 20:58:48 morgand Exp $
* $Revision: 1.7 $
* $Date: 2002/02/14 20:58:48 $
Object key = bubbleList.get( lastItem );
pair.position... | 0 |
* Utility class that converts a RenderingHints object into | 0 |
MetaDataTableScanner rootScanner = new MetaDataTableScanner(instance, SecurityConstants.getSystemCredentials(), RootTable.METADATA_TABLETS_RANGE);
if (!locationState.extent.equals(RootTable.EXTENT)) | 0 |
import com.google.gson.annotations.SerializedName;
import org.apache.ambari.server.state.State;
@SerializedName("payloadLevel")
private StatusCommandPayload payloadLevel = StatusCommandPayload.DEFAULT;
@SerializedName("desiredState")
private State desiredState;
@SerializedName("executionCommandDetails")
... | 0 |
implements FlatMapFunction<SparkElement<WID, IN>, SparkElement<WID, OUT>> {
public Iterator<SparkElement<WID, OUT>> call(SparkElement<WID, IN> elem) {
e -> new SparkElement<>(window, timestamp, e)); | 0 |
private static final Logger LOG = LoggerFactory.getLogger(DBInconsistencyTests.class); | 1 |
return input
.apply(
"Init",
MapElements.via(
new SimpleFunction<T, KV<T, Void>>() {
@Override
public KV<T, Void> apply(T element) {
return KV.of(element, (Void) null);
}
... | 0 |
public class ServiceGraphRequest extends ServiceLogRequest implements UnitParamDefinition { | 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 ap... | 1 |
private static final ByteArrayCoder byteArrayCoder = ByteArrayCoder.of(); | 0 |
* @param viewInstanceEntity entity to refresh
public void refresh(ViewInstanceEntity viewInstanceEntity) {
entityManagerProvider.get().refresh(viewInstanceEntity);
* @param viewInstanceEntity entity to persist
public void create(ViewInstanceEntity viewInstanceEntity) {
entityManagerProvider.get().pe... | 0 |
* Returns the free space on a drive or volume in kibibytes (1024 bytes)
* by invoking the command line.
* @deprecated As of 2.6 deprecated without replacement. Please use {@link java.nio.file.FileStore#getUsableSpace()}.
* Returns the free space on a drive or volume in kibibytes (1024 bytes)
* ... | 0 |
Collections.unmodifiableList(
Arrays.asList(
ServerConnectionServiceFactory.INSTANCE)); | 0 |
* @return | 1 |
* @param t
* @param s | 0 |
* @version CVS $Id: CocoonServlet.java,v 1.19 2003/10/20 13:27:17 cziegeler Exp $
/** Application <code>Context</code> Key for the servlet configuration
* @since 2.1.3
*/
public static final String CONTEXT_SERVLET_CONFIG = "servlet-config";
// Add the servlet configuration
this... | 0 |
case Node.CDATA_SECTION_NODE: | 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 javax.annotation.Nullable;
@Override
@SuppressWarnings("unchecked")
public PCollection<?> translate(FlatMap operator, BeamExecutorContext context) {
return doTranslate(operator, context);
} | 0 |
VARLEN, FIXEDLEN, STRING
case VARLEN:
case FIXEDLEN:
io.setName("longcombiner");
io.setDescription("LongCombiner can interpret Values as Longs in a variety of encodings (variable length, fixed length, or string) before combining");
io.addNamedOption(TYPE, "<VARLEN|FIXEDLEN|STRING|fullCla... | 0 |
for (String arg : args) {
transcoder.transcode(new TranscoderInput(new File(arg).toURI().toURL().toString()),
null); | 0 |
import org.apache.ambari.server.controller.internal.HostKerberosIdentityResourceProvider;
.implement(ResourceProvider.class, Names.named("hostKerberosIdentity"), HostKerberosIdentityResourceProvider.class) | 0 |
public DoFn<InputT, OutputT> getFn() {
return fn;
}
@Override | 0 |
import org.apache.beam.runners.dataflow.BlockingDataflowRunner;
* Options that are used to configure the {@link BlockingDataflowRunner}.
@Description("Configure options on the BlockingDataflowRunner.") | 0 |
long timeout = session.getLongProperty(FORWARD_REQUEST_TIMEOUT, DEFAULT_FORWARD_REQUEST_TIMEOUT); | 0 |
final Method THIS = (Method) o1;
final Method THAT = (Method) o2;
final Method THIS = (Method) o;
for (final Attribute attribute : super.getAttributes()) {
for (final Attribute attribute : super.getAttributes()) {
final Code code = getCode();
final Cod... | 1 |
ReversedBeamSqlRowComparator comparator =
new ReversedBeamSqlRowComparator(fieldIndices, orientation, nullsFirst);
fieldRet *= (orientation.get(i) ? 1 : -1);
private static class ReversedBeamSqlRowComparator implements Comparator<Row>, Serializable {
private final BeamSqlRowComparato... | 0 |
import java.io.OutputStreamWriter;
import org.junit.Assert;
Assert.assertNotNull(ds);
try (Connection c = DriverManager.getConnection("jdbc:apache:commons:dbcp:test")) {
PrintStream ps = new PrintStream(new ByteArrayOutputStream(), false, "UTF-8");
PrintWriter pw = new PrintWriter(new Ou... | 0 |
import com.google.cloud.dataflow.sdk.util.ComposedKeyedWorkItem;
import com.google.cloud.dataflow.sdk.util.KeyedWorkItem;
return ComposedKeyedWorkItem.create(key, Collections.<TimerData>emptyList(), elementsIterable);
return ComposedKeyedWorkItem.create(
return ComposedKeyedWorkItem.create(key, timersIterab... | 0 |
import org.apache.sshd.server.auth.keyboard.KeyboardInteractiveAuthenticator;
* Retrieve the <code>KeyboardInteractiveAuthenticator</code> to be used by
* the SSH server. If no authenticator has been configured (i.e. this method returns
* {@code null}), then client authentication requests based on this m... | 0 |
// TODO(wfarner): Build this action into the scheduler state machine instead. Rather than
// killing a task and re-recreating it, choose the updated or rolled-back task when we are
// deciding to reschedule the task. | 0 |
public int setCount(final E object, final int count) { | 0 |
assert false : "hashCode not designed"; | 0 |
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
private final JavaSparkContext sparkContext;
private final ExecutorService submitExecutor = Executors.newCachedThreadPool();
sparkContext = new JavaSparkContext(conf);
public Comp... | 0 |
private static final long serialVersionUID = 2981727810276161294L;
| 0 |
import java.io.IOException;
final IOException exception = new IOException("message", cause);
final IOException exception = new IOException(cause); | 0 |
import org.apache.hadoop.conf.Configuration;
System.exit(ToolRunner.run(new Configuration(), new CharacterHistogram(), args));
@Override
@Parameter(names = "--vis")
| 0 |
StringBuilder result = new StringBuilder();
private static void cleanupModifier( StringBuilder result, String modifier ) | 0 |
private static final String FACTORY_IMPL_NAME = findFactory( FACTORY_NAME_PROPERTY, DEFAULT_FACTORY_CLASS );
Class clazz = ClassLoaderUtil.getClass( FACTORY_IMPL_NAME, true ); | 0 |
* @deprecated Use WildcardFileFilter. Deprecated as this class performs directory
* filtering which it shouldn't do, but that can't be removed due to compatibility. | 0 |
sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File(targetFolder, "key.ser").toPath())); | 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 |
private final List<AbandonedTrace> traceList = new ArrayList<>();
return new ArrayList<>(traceList); | 0 |
* This class implements the {@link SVGElement} interface. | 0 |
import org.apache.accumulo.fate.zookeeper.ZooReaderWriter; | 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 |
@OneToOne(mappedBy = "hostRoleCommandEntity", cascade = CascadeType.REMOVE)
private TopologyLogicalTaskEntity topologyLogicalTaskEntity;
public TopologyLogicalTaskEntity getTopologyLogicalTaskEntity() {
return topologyLogicalTaskEntity;
}
public void setTopologyLogicalTaskEntity(TopologyLogicalTaskEnti... | 0 |
@ApiOperation(value = "Get all groups", nickname = "GroupService#getGroups", notes = "Returns details of all groups.", response = GroupResponse.class, responseContainer = "List")
@ApiOperation(value = "Get group", nickname = "GroupService#getGroup", notes = "Returns group details.", response = GroupResponse.class)
... | 0 |
Object o = excConstr.newInstance(new Object[]{msg}); | 0 |
import org.apache.beam.sdk.testing.CrashingRunner;
options.setRunner(CrashingRunner.class); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestAll.java,v 1.21 2002/03/01 18:36:21 morgand Exp $
* $Revision: 1.21 $
* $Date: 2002/03/01 18:36:21 $
import org.apache.commons.collections.comparators.*;
* @version $Id: Tes... | 0 |
/**
* Tells whether the given extension is supported by this
* user agent.
*/
boolean supportExtension(String s); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/ByteTest.java,v 1.3 2002/12/15 21:46:41 martinc Exp $
* $Revision: 1.3 $
* $Date: 2002/12/15 21:46:41 $
import org.apache.commons.logging.LogFactory;
* @version $Revision: 1.3 $ $Da... | 0 |
to.importDirectory(bulk.toString()).to(tableName).load(); | 0 |
boolean result = set.retainAll(coll); | 0 |
*
* @param connectionUri
* a database url of the form <code> jdbc:<em>subprotocol</em>:<em>subname</em></code>
*
* @param connectionUri
* a database url of the form <code> jdbc:<em>subprotocol</em>:<em>subname</em></code>
* @param properties
* ... | 0 |
import com.google.cloud.dataflow.sdk.util.state.MergingStateAccessor;
import com.google.cloud.dataflow.sdk.util.state.StateAccessor;
public abstract StateAccessor<K> state();
public abstract MergingStateAccessor<K, W> state();
public void prefetchOnMerge(MergingStateAccessor<K, W> c) throws Exception {}
pub... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestAll.java,v 1.4 2003/04/11 00:55:36 rwaldhoff Exp $
* @version $Revision: 1.4 $ $Date: 2003/04/11 00:55:36 $
suite.addTest(TestCollectionShort... | 0 |
import java.io.IOException;
import java.io.InputStream;
import org.apache.hadoop.fs.FSDataOutputStream;
private static void copyStreamToFileSystem(FileSystem fs, InputStream stream, Path path) throws IOException {
byte[] buffer = new byte[10 * 1024];
try (FSDataOutputStream dest = fs.create(path); InputStream... | 0 |
public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive)
throws IOException {
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options,
IteratorEnvironment env) throws IOException { | 0 |
import org.apache.sshd.common.session.SessionHolder;
public abstract class AbstractUserAuth
extends AbstractLoggingBean
implements UserAuth, SessionHolder<ClientSession>, ClientSessionHolder {
@Override
public final ClientSession getSession() {
return getClientSession();
}
| 0 |
import org.apache.http.annotation.Immutable;
@Immutable | 0 |
public Set<BatchWindow> assignWindowsToElement(WindowedElement<?, T> el) { | 0 |
private ReplicationOperationsImpl getReplicationOperations() {
protected Table.ID getTableId(ClientContext context, String tableName) {
final String tableName, final Set<String> wals) { | 0 |
} catch (IOException | NoSuchMethodException | InvocationTargetException
| IllegalAccessException | InstantiationException e) {
Preconditions.checkArgument(split instanceof Writable, "Split is not writable: "
+ split); | 0 |
private static final long serialVersionUID = -2453956849834747150L; | 0 |
import java.io.Serializable;
/**
* Describe a {@link PTransform} evaluator.
*/
public interface TransformEvaluator<TransformT extends PTransform<?, ?>> extends Serializable {
void evaluate(TransformT transform, EvaluationContext context); | 0 |
import org.apache.beam.sdk.schemas.Schema; | 0 |
public String getMetadataString() {
if (getMetadata() != null) {
return new String(getMetadata(), StandardCharsets.UTF_8);
} else {
return "";
}
}
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.