Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
public static final int SSH_FX_UNKNOWN_PRINCIPAL = 16; | 0 |
public static final String SRVR_TWO_WAY_SSL_PORT_KEY = "security.server.two_way_ssl.port";
public static final String SRVR_ONE_WAY_SSL_PORT_KEY = "security.server.one_way_ssl.port";
public static final String SRVR_TWO_WAY_SSL_PORT_DEFAULT = "8441";
public static final String SRVR_ONE_WAY_SSL_PORT_DEFAULT = "844... | 0 |
public void visit(State state, Properties props) throws Exception {
| 0 |
private Option waitOpt;
startRow = OptUtil.getStartRow(cl);
endRow = OptUtil.getEndRow(cl);
opts.addOption(OptUtil.startRowOpt());
opts.addOption(OptUtil.endRowOpt()); | 0 |
import java.util.TreeMap;
new TreeMap<Integer, String>(new ImmutableMap.Builder<Integer, String>()
.put(1, "hello").put(-1, "foo").build()));
/**
* Generated data to check that the wire format has not changed. To regenerate, see
* {@link com.google.cloud.dataflow.sdk.coders.PrintBase64Encodings... | 0 |
import org.apache.ambari.server.api.handlers.QueryCreateHandler;
import org.apache.ambari.server.api.handlers.RequestHandler;
public QueryPostRequest(HttpHeaders headers, RequestBody body, UriInfo uriInfo, ResourceInstance resource) {
public Type getRequestType() {
return Type.QUERY_POST;
protected RequestHan... | 0 |
public interface TernaryFunction<FirstT, SecondT, ThirdT, OutputT> extends Serializable {
OutputT apply(FirstT first, SecondT second, ThirdT third); | 0 |
import org.apache.hc.core5.http.impl.io.DefaultBHttpServerConnection;
import org.apache.hc.core5.http.impl.io.HttpService;
import org.apache.hc.core5.http.io.HttpRequestHandler;
import org.apache.hc.core5.http.io.HttpServerConnection;
import org.apache.hc.core5.http.io.UriHttpRequestHandlerMapper;
import org.apache.hc.... | 0 |
import org.apache.beam.sdk.values.TypeDescriptor;
private static final VarIntCoder INSTANCE = new VarIntCoder();
private static final TypeDescriptor<Integer> TYPE_DESCRIPTOR = new TypeDescriptor<Integer>() {};
public TypeDescriptor<Integer> getEncodedTypeDescriptor() {
return TYPE_DESCRIPTOR;
}
@Override | 0 |
import static org.apache.ambari.server.configuration.Configuration.JDBC_IN_MEMORY_URL;
import static org.apache.ambari.server.configuration.Configuration.JDBC_IN_MEMROY_DRIVER;
import org.apache.ambari.server.configuration.Configuration;
import org.apache.ambari.server.orm.DBAccessor;
import org.apache.ambari.server.or... | 0 |
package org.apache.commons.codec2.language;
import org.apache.commons.codec2.EncoderException;
import org.apache.commons.codec2.StringEncoder; | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(ConfigSanityCheck.class);
// ACCUMULO-3651 Level changed from fatal to error and FATAL added to message for slf4j compatibility
log.error("FATAL: {}", msg); | 0 |
* @throws NullPointerException if set or predicate is null
* @throws NullPointerException if set or predicate is null | 0 |
throw new AccumuloException(new IllegalArgumentException("iterator name conflict for " + setting.getName() + ": " + property.getKey() + "=" + property.getValue()));
throw new AccumuloException(new IllegalArgumentException("iterator priority conflict: " + property.getKey() + "=" + property.getV... | 1 |
import org.apache.commons.lang3.mutable.MutableLong; | 0 |
System.setProperty("accumulo.configuration", "accumulo-site.xml"); | 0 |
/**
* Copyright 2016-2017 Seznam.cz, a.s.
*
* 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 ... | 0 |
import org.apache.sshd.common.util.io.IoUtils;
public static final long DEFAULT_CHANNEL_CLOSE_TIMEOUT = TimeUnit.SECONDS.toMillis(5L);
protected final Window localWindow;
protected final Window remoteWindow;
protected AbstractChannel(boolean client) {
this("", client);
protected AbstractChan... | 0 |
attribute.transform(GET_VALUES).or(ImmutableSet.of()),
? Optional.absent()
? Optional.absent() | 0 |
final MockClosure<Object> cmd = new MockClosure<>();
assertSame(NOPClosure.INSTANCE, ClosureUtils.forClosure(0, new MockClosure<>()));
assertSame(NOPClosure.INSTANCE, ClosureUtils.forClosure(-1, new MockClosure<>()));
MockClosure<Object> cmd = new MockClosure<>();
cmd = new MockC... | 1 |
* @param changeCount Change count for the configuration
* @param targetedPID TargetedPID for the configuration | 0 |
import org.apache.accumulo.server.AccumuloServerContext;
import org.apache.accumulo.server.conf.ServerConfigurationFactory;
AccumuloServerContext context = new AccumuloServerContext(new ServerConfigurationFactory(instance));
Connector connector = context.getConnector();
MetaDataStateStore metaDataStateStore... | 1 |
tds.setDefaultMaxTotal(getMaxTotal());
tds.setPerUserMaxTotal("foo",new Integer(getMaxTotal()));
Connection[] c = new Connection[getMaxTotal()];
Connection[] c = new Connection[getMaxTotal()];
Connection[] c = new Connection[getMaxTotal()];
public void testMaxTotal()
... | 0 |
import org.apache.felix.dm.Component;
Component sp1 = m.createComponent().setImplementation(new ServiceProvider(e)).setInterface(ServiceInterface.class.getName(), null);
Component sp2 = m.createComponent().setImplementation(new ServiceProvider(e)).setInterface(ServiceInterface.class.getName(), null);
... | 0 |
* @version CVS $Id: FOM_Cocoon.java,v 1.38 2004/07/11 13:59:12 cziegeler Exp $
/* (non-Javadoc)
* @see org.apache.cocoon.environment.Request#getAttribute(java.lang.String, int)
*/
public Object getAttribute(String name, int scope) {
return this.request.getAttribute(name, s... | 0 |
/**
* Validate a user create request payload.
*
* @param request user create request
*
* @throws InvalidPayloadException if the request payload is invalid in any way
*/
void validateCreatePayload(Request request) throws InvalidPayloadException;
* Validate a user update requ... | 0 |
import com.google.common.base.Joiner; | 0 |
private RepositoryVersionEntity repositoryVersion2110;
private RepositoryVersionEntity repositoryVersion2111;
private RepositoryVersionEntity repositoryVersion2201;
private RepositoryVersionEntity repositoryVersion2202;
repositoryVersion2110 = m_helper.getOrCreateRepositoryVersion(HDP_21_STACK, HDP_2_1_1_... | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
return DateUtils.parseDate(this, HttpHeaders.DATE); | 0 |
AccumuloReplicaSystem.buildConfiguration(peerConn.info().getInstanceName(),
peerConn.info().getZooKeepers()))); | 0 |
this.baseURI, this._manifest.getPerManifestResolvers());
resolver.addProperties(this._manifest.getResolverProperties()); | 0 |
return this.attribHandlerMap.get(name); | 0 |
public String toString() { | 0 |
loadResources("RequiredNameTest-config.xml"); | 0 |
if (LOG.isDebugEnabled())
LOG.debug(StaticUserAuthenticator.class.getSimpleName()
+ "'; authentication request for this type ignored."); | 0 |
/**
* The <code>WebConsoleSecurityProvider</code> is a service interface allowing
* to use an external system to authenticate users before granting access to
* the Web Console.
*
* @since Web Console 3.0.2
*/
* Check if the user with the specified password exists and return an
* object identifying the u... | 0 |
import java.net.UnknownHostException;
public static MasterClientService.Iface getConnectionWithRetry(Instance instance) {
if (tte.getCause().getClass().equals(UnknownHostException.class)) {
// do not expect to recover from this
throw new RuntimeException(tte);
} | 0 |
import org.apache.commons.vfs2.RandomAccessContent;
| 0 |
Assert.assertEquals(3, definitions.size()); | 0 |
import org.apache.accumulo.core.security.Authorizations;
Scanner mdScanner = new ScannerImpl(HdfsZooInstance.getInstance(), credentials, Constants.METADATA_TABLE_ID, Authorizations.EMPTY);
ScannerImpl scanner2 = new ScannerImpl(HdfsZooInstance.getInstance(), credentials, Constants.METADATA_TAB... | 0 |
String sval = scanner.getStringValue();
if (!plus) sval = "-"+sval;
int val = Integer.parseInt(sval); | 0 |
* @version $Revision: 1.15 $ $Date: 2004/04/09 14:38:47 $
suite.addTest(TestSingletonIterator2.suite()); | 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 |
private static final BeamFnApi.Elements ELEMENTS =
BeamFnApi.Elements.newBuilder()
.addData(
BeamFnApi.Elements.Data.newBuilder()
.setInstructionReference(OUTPUT_LOCATION.getInstructionId())
.setTarget(OUTPUT_LOCATION.getTarget())
.se... | 1 |
/**
* Implementation of DataflowExecutionStateRegistry that creates Streaming versions of
* ExecutionState.
*/
public static class StreamingModeExecutionStateRegistry extends DataflowExecutionStateRegistry { | 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 org.apache.accumulo.core.client.AccumuloException;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.apache.accumulo.core.client.impl.ClientContext;
public long replicateLog(ClientContext context, String tableName, WalEdits data) throws RemoteReplicationException, AccumuloException,
... | 1 |
while (true) {
Thread.sleep(LOCATION_DELAY_SECS * 1000); // extra precaution to ensure monitor has opportunity to log | 0 |
Copyright 2002-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 law... | 0 |
import static com.google.common.base.Preconditions.checkState;
import org.apache.beam.sdk.transforms.DoFn;
* Wrapper class holding the necessary information to serialize a {@link OldDoFn}
* or {@link DoFn}.
private final Serializable doFn;
/**
* Creates a {@link DoFnInfo} for the given {@link DoFn} or {@link ... | 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 |
import org.apache.cocoon.components.ComponentInfo;
private final PoolableComponentHandler handler;
private final ComponentInfo info;
public PoolableComponentHandlerMBean(final PoolableComponentHandler handler, final ComponentInfo info)
this.info = info;
//return JMXUtils.genDefaultJmxName(ha... | 0 |
new CompositeKeyExtractor(keyExtractor, sortByFn, windowing));
Windowing windowing) { | 0 |
import java.io.IOException;
import org.apache.accumulo.minicluster.MiniAccumuloCluster;
runAdminStopTest(getConnector(), cluster);
}
static void runAdminStopTest(Connector c, MiniAccumuloCluster cluster) throws InterruptedException, IOException { | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
public static <K, V> SortedMap<K, V> predicatedSortedMap(SortedMap<K, V> map, | 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.cocoon.environment.commandline.CommandLineContext;
* @version CVS $Id: CocoonBean.java,v 1.4 2003/05/12 13:26:17 stephan Exp $
private CommandLineContext cliContext;
cliContext = new CommandLineContext(contextDir); | 0 |
final class InternalDataChannel extends InternalChannel implements ProtocolIOSession {
private final AtomicReference<IOEventHandler> handlerRef;
this.handlerRef = new AtomicReference<>(null);
@Override
public IOEventHandler getHandler() {
return handlerRef.get();
}
@Override
pub... | 0 |
+ " with negotiated timeout " + sessionTimeout | 0 |
* @version $Id$ | 0 |
* This is a simple example of generating and validating a Detached XML
* Signature using the JSR 105 API. The resulting signature will look
// Create a factory that will be used to generate the signature
("http://www.w3.org/TR/xml-stylesheet",
kpg.initialize(1024,
... | 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 |
* @version CVS $Id: ForwardRedirector.java,v 1.3 2003/03/10 15:57:42 cziegeler Exp $
Processor actualProcessor = null;
Processor usedProcessor;
usedProcessor = actualProcessor;
usedProcessor = this.processor;
processingResult = usedProcessor.p... | 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 |
Assert.assertEquals(-10, exp.evaluate(record, null).getValue()); | 0 |
* /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/swt/SwtHelper.java,v 1.1 2002/12/18 15:27:49 jstrachan Exp
*
* @param constantClass is the type to look for static fields
* @param text is a comma delimited text value such as "border, resize"
* @return the int code
... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/bag/TestTypedBag.java,v 1.1 2003/11/16 00:05:46 scolebourne Exp $
package org.apache.commons.collections.bag;
* @version $Revision: 1.1 $ $Date: 2003/11/16 00:05:46 $ | 0 |
protected static TabletStateStore getStoreForTablet(KeyExtent extent, ServerContext context) { | 0 |
@Deprecated | 0 |
package org.apache.batik.gvt.text; | 0 |
import org.apache.beam.sdk.fn.stream.OutboundObserverFactory;
GrpcDataService.create(dataExecutor, OutboundObserverFactory.serverDirect()),
serverFactory); | 0 |
if (hasTimestamp)
throw new IllegalStateException("Cannot set system timestamp when user set a timestamp"); | 1 |
int timeOut = 0;
int batchSize = 0;
Range range = new Range();
MockScanner(MockTable table, Authorizations auths) {
super(table, auths);
}
@Override
public void setTimeOut(int timeOut) {
this.timeOut = timeOut;
}
@Override
public int getTimeOut() {
return timeOut;
}
@O... | 1 |
updatedTask.getAssignedTask().getTask().getJob(), | 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 ap... | 0 |
import org.apache.hc.core5.reactor.ProtocolIOSession;
final Decorator<ProtocolIOSession> ioSessionDecorator, | 0 |
import java.util.LinkedHashMap;
handlerMap = new LinkedHashMap<>(); | 0 |
super(doc);
XMLUtils.addReturnToElement(this._constructionElement);
super(element, BaseURI);
XMLUtils.addReturnToElement(this._constructionElement);
XMLUtils.addReturnToElement(this._constructionElement);
XMLUtils.addReturnToElement(this._constructionElement);
XMLUt... | 0 |
import cz.seznam.euphoria.core.client.util.Pair; | 0 |
* Gets the latest configurations for a given stack with any of the given config types.
* This method does not take into account the configuration being enabled.
*/
@RequiresSession
public List<ClusterConfigEntity> getLatestConfigurationsWithTypes(long clusterId, StackId stackId, Collection<String> configTy... | 0 |
if ("BOOL".equals(spannerType)) {
if ("INT64".equals(spannerType)) {
if ("FLOAT64".equals(spannerType)) {
if ("TIMESTAMP".equals(spannerType)) {
if ("DATE".equals(spannerType)) { | 0 |
package org.apache.felix.gogo.threadio; | 0 |
* @deprecated no longer used.
@Deprecated | 0 |
/** Returns an {@link OutputReceiver} for the given tag. * */
/**
* Returns a {@link OutputReceiver} for publishing {@link Row} objects to the given tag.
/** Annotation for specifying specific fields that are accessed in a Schema PCollection. */ | 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 org.apache.beam.sdk.coders.CannotProvideCoderException;
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.transforms.Combine; | 0 |
* @since 2.1
* @version $Id$
public class PreemptiveLoaderAction extends ServiceableAction
implements ThreadSafe {
loader.process(resolver);
| 0 |
@Transactional
public void removeByPK(long id) {
remove(findById(id));
}
| 0 |
import org.apache.batik.anim.dom.AnimationTarget; | 0 |
import java.io.File;
| 0 |
private ScriptService scriptService;
private File pigStorageFile;
private File baseDir;
@AfterClass
public static void shutDown() throws Exception {
FileService.setHdfsApi(null); //cleanup API connection
}
@Before
public void setUp() throws Exception {
handler = createNiceMock(ViewResourceHandle... | 0 |
String imm = metadata.getAttribute("immediate");
m_immediate = imm != null && imm.equalsIgnoreCase("true");
String method = hooksMetadata[i].getAttribute("method");
if (method == null) {
throw new ConfigurationException("Lifecycle callback : A callback needs to co... | 0 |
* @version $Revision: 1.5 $ $Date: 2004/05/15 12:39:13 $
* @return a new typed collection
super(); | 0 |
Stage stage,
Map<String, String> hostLevelParams = new TreeMap<String, String>();
* @param commaSeparatedTags separated list
Stage stage)
serviceName, componentName, actionParameters);
Map<String, String> actionParame... | 0 |
* @version $Revision: 1.1 $ $Date: 2004/11/18 22:12:24 $ | 0 |
import java.util.Locale;
import org.apache.cocoon.woody.Constants;
import org.apache.cocoon.xml.AttributesImpl;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
private String location;
protected WidgetDefinition definition;
/**
* Sets the definition of this widget.
*/
pro... | 0 |
private String stackName;
public String getStackName() {
return stackName;
public void setStackName(String stackName) {
this.stackName = stackName;
public String getStackVersion() {
return stackVersion;
public void setStackVersion(String stackVersion) {
this.stackVersion = stackVersion; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MultiHashMap.java,v 1.7 2002/11/01 19:41:00 rwaldhoff Exp $
* $Revision: 1.7 $
* $Date: 2002/11/01 19:41:00 $
/**
* Note: Currently the returned {@link Collection} is <... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.