Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* fixed: "No installed provider supports this key" when checking a RSA
private static final String BASEDIR =
FileInputStream input = new FileInputStream(BASEDIR + SEP +
| 1 |
import java.sql.SQLException;
import org.apache.ambari.server.AmbariException;
import org.apache.ambari.server.H2DatabaseCleaner;
H2DatabaseCleaner.resetSequences(injector);
public void after() throws AmbariException, SQLException {
H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector);
} | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(AgentForwardSupport.class);
if (!closed) {
log.info("Exchange caught in authentication forwarding", e);
... | 0 |
private static final Logger LOG = LoggerFactory.getLogger(BeamFnDataReadRunner.class);
LOG.debug("Waiting for process bundle instruction {} and target {} to close.", | 0 |
import org.junit.FixMethodOrder;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING) | 0 |
* Class that manages distribution of {@link AuthenticationKey}s, Accumulo's secret in the
* delegation token model, to other Accumulo nodes via ZooKeeper.
* Ensures that ZooKeeper is in a correct state to perform distribution of
* {@link AuthenticationKey}s.
if (actualAcl.getPerms() == expectedAcl.getPe... | 0 |
import static org.apache.sshd.common.SshConstants.SSH_MSG_USERAUTH_FAILURE;
import static org.apache.sshd.common.SshConstants.SSH_MSG_USERAUTH_INFO_REQUEST;
import static org.apache.sshd.common.SshConstants.SSH_MSG_USERAUTH_INFO_RESPONSE;
import static org.apache.sshd.common.SshConstants.SSH_MSG_USERAUTH_SUCCESS;
impo... | 0 |
properties.put("mapred-site",
new HashMap<>(ImmutableMap.of("mapreduce.job.hdfs-servers", "localhost")));
expect(stack.getCardinality("NAMENODE")).andReturn(new Cardinality("1")).anyTimes();
properties.put("mapred-site",
new HashMap<>(ImmutableMap.of("mapreduce.job.hdfs-servers", "localhost")));... | 0 |
import org.apache.commons.vfs.test.AbstractProviderTestConfig;
import org.apache.commons.vfs.test.ProviderTestConfig;
import org.apache.commons.vfs.test.ProviderTestSuite;
import org.apache.commons.vfs.FileSystemManager;
import org.apache.commons.vfs.impl.DefaultFileSystemManager;
import junit.framework.Test;
public cl... | 0 |
public void execute(MutableStoreProvider storeProvider) { | 0 |
trimProperties(clusterConfig, clusterTopology);
private void trimProperties(Configuration clusterConfig, ClusterTopology clusterTopology) {
Blueprint blueprint = clusterTopology.getBlueprint();
Stack stack = blueprint.getStack();
Map<String, Map<String, String>> configTypes = clusterConfig.getFullPr... | 0 |
import org.apache.aurora.common.args.Arg;
import org.apache.aurora.common.args.CmdLine;
import org.apache.aurora.common.net.InetSocketAddressHelper;
import org.apache.aurora.common.quantity.Amount;
import org.apache.aurora.common.quantity.Time;
import org.apache.aurora.common.zookeeper.guice.client.ZooKeeperClientModul... | 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 |
/**
* Creates a matcher that will match methods of an interface, optionally excluding inherited
* methods.
*
* @param matchInterface The interface to match.
* @param declaredMethodsOnly if {@code true} only methods directly declared in the interface
* will be matched, othe... | 0 |
import org.apache.accumulo.core.client.impl.ClientContext;
import org.apache.accumulo.core.client.impl.Credentials;
import org.apache.accumulo.core.master.thrift.MasterClientService.Client;
import org.apache.accumulo.core.trace.Tracer;
ClientContext context = new ClientContext(c.getInstance(), creds, getClientConfi... | 0 |
import org.apache.beam.sdk.values.TimestampedValue;
List<TimestampedValue<String>> peek = tester.peekOutputElementsWithTimestamp();
TimestampedValue<String> one =
TimestampedValue.of("1", new Instant(1000L));
TimestampedValue<String> two =
TimestampedValue.of("2", new Instant(2000L));
Ti... | 0 |
* Updates the animated value with the given {@link AnimatableValue}. | 0 |
import java.util.HashMap;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.cookie.CommonCookieAttributeHandler;
@ThreadSafe
public CookieSpecBase() {
super();
}
/**
* @since 4.4
*/
protected CookieSpecBase(final HashMap<String, CookieAttributeHandler> map) {
... | 0 |
final CopletInstance cid = new CopletInstance(id, cd); | 0 |
* HttpService is a server side HTTP protocol handler based in the blocking
* I/O model that implements the essential requirements of the HTTP protocol
* for the server side message processing as described by RFC 2616.
* HttpService relies on {@link HttpProcessor} to generate mandatory protocol
* headers for all ou... | 0 |
@Deprecated
@Deprecated
@Deprecated | 0 |
import org.apache.hc.core5.http.io.entity.InputStreamEntity; | 1 |
import java.io.Serializable; | 0 |
summary1.merge(key, summary2.getOrDefault(key, 0L), Long::sum); | 0 |
@SuppressWarnings("unchecked")
Iterable<KV<?, ?>> elements =
Iterables.transform(
(Iterable<WindowedValue<KV<?, ?>>>)
viewContents.getUnchecked(PCollectionViewWindow.of(view, window)).get(),
windowedValue -> windowedValue.getValue()); | 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 |
final InputStream instream = this.cacheEntry.getResource().getInputStream(); | 0 |
static final int DEFAULT_MAX_FILES_PER_PARTITION = 10000;
static final long DEFAULT_MAX_BYTES_PER_PARTITION = 11 * (1L << 40);
private int maxFilesPerPartition;
private long maxBytesPerPartition;
this.maxFilesPerPartition = DEFAULT_MAX_FILES_PER_PARTITION;
this.maxBytesPerPartition = DEFAULT_MAX_BYTES_P... | 0 |
import com.twitter.aurora.scheduler.storage.entities.IScheduledTask;
import com.twitter.aurora.scheduler.storage.entities.ITaskConfig;
Set<IScheduledTask> tasks =
for (ITaskConfig task : Iterables.transform(tasks, Tasks.SCHEDULED_TO_INFO)) {
private void accumulate(ITaskConfig task) { | 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 |
// FELIX-611: Ignore configuration objects without props
if ( !cfg.isNew() )
{
configList.add( cfg );
} | 0 |
private static final Map<String, StandardSQLTypeName> BEAM_TO_BIGQUERY_METADATA_MAPPING =
ImmutableMap.<String, StandardSQLTypeName>builder()
.put("DATE", StandardSQLTypeName.DATE)
.put("TIME", StandardSQLTypeName.TIME)
.put("TIME_WITH_LOCAL_TZ", StandardSQLTypeName.TIME)
... | 0 |
* Copyright 1999-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 ... | 0 |
String signatureFileName = "build/signature.xml"; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/NodeIterator.java,v 1.3 2003/10/09 21:31:40 rdonkin Exp $
* $Revision: 1.3 $
* $Date: 2003/10/09 21:31:40 $
* any, must include the following acknowledgement:
* Alternatel... | 0 |
"sftp://vfsusr:vfs%2f%25\\te:st@192.168.72.128/vfstest");
// RamProviderTestCase.suite(),
SftpProviderTestCase.suite(), | 0 |
import com.google.common.io.BaseEncoding;
import java.nio.ByteBuffer;
.put("BYTES", Type.BYTES)
case "BYTES":
verify(v instanceof ByteBuffer, "Expected ByteBuffer, got %s", v.getClass());
ByteBuffer byteBuffer = (ByteBuffer) v;
byte[] bytes = new byte[byteBuffer.limit()];
... | 0 |
* @version $Revision$ | 0 |
private String namespaceId;
private String getNamespaceId(Master env) throws Exception {
return Utils.getNamespaceId(env.getInstance(), tableId, TableOperation.COMPACT_CANCEL, this.namespaceId);
}
public CancelCompactions(String namespaceId, String tableId) {
this.namespaceId = namespaceId;
public lo... | 0 |
import org.apache.accumulo.core.clientImpl.AccumuloClientImpl; | 0 |
public void setSocketTimeout(int timeout) {
try {
this.socket.setSoTimeout(timeout);
} catch (SocketException ignore) {
// It is not quite clear from the Sun's documentation if there are any
// other legitimate cases for a socket exception to ... | 0 |
final String bulkDir = tableInfo.importDir;
final String[] tableDirs = ServerConstants.getTablesDirs();
// Make a unique directory inside the table's dir. Cannot import multiple tables into one table, so don't need to use unique allocator
String tabletDir = new String(FastFormat... | 0 |
protected IOEventDispatch createIOEventDispatch(
final NHttpClientHandler clientHandler, final HttpParams params) {
return new DefaultClientIOEventDispatch(clientHandler, params);
}
IOEventDispatch ioEventDispatch = createIOEventDispatch( | 0 |
"Prefix for defining executors to service scans. See "
+ "[scan executors]({% durl administration/scan-executors %}) for an overview of why and"
+ " how to use this property. For each executor the number of threads, thread priority, "
+ "and an optional prioritizer can be configured.... | 0 |
*
*
*
/**
* @version $Revision: 1.5 $
//------------------------------------------------------------------------- | 1 |
* "Apache" nor may "Apache" appear in their name without prior
* @version $Revision: 1.5 $ $Date: 2003/10/05 21:45:49 $ | 0 |
import org.apache.aurora.scheduler.events.EventSink;
import org.apache.aurora.scheduler.events.PubsubEvent;
private final EventSink eventSink;
Logger log,
EventSink eventSink) {
this.eventSink = requireNonNull(eventSink);
eventSink.post(new PubsubEvent.HostAttributesChanged(attrs)); | 0 |
* Copyright (c) OSGi Alliance (2004, 2015). All Rights Reserved.
* @author $Id: 624eb5610c2127d24ce76f16b3cc146cbcf6db57 $
/**
* Capability name for Service Component Runtime.
*
* <p>
* Used in {@code Provide-Capability} and {@code Require-Capability}
* manifest headers with the {@code osgi.extender} nam... | 0 |
if (TargetHostType.SPECIFIC.equals(targetHostType) | 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 |
/*
* 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 |
import org.apache.http.annotation.NotThreadSafe; | 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/cvs/jakarta-commons-sandbox/jelly/src/taglibs/bsf/src/java/org/apache/commons/jelly/tags/bsf/BSFTagLibrary.java,v 1.1 2002/05/21 07:58:55 jstrachan Exp $ | 0 |
ConnectionReuseStrategy connStrategy = DefaultConnectionReuseStrategy.INSTANCE; | 0 |
import org.apache.felix.dm.annotation.api.Component;
@Component | 0 |
package org.apache.commons.configuration.convert;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.commons.configuration.convert.PropertyConverter; | 0 |
public static Collection<File> findFiles(File workingDir, String pattern)
throws IOException
File root = slash == -1 ? workingDir
: new File(pattern.substring(0, slash)).getAbsoluteFile(); | 0 |
* @return {@link MapIterator}<K, V> | 0 |
final ExecRuntime execRuntime = new InternalExecRuntime(log, connManager, requestExecutor, | 0 |
org.apache.xml.security.Init.init(); | 0 |
import org.apache.ambari.annotations.Experimental;
import org.apache.ambari.annotations.ExperimentalFeature;
import org.apache.ambari.server.stack.upgrade.Direction;
import org.apache.ambari.server.stack.upgrade.ExecuteHostType;
import org.apache.ambari.server.stack.upgrade.orchestrate.UpgradeContext;
/**
* Class that... | 0 |
} else if (value == null) {
continue; | 0 |
@Nullable
return getTransformEvaluatorQueue(transform, evaluationContext).poll(); | 0 |
import org.apache.aurora.scheduler.async.GatedWorkQueue;
import org.apache.aurora.scheduler.async.GatedWorkQueue.GatedOperation;
import org.easymock.IExpectationSetters;
private GatedWorkQueue gatedWorkQueue;
gatedWorkQueue = createMock(GatedWorkQueue.class);
gatedWorkQueue,
private IExpectationSetters<... | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting; | 0 |
RunnerApi.TestStreamPayload testStreamPayload, RehydratedComponents components)
Coder<Object> coder = (Coder<Object>) components.getCoder(testStreamPayload.getCoderId());
return (TestStream<T>)
fromProto(
testStreamPayload, RehydratedComponents.forComponents(sdkComponents.toComponents(... | 0 |
protected static final String BLOCK_RESOURCES_PATH = "COB-INF";
/**
* Deploy all files with a given prefix from a jar file to a directory
* in the file system.
* @param jarFile The jar file containing the resources.
* @param prefix The common prefix for the files.
* @param de... | 0 |
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;
* @version CVS $Id: MediaSelector.java,v 1.2 2003/10/21 12:39:17 cziegeler Exp $
implements Serviceable, Selector, ThreadSafe {
private Ser... | 0 |
package org.apache.commons.vfs2.provider.tar.test;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemManager;
import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
import org.apache.commons.vfs2.provider.tar.TarFileProvider;
import org.apache.commons.vfs2.test.AbstractProviderT... | 1 |
import java.util.ArrayList;
import org.apache.cocoon.portal.event.layout.ChangeTabEvent;
* Test implementation for generating page labels.
* @see org.apache.cocoon.portal.services.impl.links.DefaultLinkService#createUrl(java.util.List, java.util.List, java.lang.Boolean)
*/
protected String createUrl... | 0 |
* @version $Id$ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/core/IncludeTag.java,v 1.11 2003/01/24 22:53:34 morgand Exp $
* $Revision: 1.11 $
* $Date: 2003/01/24 22:53:34 $
* $Id: IncludeTag.java,v 1.11 2003/01/24 22:53:34 morgand Exp $
import ... | 0 |
c -> {
IntervalWindow w = (IntervalWindow) c.window();
return fmt.print(w.start());
}));
c -> {
IntervalWindow w = (IntervalWindow) c.window();
return fmt.print(w.start());
})); | 0 |
import java.util.Date;
.withTimestampField("dateTime")
p.id,
p.name,
p.emailAddress,
p.creditCard,
p.city,
p.state,
new Date(p.dateTime),
p.extra));
.withTimestampField... | 0 |
public class Config
{
public Config()
{
public void setPathRelative( boolean value )
{
public void setRemotely( boolean value )
{
public boolean isPathRelative()
{
public boolean isRemotely()
{ | 0 |
//TODO NEW!!
public abstract void reconfigure(Map<String, Object> value, boolean b); | 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 |
for (int i = 0; i < this.requestInterceptors.size(); i++) {
HttpRequestInterceptor interceptor = (HttpRequestInterceptor) this.requestInterceptors.get(i);
for (int i = 0; i < this.responseInterceptors.size(); i++) {
HttpResponseInterceptor interceptor = (HttpRespo... | 0 |
* @param <E> the type of elements in this collection | 0 |
Entry<Key,Value> result = new KeyValue(new Key(inner.getTopKey()),
new Value(inner.getTopValue()).get()); | 0 |
package com.twitter.mesos.scheduler.http; | 0 |
private static final Logger logger = Logger.getLogger(RESTErrorUtil.class);
private RESTErrorUtil() {
throw new UnsupportedOperationException();
}
public static WebApplicationException createRESTException(VResponse response) {
public static WebApplicationException createRESTException(String errorMessag... | 0 |
if (majcDelay != null) { | 0 |
private Class<?> main = null;
ArrayList<String> aa = new ArrayList<String>();
this.args = aa.toArray(new String[aa.size()]);
Class<?>[] ca = new Class[1]; | 0 |
syspkgs = (syspkgs == null)
? Util.getDefaultProperty(logger, Constants.FRAMEWORK_SYSTEMPACKAGES)
: syspkgs;
syspkgs = (syspkgs == null) ? "" : syspkgs; | 0 |
public void delete(SortedMap<String,String> confirmedDeletes) throws IOException, AccumuloException, AccumuloSecurityException, TableNotFoundException {
Connector c = instance.getConnector(SystemCredentials.get().getPrincipal(), SystemCredentials.get().getToken());
BatchWriter writer = c.createBatchWrit... | 0 |
import java.awt.Window;
import java.awt.event.WindowListener;
/**
* Adds a WindowListener to this component
*/
public void addWindowListener(WindowListener listener) throws Exception {
Component component = getComponent();
if ( component instanceof Window ) {
Window window ... | 0 |
import org.fusesource.jansi.AnsiConsole;
import org.fusesource.jansi.WindowsAnsiOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
private boolean ansisupported = checkAnsiSupport();
return ansisupported;
public static boolean checkAnsiSupport() {
OutputStream dum... | 0 |
* @version CVS $Id: RepeaterAction.java,v 1.2 2004/04/09 16:43:21 mpo Exp $
public RepeaterAction(RepeaterActionDefinition definition) {
String name = ((RepeaterActionDefinition)getDefinition()).getRepeaterName(); | 0 |
import org.apache.accumulo.miniclusterImpl.MiniAccumuloClusterImpl;
import org.apache.accumulo.miniclusterImpl.ProcessReference; | 0 |
* Constructs a new <code>ReaderTest</code>.
* Creates the <code>TranscoderInput</code>. | 0 |
} else if ("csharp".equals(language)) {
CSharpGenerator gen = new CSharpGenerator(mName, mInclFiles, mRecords,
outputDirectory);
gen.genCode(); | 0 |
* @author Apache Software Foundation | 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 |
import org.apache.felix.sigil.eclipse.model.util.ModelHelper;
VersionRange versionRange = ModelHelper.getDefaultRange(export.getVersion()); | 0 |
import org.apache.hadoop.metrics2.annotation.Metric;
import org.apache.hadoop.metrics2.sink.timeline.ContainerMetric;
@Path("/containermetrics")
@POST
@Consumes({ MediaType.APPLICATION_JSON /* , MediaType.APPLICATION_XML */})
public TimelinePutResponse postContainerMetrics(
@Context HttpServletRequest req... | 0 |
} catch (MalformedPathException e) { | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/TagSupport.java,v 1.2 2002/04/24 11:59:12 jstrachan Exp $
* $Revision: 1.2 $
* $Date: 2002/04/24 11:59:12 $
* $Id: TagSupport.java,v 1.2 2002/04/24 11:59:12 jstrachan Exp $
* @version $Re... | 0 |
String getGameStatsTablePrefix();
void setGameStatsTablePrefix(String value);
options.getGameStatsTablePrefix() + "_team", configureWindowedWrite()));
options.getGameStatsTablePrefix() + "_sessions", configureSessionWindowWrite())); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.