Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
/**
* Time to wait after connection attempt with the Leader or LearnerMaster before this
* Learner tries to connect again.
*/
private static final int leaderConnectDelayDuringRetryMs =
Integer.getInteger("zookeeper.leaderConnectDelayDuringRetryMs", 100);
LOG.info("leaderConne... | 0 |
if(filter == null){
filteredImage = rc.getGraphicsNodeRableFactory().
createGraphicsNodeRable(this);
}
else { | 0 |
import org.junit.FixMethodOrder;
import org.junit.runners.MethodSorters;
import com.jcraft.jsch.JSch;
@FixMethodOrder(MethodSorters.NAME_ASCENDING) | 0 |
import java.util.Objects;
this.logFile = Objects.requireNonNull(logFile); | 0 |
import org.apache.ambari.view.hive.resources.uploads.ColumnDescriptionImpl;
import java.util.List;
private List<ColumnDescriptionImpl> header;
private Boolean unhexInsert = Boolean.FALSE;
public InsertFromQueryInput(String fromDatabase, String fromTable, String toDatabase, String toTable, List<ColumnDescription... | 0 |
import org.apache.ambari.logfeeder.util.SSLUtil;
import com.google.common.base.Splitter;
import java.util.List;
private final List<String> collectorHosts;
private final String collectorProtocol;
private final String collectorPort;
private final String collectorPath;
String collectorHostsString = LogFeederU... | 0 |
* Connector connects to an Accumulo instance and allows the user to request readers and writers for the instance as well as various objects that permit
* administrative operations.
* The Connector enforces security on the client side by forcing all API calls to be accompanied by user credentials.
* Construct a 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 (C) 2015 The Google Cloud Dataflow join-library Authors | 0 |
private String namespaceId;
private String getNamespaceId(Master env) throws Exception {
return Utils.getNamespaceId(env.getInstance(), tableId, TableOperation.RENAME, this.namespaceId);
}
public long isReady(long tid, Master env) throws Exception {
return Utils.reserveNamespace(getNamespaceId(env), ti... | 0 |
import org.apache.http.HttpResponse;
public void process(final HttpResponse response, final HttpContext context)
throws HttpException, IOException { | 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... | 0 |
import static org.apache.aurora.scheduler.filter.AttributeAggregate.EMPTY;
new ResourceRequest(task.getAssignedTask().getTask(), Tasks.id(task), EMPTY)))
new ResourceRequest(TASK_B.getAssignedTask().getTask(), Tasks.id(TASK_B), EMPTY)))
eq(new ResourceRequest(taskA.getAssignedTask().getTask(), T... | 0 |
private Long clusterId;
@Column(name = "cluster_id", nullable = false, insertable = true, updatable = true, length = 10)
public Long getClusterId() {
return clusterId;
public void setClusterId(Long clusterId) {
this.clusterId = clusterId;
@Column(name = "host_name", nullable = false, insertable = true... | 0 |
final List<String> scans = new ArrayList<String>();
final String tserver = tsIter.next();
final List<ActiveScan> asl = instanceOps.getActiveScans(tserver);
for (ActiveScan as : asl) {
}
if (scans.size() > 0) {
}
final String header = String.format(" %-21s| %-21s| %-9s| ... | 0 |
@Deprecated
INSTANCE_RPC_SASL_PROXYUSERS("instance.rpc.sasl.impersonation.", null, PropertyType.PREFIX,
"Prefix that allows configuration of users that are allowed to impersonate other users"),
@Deprecated
TSERV_MUTATION_QUEUE_MAX("tserver.mutation.queue.max", "1M", PropertyType.MEMORY, "This setting is d... | 0 |
} catch (final NullPointerException ex) {} | 0 |
/*
* Copyright 2000-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 org.apache.sshd.SshAgent;
int authSocket = ((ServerSession) session).initAgentForward();
addEnvVariable(SshAgent.SSH_AUTHSOCKET_ENV_NAME, Integer.toString(authSocket));
| 0 |
* @version $Revision$ | 0 |
public class ChaoticBlancerIT extends ConfigurableMacIT { | 0 |
*
* @since 1.6.0 | 0 |
* Management interface for {@link ManagedClientConnection client connections}.
* The purpose of an HTTP connection manager is to serve as a factory for new
* HTTP connections, manage persistent connections and synchronize access to
* persistent connections making sure that only one thread of execution can
* ha... | 0 |
import cz.seznam.euphoria.executor.local.LocalExecutor;
.execute(new LocalExecutor()); | 0 |
* against the canonical version in SVN. | 0 |
import com.google.cloud.dataflow.sdk.annotations.Experimental;
@Experimental | 0 |
* Tests whether or not the given element match a user agent. | 0 |
* Default value: %<name>.description | 0 |
import org.apache.beam.sdk.transforms.windowing.OutputTimeFn;
public <W extends BoundedWindow> WatermarkHoldState<W> bindWatermark(
StateTag<? super K, WatermarkHoldState<W>> address,
OutputTimeFn<? super W> outputTimeFn) {
return new SparkWatermarkHoldState<>(namespace, address, outputTimeFn)... | 0 |
import org.apache.hc.core5.io.Closer;
Closer.close(entity); | 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.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
* This class implements the servlet: protocol.
*
*
public final class ServletSourceFactory implements SourceFactory,
URIAbsolutizer {
/** By default we use the logger for this class. */
private Log logger = LogFact... | 0 |
import org.apache.sshd.common.kex.extension.KexExtensionHandlerManager;
public interface KexFactoryManager extends SignatureFactoriesManager, KexExtensionHandlerManager { | 0 |
import org.apache.felix.webconsole.ConfigurationPrinter;
import org.osgi.framework.ServiceRegistration;
private ServiceRegistration printerRegistration;
printerRegistration = context.registerService(ConfigurationPrinter.SERVICE,
new ConfigurationPrinterImpl(tracker), null);
public f... | 0 |
public class BasicStatusLine implements StatusLine, Cloneable {
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
| 0 |
*
*
{
}
public int getContentLength() | 0 |
private Aggregator<Integer> totalWords;
private Aggregator<Integer> maxWordLength;
private final PCollectionView<String, ?> regex;
ExtractWordsFn(PCollectionView<String, ?> regex) { | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
new NodeAddData<>(parentNode, TEST_NODENAME,
new NodeAddData<>(parentNode, TEST_NODENAME,
List<String> pathNodes = new ArrayList<>();
new NodeAddData<>(parentNode, TEST_NODENAME,
new NodeAddData<>(parentNode, TEST_NODENAME, | 0 |
import org.apache.commons.configuration.ex.ConfigurationRuntimeException; | 0 |
private static org.slf4j.Logger log =
protected Transforms() { } | 1 |
* @version $Id: AbstractContainerWidget.java,v 1.7 2004/04/21 20:30:49 mpo Exp $
protected WidgetList widgets;
widgets = new WidgetList(); | 0 |
@SuppressWarnings("unchecked") // LSE should only be created for array or list types
@SuppressWarnings("unchecked") // LSE should only be created for array or list types | 0 |
* @author William Farner | 0 |
* @version $Revision$ $Date$ | 0 |
/**
* 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 to in writing, software
* distribu... | 0 |
package org.apache.xml.security.test.dom.secure_val;
import org.apache.xml.security.test.dom.interop.InteropTestBase; | 0 |
private boolean skipCounterTransform = true;
this(maxRecsPerName, maxEvictionTimeInMillis, false);
}
public TimelineMetricsCache(int maxRecsPerName, int maxEvictionTimeInMillis,
boolean skipCounterTransform) {
this.skipCounterTransform = skipCounterTransform;
if (isCount... | 0 |
import com.google.cloud.dataflow.sdk.runners.inprocess.InProcessPipelineRunner.UncommittedBundle;
UncommittedBundle<Long> output = InProcessBundle.unkeyed(longs);
output.commit(BoundedWindow.TIMESTAMP_MAX_VALUE).getElements(),
UncommittedBundle<Long> output =
InProcessBundle.unkeyed(longs);
... | 0 |
PoolingConnection pc = new PoolingConnection(delegateConn2);
pc.setStatementPool(new GenericKeyedObjectPool(pc)); | 0 |
this.closeables = (closeables == null) ? Collections.emptyList() : closeables; | 0 |
private Option forceOpt;
String tableName = OptUtil.configureTableOpt(cl, shellState);
opts.addOption(OptUtil.tableOpt("table to delete entries from")); | 0 |
* $ ./bin/accumulo org.apache.accumulo.start.TestMain $ ./bin/accumulo
* org.apache.accumulo.start.TestMain badExit $ ./bin/accumulo org.apache.accumulo.start.TestMain
* throw | 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.Arrays;
import java.util.List; | 0 |
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.ServiceSelector;
import org.apache.avalon.framework.service.Serviceable;
* @version CVS $Id: DefaultEventManager.java,v 1.10 2003/10/20 13:36:42 cziegeler E... | 0 |
import org.apache.sshd.util.test.BaseTestSupport; | 0 |
import java.util.List;
/**
* Tests the default values for the {@link MetricsRetrievalService}.
*
* @throws Exception
*/
@Test
public void testGetSkipRepoUrlExistenceValidationListDefaults() throws Exception {
final Properties ambariProperties = new Properties();
final Configuration configura... | 0 |
import org.apache.james.mime4j.descriptor.ContentDescriptor; | 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... | 1 |
* @since 2.2 | 1 |
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import com.google.cloud.dataflow.sdk.util.GcsUtil;
GcsUtil mockGcsUtil = mock(GcsUtil.class);
when(mockGcsUtil.bucketExists(any(GcsPath.class))).thenReturn(true);
when(mockGcsUtil.isGcsPatternSupported(anyString())).thenCa... | 0 |
* <fb:simple-repeater
* <<em>... child bindings ...</em>>
* </fb:simple-repeater>
* @version CVS $Id: SimpleRepeaterJXPathBindingBuilder.java,v 1.2 2004/04/01 12:59:57 mpo Exp $ | 0 |
import net.jcip.annotations.Immutable;
@Immutable
| 0 |
public static final String ATTRIBUTE_INDEX_PROPERTY_KEY = INTERNAL_PROPERTY_KEY_PREFIX + "index";
public static final String ATTRIBUTE_KEY_PROPERTY_KEY = INTERNAL_PROPERTY_KEY_PREFIX + "key"; | 1 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/xmlrules/DigesterLoadingException.java,v 1.5 2003/10/09 21:09:48 rdonkin Exp $
* $Revision: 1.5 $
* $Date: 2003/10/09 21:09:48 $
* Alternately, this acknowledgement may appear in t... | 0 |
* $HeadURL$
* $Revision$
* $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 ma... | 0 |
* Starts a cron job immediately.
*
* @param role Owner of the job.
* @param job Name of the job.
* @throws ScheduleException If the specified job does not exist, or is not a cron job.
*/
void startCronJob(String role, String job) throws ScheduleException;
/** | 0 |
@Override
@Override
@Override | 0 |
Clusters fsm = clusters;
hostObject.setIPv4("ipv4");
hostObject.setIPv6("ipv6");
hi.setHostName("host1");
Host hostObject = clusters.getHost(hostname);
hostObject.setIPv4("ipv4");
hostObject.setIPv6("ipv6");
hi.setHostName("host1");
| 0 |
@Override
public String getId() {
return session.getId();
}
| 0 |
case OpCode.reconfig: | 0 |
package org.apache.felix.dependencymanager.test2.integration.api;
import java.util.Hashtable;
import org.apache.felix.dependencymanager.test2.integration.common.TestBase;
import org.ops4j.pax.exam.junit.PaxExam;
@RunWith(PaxExam.class)
public class ServiceTrackerTest extends TestBase {
public void testPlainServiceT... | 0 |
BasicCookie cookie = new BasicCookie("name", null);
BasicCookie cookie = new BasicCookie("name", null);
BasicCookie cookie = new BasicCookie("name", null);
BasicCookie cookie = new BasicCookie("name", null);
BasicCookie cookie = new BasicCookie("name", null);
BasicCookie ... | 0 |
document = db.parse(in); | 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 |
new TestBeanDeclaration(), null); | 0 |
private static org.slf4j.Logger LOG =
LOG.debug("Pre-digested input:");
LOG.debug(sb.toString()); | 0 |
private static final org.slf4j.Logger LOG = | 1 |
Manipulator manipulator = new Manipulator(new ClassLoader() {
@Override
public Class<?> loadClass(String name) throws ClassNotFoundException {
try {
return m_context.getBundle().loadClass(name);
} catch (ClassNotFoundException e) {
... | 0 |
* The Selector instance which listens to TextSelection gestures.
*/
private Selector textSelector = null;
/**
//initSelectors();
if (textSelector == null) {
textSelector =
new ConcreteTextSelector(nodeRenderContext);
}
(Graphic... | 0 |
public QueryablePipeline getQueryablePipeline() {
return this.queryablePipeline;
} | 0 |
import org.apache.cocoon.blocks.BlockCallStack;
try {
BlockCallStack.enterBlock(this.blockContext);
dispatcher.forward(request, response);
} finally {
BlockCallStack.leaveBlock();
} | 0 |
log.trace("Session expired, no longer updating per table props..."); | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(SyncRequestProcessor.class);
LOG.error("Severe unrecoverable error, exiting", t); | 0 |
import org.apache.sshd.common.io.IoWriteFuture;
protected IoWriteFuture sendServerIdentification() {
serverVersion = resolveIdentificationString(ServerFactoryManager.SERVER_IDENTIFICATION);
return sendIdentification(serverVersion);
}
| 0 |
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.common.collect.Maps;
import com.twitter.nexus.gen.TaskQuery;
import com.twitter.nexus.scheduler.CronJobScheduler;
import javax.annotation.Nullable;
import java.util.Map;
@Inject
private CronJobScheduler cronSchedu... | 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 |
if (isClosed()) {
return;
}
_stmt = null;
return _stmt == null ? "NULL" : _stmt.toString(); | 0 |
PCollection<Long> longs = p.apply(GenerateSequence.from(0).to(100)); | 0 |
private final byte[] workBuf = new byte[Integer.BYTES];
BufferUtils.writeInt(dos, 1 /* cmd */ + Integer.BYTES /* id */ + len, workBuf);
if (length < (1 + Integer.BYTES)) {
Buffer buffer = new ByteArrayBuffer(length + Integer.BYTES, false);
Buffer buffer = new ByteArrayBuffer(Integer.... | 0 |
import com.google.cloud.dataflow.sdk.runners.worker.KeyedWorkItems.FakeKeyedWorkItemCoder;
FakeKeyedWorkItemCoder.of(coder), IntervalWindow.getCoder()).asCloudObject(); | 0 |
return (getBounds().contains(p) &&
paintedArea != null &&
paintedArea.contains(p));
return (getBounds().intersects(r) &&
paintedArea != null &&
paintedArea.intersects(r)); | 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... | 1 |
AfterProcessingTime.pastFirstElementInPane().getWatermarkThatGuaranteesFiring( | 0 |
FlinkPipelineRunner.class.getClassLoader())); | 0 |
final Iterator<EventListener<? super ConfigurationEvent>> it =
final String presetHeaderComment = "preset" + TEST_COMMENT + CRNORM + CRNORM + TEST_COMMENT;
final ConfigurationEvent event = new ConfigurationEvent(this,
final ConfigurationEvent event = new ConfigurationEvent(this,
... | 0 |
suite.addTest(TestProxySelRoutePlanner.suite()); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.