Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.ambari.server.state.Service;
import org.apache.ambari.server.state.ServiceComponent;
import org.apache.commons.lang.StringUtils;
Set<String> clusterNamesForHost = new HashSet<String>();
clusterNamesForHost.add(hostRequest.getClusterName());
} else {
Set<Cluster> clustersFor... | 0 |
import org.apache.beam.sdk.transforms.CombineWithContext.CombineFnWithContext;
* {@link CombineFn}, creating a {@link TriggerStateMachine} from the
CombineFn<Integer, AccumT, OutputT> combineFn,
* {@link CombineFn}, and {@link TriggerStateMachine}, for mocking the interaction
CombineFn<Integer, Ac... | 0 |
opts.batchScan(batchScan).store(job);
.auths(auths).fetchColumns(fetchColumns).scanIsolation(true).localIterators(true)
.store(job); | 0 |
HasDefaultTracker<
OffsetRange, org.apache.beam.sdk.transforms.splittabledofn.OffsetRangeTracker> { | 1 |
import org.apache.ambari.server.state.Cluster;
import org.apache.ambari.server.state.RepositoryType;
import org.apache.ambari.server.state.repository.ClusterVersionSummary;
import org.apache.ambari.server.state.repository.VersionDefinitionXml;
public void addCommandRepository(ActionExecutionContext context, Cluster c... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/xml/Attic/ParseTag.java,v 1.14 2002/12/31 11:11:34 jstrachan Exp $
* $Revision: 1.14 $
* $Date: 2002/12/31 11:11:34 $
* $Id: ParseTag.java,v 1.14 2002/12/31 11:11:34 jstrachan Exp $
... | 0 |
return new BridgeContext(userAgent, loader); | 0 |
* @version $Revision: 1.16 $ $Date: 2004/06/02 22:12:14 $ | 0 |
if (n.getNodeType() == n.CDATA_SECTION_NODE
|| n.getNodeType() == n.TEXT_NODE)
sb.append(n.getNodeValue()); | 1 |
@Override | 0 |
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.core.Is.is; | 0 |
@Consumes ({"application/xml"})
@Produces({"application/json", "application/xml"}) | 0 |
HOST_SVCCOMP_RESTORE,
/**
* Triggering a server-side action
*/
HOST_SVCCOMP_SERVER_ACTION | 1 |
* Copyright 2016-2017 Seznam.cz, a.s. | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/PathCallParamRule.java,v 1.2 2003/10/05 15:07:31 rdonkin Exp $
* $Revision: 1.2 $
* $Date: 2003/10/05 15:07:31 $
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rig... | 0 |
private String progressPercentage="";
private Boolean ifSuccess;
private String timeTakentotransfer="";
return timeTakentotransfer;
timeTakentotransfer = timeTakentotransfer;
return ifSuccess;
ifSuccess = ifSuccess;
return progressPercentage;
progressPercentage = progressPercentage; | 0 |
package org.apache.cocoon.el.impl.objectmodel; | 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 |
/**
* 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.ambari.server.api.util; | 0 |
package aQute.bnd.service;
import java.util.*;
/**
* A registry for objects.
*/
public interface Registry {
<T> List<T> getPlugins(Class<T> c);
<T> T getPlugin(Class<T> c);
} | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/xmlrules/CircularIncludeException.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 |
public static final short TYPE = (short)1; | 0 |
if (validColumnFams.contains(new Text(cu.getColumnFamily())))
return true;
if (validColumnQuals.contains(new ColumnFQ(cu)))
return true;
if (row.length > 0 && row[0] == '~')
return null;
if (b == ';' || b == '<')
break;
if (violations == null)
violations = n... | 1 |
when(mockTrigger.buildTrigger()).thenReturn(mockTrigger); | 0 |
import org.apache.accumulo.hadoopImpl.mapreduce.lib.MapReduceClientOpts;
public class Opts extends MapReduceClientOpts {
@Parameter(names = {"-t", "--table"}, required = true, description = "table to use")
String tableName;
AccumuloInputFormat.configure().clientProperties(opts.getClientProps())
... | 0 |
public void setReturnType( Type return_type ) {
public void setArgumentTypes( Type[] arg_types ) {
public void setArgumentType( int i, Type type ) {
public void setArgumentNames( String[] arg_names ) {
public void setArgumentName( int i, String name ) { | 0 |
public static final String PROVIDER_CLASS = "net.i2p.crypto.eddsa.EdDSASecurityProvider"; | 0 |
package org.apache.beam.sdk.io.gcp.bigquery;
import org.apache.beam.sdk.util.AttemptBoundedExponentialBackOff;
import org.apache.beam.sdk.util.Transport;
class BigQueryServicesImpl implements BigQueryServices { | 0 |
Copyright 2001-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 org.apache.ambari.spi.upgrade.UpgradeType; | 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;
* Bigtable instance. A {@link RowFilter} may also optionally be specified using
* .setInstan... | 0 |
ExecutorContext context,
int parallelism)
return context.getExecutionEnvironment()
.addSource(new DataSourceWrapper<>(ds))
.setParallelism(parallelism); | 0 |
static final String CLUSTER_NAME = "ambari-metrics-cluster"; | 0 |
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") | 0 |
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
public interface Resource extends Serializable {
InputStream getInputStream() throws IOException;
long length(); | 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 applic... | 0 |
import org.apache.http.client.RedirectException;
private int redirectCount;
private int maxRedirects;
this.redirectCount = 0;
this.maxRedirects = this.params.getIntParameter(HttpClientParams.MAX_REDIRECTS, 100);
this.redirectHandler.isRedirectNeeded(respons... | 0 |
public String getGuidByUniqueAttributes(AtlasEntityType entityType, Map<String, Object> uniqAttributes) throws AtlasBaseException{
return AtlasGraphUtilsV1.getGuidByUniqueAttributes(entityType, uniqAttributes);
}
@Override
@GraphTransaction | 0 |
/**
* The configuration policy
* @since 1.0
*/
ConfigurationPolicy policy() default ConfigurationPolicy.OPTIONAL; | 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 |
if (saslEnabled()) {
opts.updateKerberosCredentials(); | 0 |
* @version $Revision$ | 0 |
@Test(timeout = 3 * 60 * 1000)
Process ingest = cluster.exec(TestIngest.class, "-i", cluster.getInstanceName(), "-z", cluster.getZooKeepers(), "-u", "root", "-p", ROOT_PASSWORD, "--createTable");
@Test(timeout = 2 * 60 * 1000)
assertEquals(0, cluster.exec(TestIngest.class, "-i", cluster.getInstanceName(), "... | 0 |
public Class<?>[] getExceptions() {
Class<?>[] cs = new Class[2 + ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION.length]; | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables; | 0 |
* @author <a href="mailto:haul@apache.org">Christian Haul</a>
* @version CVS $Id: DigestMetaModule.java,v 1.2 2004/02/15 21:30:00 haul Exp $ | 0 |
c14n.setSecureValidation(secureValidation); | 0 |
return PredicatedMap.predicatedMap(map, keyPredicate, valuePredicate); | 0 |
import org.apache.commons.vfs2.provider.AbstractFileName;
protected RamFileSystem(FileName rootName, FileSystemOptions fileSystemOptions)
protected FileObject createFile(AbstractFileName name) throws Exception | 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 applicable la... | 0 |
import org.apache.thrift.transport.TTransportFactory;
options.transportFactory(new TTransportFactory() {
@Override
public TTransport getTransport(TTransport trans) {
Thread.currentThread().setDaemon(true);
return super.getTransport(trans);
}
}); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/LRUMap.java,v 1.19 2003/05/16 14:36:40 scolebourne Exp $
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* @version $Revision: 1.19 $ $Date: 2003/05/16 1... | 0 |
@Override | 0 |
import cz.seznam.euphoria.flink.batch.BatchElement;
import cz.seznam.euphoria.flink.streaming.StreamingElement;
ret.add(StreamingElement.class);
ret.add(BatchElement.class); | 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 |
/**
* Returns KerberosHelper instance
* @return
*/
KerberosHelper getKerberosHelper(); | 0 |
import org.mockito.Mockito;
public abstract class BasicServerTestBase extends Mockito { | 0 |
package org.apache.felix.dm.test.integration.api;
import org.apache.felix.dm.test.components.Ensure;
import org.apache.felix.dm.test.integration.common.TestBase; | 0 |
import org.apache.atlas.type.AtlasTypeRegistry;
void importLegacyGraphSON(AtlasTypeRegistry typeRegistry, InputStream fs) throws AtlasBaseException; | 0 |
* Copyright 2002-2005 The 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 ap... | 1 |
log.log(LogService.LOG_WARNING, "DeviceAccessConsumer: Handling device access: id=" + props.get("device.id") | 0 |
//BridgeEventSupport.loadScripts(ctx, e); | 0 |
private static final long serialVersionUID = -7113259629930576230L;
private static final int ATTR0_BEFORE_ATTR1 = -1;
private static final int ATTR1_BEFORE_ATTR0 = 1;
private static final String XMLNS = Constants.NamespaceSpecNS; | 0 |
HostLevelParamsUpdateEvent hostLevelParamsUpdateEvent = new HostLevelParamsUpdateEvent(addedHost.getHostId(),
clusterId,
new HostLevelParamsCluster( | 0 |
import org.apache.felix.framework.util.FelixConstants;
public void close()
// Nothing to clean up.
// If the entry name refers to the content itself, then
// just return it immediately.
if (entryName.equals(FelixConstants.CLASS_PATH_DOT))
return new DirectoryContent(m_log... | 0 |
* A request message from a client to a server includes, within the
* first line of that message, the method to be applied to the resource,
* the identifier of the resource, and the protocol version in use.
* <pre>
* Request = Request-Line
* *(( general-header
* ... | 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.avalon.framework.activity.Disposable;
* @version CVS $Id: AbstractInterpreter.java,v 1.10 2003/10/15 17:02:05 cziegeler Exp $
SingleThreaded, Configurable, Disposable
/**
* Composable
*/
this.continuationsMgr = (ContinuationsManager)manager.lookup(Continuations... | 0 |
private Map<InstructionHandle, Set<ExceptionHandler>> exceptionhandlers;
exceptionhandlers = new HashMap<InstructionHandle, Set<ExceptionHandler>>();
Set<ExceptionHandler> hs;
hs = exceptionhandlers.get(ih);
hs = new HashSet<ExceptionHandler>();
Set<ExceptionHandler> hs = exceptionhandlers.get(ih);
... | 0 |
@Deprecated | 0 |
import org.apache.felix.dm.DependencyManager;
/**
* Returns the composition instances that make up this service, or just the
* service instance if it does not have a composition, or an empty array if
* the service has not even been instantiated.
*/
public Object[] getCompositionInstances();
/**
* Retur... | 0 |
Map<String, PropertyUpdater> kafkaBrokerMap = new HashMap<String, PropertyUpdater>();
Map<String, PropertyUpdater> multiKafkaBrokerMap = new HashMap<String, PropertyUpdater>();
Map<String, PropertyUpdater> multiSliderClientMap = new HashMap<String, PropertyUpdater>();
Map<String, PropertyUpdater> multi... | 0 |
return (Attr)attributes.removeNamedItemNS(oldAttr.getNamespaceURI(),
oldAttr.getLocalName()); | 0 |
import static org.apache.sshd.common.sftp.SftpConstants.SSH_FX_LOCK_CONFLICT;
if (e.getStatus() == SSH_FX_LOCK_CONFLICT) { | 0 |
* Copyright 1999-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 ... | 1 |
/** Factory for secure socket factories */
return init(this.context.getServerSocketFactory().createServerSocket(port, backlog));
return init(this.context.getServerSocketFactory().createServerSocket(port, backlog, ifAddress));
| 1 |
* Can be {@code null}.
* Can be {@code null}.
* {@code null} in which case the current date / time will be used.
* {@code timeout} is set to {@code 0} this method blocks | 0 |
Set<String> hostsWithoutCorrectVersionState = new HashSet<String>();
hostsWithoutCorrectVersionState.add(hostVersion.getHostName()); | 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 |
Assert.assertEquals("http://thathost/", URIUtils.rewriteURI(
URI.create("http://thishost#crap"), target, true).toString());
Assert.assertEquals("http://thathost/#crap", URIUtils.rewriteURI(
URI.create("http://thishost#crap"), target, false).toString());
Assert.ass... | 0 |
if (log.isDebugEnabled()) {
log.debug("run(open={}) {} while authentication forwarding: {}",
isOpen(), e.getClass().getSimpleName(), e.getMessage());
}
... | 0 |
import static org.junit.Assert.assertTrue;
assertTrue(row.getBoolean("aBoolean"));
assertTrue(pojo.aBoolean);
assertTrue(nestedRow.getBoolean("aBoolean"));
assertTrue(pojo.nested.aBoolean); | 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.felix.sigil.config.Resource;
import org.apache.felix.sigil.eclipse.PathUtil;
Path path = new Path(bundle.getLocation().getAbsolutePath());
IPath source = PathUtil.newPathIfExists(bundle.getSourcePathLocation());
IPath rootPath = PathUtil.newPathIfNotNull... | 0 |
// ***************************************************
Long requestedClusterId = request.getClusterId();
if (requestedClusterId == null) {
throw new AmbariException("The cluster ID may not be null");
}
Cluster cluster = clusters.getClusterById(request.getClusterId());
if (c... | 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 |
TransformResult<T> result, | 0 |
validH2Preface = false; | 0 |
package org.apache.bcel.generic;
super(org.apache.bcel.Const.FREM); | 1 |
import java.nio.charset.StandardCharsets;
"secret".getBytes(StandardCharsets.US_ASCII));
byte[] hmacKey = "secret".getBytes(StandardCharsets.US_ASCII);
"secret".getBytes(StandardCharsets.US_ASCII));
byte[] hmacKey = "sec... | 0 |
import org.apache.batik.gvt.ShapeNode;
import org.apache.batik.parser.PointsParser;
protected void buildShape(BridgeContext ctx,
SVGElement elt,
ShapeNode node,
CSSStyleDeclaration decl,
UnitProce... | 0 |
CoderProperties.coderDecodeEncodeContentsInSameOrderInContext(
CoderProperties.coderConsistentWithEqualsInContext(coder, context, value1, value2);
CoderProperties.structuralValueConsistentWithEqualsInContext(
CoderProperties.structuralValueDecodeEncodeEqualInContext( | 0 |
throw new SSLPeerUnverifiedException("Peer certificate chain is empty");
throw new SSLPeerUnverifiedException("Unexpected certificate type: " + peerCertificate.getType()); | 0 |
import org.apache.commons.io.IOCase;
* @param caseSensitivity what case sensitivity to use comparing file names, null means system sensitive
public FilesystemObserver(String directoryName, FileFilter fileFilter, IOCase caseSensitivity) {
this(new File(directoryName), fileFilter, caseSensitivity);
... | 0 |
private final Cluster cluster = Mockito.mock(Cluster.class);
private PrereqCheckRequest checkRequest = new PrereqCheckRequest(clusterName);
private PreviousUpgradeCompleted puc = new PreviousUpgradeCompleted();
public void setup() throws Exception {
Mockito.when(cluster.getClusterId()).thenReturn(1L);
M... | 0 |
conf.setPid("some.pid");
warn("got unexpected configuration error");
e.throwable(err); | 0 |
list, | 0 |
* Ensures that the entity content is fully consumed and the content stream, if exists,
* is closed.
*
* @param entity
* @throws IOException if an error occurs reading the input stream
*
* @since 4.1
*/
public static void consume(final HttpEntity entity) throws IOException {... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.