Diff stringlengths 5 2k | FaultInducingLabel int64 0 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 ma... | 0 |
* Copyright 2006-2009 The Apache Software Foundation. | 0 |
package org.apache.batik.ext.awt.image.codec.util; | 0 |
FilterHandler h1 = createHandler(0, "a");
FilterHandler h2 = createHandler(10, "b");
FilterHandler h3 = createHandler(10, "c");
FilterHandler h1 = createHandler(0, "/a");
FilterHandler h1 = createHandler(0, "/a");
FilterHandler h1 = createHandler(0, "/");
FilterHa... | 0 |
CounterSet.AddCounterMutator addCounterMutator,
StateSampler stateSampler) {
addCounterMutator,
stateSampler);
StateSampler stateSampler)
addCounterMutator,
stateSampler);
CounterSet.AddCounterMutator addCounterMutator,
StateSampler stateSampler) {
... | 0 |
if (!"id".equals(N.getLocalName()) && XML_LANG_URI.equals(N.getNamespaceURI())) { | 0 |
* @version CVS $Id: TempRepeaterJXPathBindingBuilder.java,v 1.3 2004/04/12 14:05:08 tim Exp $ | 0 |
import org.apache.hc.core5.http.entity.ContentType; | 0 |
/*
* Copyright 2015 Data Artisans GmbH
*
* 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
* | 0 |
@Override
@Override | 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 |
public StatusAction(DataInputStream in, DataOutputStream out) throws IOException
super(in, out);
public BundleStatus[] client(Void in) throws IOException
for (int i = 0; i < num; i++)
{
public void server(Framework fw) throws IOException
log("Read status");
writeInt... | 0 |
// !!! the services map is from the stack, which may not contain services in the cluster.
// This is the case for upgrades where the target stack may remove services
if (!servicesMap.containsKey(service.getName())) {
continue;
}
| 0 |
ValidationEventHandler validationEventHandler = event -> {
throw new RuntimeException("MyCustomValidationEventHandler failure mesage"); | 0 |
import org.apache.beam.sdk.extensions.gcp.util.RetryHttpRequestInitializer;
import org.apache.beam.sdk.extensions.gcp.util.Transport; | 0 |
if ( name == null || name.trim().length() == 0 ) {
issues.add(this.getMessage("Property name can not be empty."));
}
// might want to check type (and value) | 0 |
import org.apache.ambari.server.orm.dao.HostRoleCommandDAO;
// Host role commands status summary max cache enable/disable
bindConstant().annotatedWith(Names.named(HostRoleCommandDAO.HRC_STATUS_SUMMARY_CACHE_ENABLED)).
to(configuration.getHostRoleCommandStatusSummaryCacheEnabled());
// Host role comm... | 0 |
return !this.closed && !this.session.isClosed(); | 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 |
LOG.debug(ex.getMessage(), ex);
LOG.debug("writeBytesToFilename got null byte[] pointed"); | 0 |
import java.util.List;
cm.setConfigurationPid( new String[] {"configurationPid"} );
cm.setConfigurationPid( new String[] {"configurationPid"} );
List<String> pid = cm.getConfigurationPid();
assertFalse( "Expect non-null configuration pid when component name is not specified"... | 0 |
package org.apache.http.impl.client.cache; | 0 |
* @param <E> the type of the elements in the list
public abstract class AbstractListDecorator<E> extends AbstractCollectionDecorator<E> implements
List<E> {
/** Serialization version--necessary in an abstract class? */
private static final long serialVersionUID = 4500739654952315623L;
protected Ab... | 0 |
properties.add(PropertyHelper.getPropertyId("metrics/mapred/jobtracker", "jobs_failed"));
Assert.assertEquals(10, PropertyHelper.getProperties(resource).size());
Assert.assertEquals(2, resource.getPropertyValue(PropertyHelper.getPropertyId("metrics/mapred/jobtracker", "jobs_submitted")));
Assert.assertE... | 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.sshd.common.channel.ChannelAsyncInputStream;
import org.apache.sshd.common.channel.ChannelAsyncOutputStream;
if (streaming == Streaming.Async) {
asyncIn = new ChannelAsyncOutputStream(this, SshConstants.SSH_MSG_CHANNEL_DATA);
asyncOut = new ChannelAsyncInputStream(this)... | 0 |
static class StorageResolverIterator implements Iterator {
Iterator _resolvers = null;
return _resolvers.hasNext();
return _resolvers.next(); | 0 |
import org.apache.hadoop.metadata.typesystem.IReferenceableInstance;
import org.apache.hadoop.metadata.typesystem.ITypedReferenceableInstance;
public interface MetadataRepository { | 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 |
record.timestamp() != null
? record.timestamp()
: (spec.getPublishTimestampFunction() != null
? spec.getPublishTimestampFunction()
.getTimestamp(record, ctx.timestamp())
.getMillis()
: null);
String topicName = r... | 0 |
import org.apache.cocoon.portal.layout.LayoutException;
import org.apache.cocoon.portal.om.FrameLayout;
import org.apache.cocoon.portal.om.Layout;
import org.apache.cocoon.portal.om.LayoutFeatures;
import org.apache.cocoon.portal.om.LayoutInstance;
* <li>{@link org.apache.cocoon.portal.om.FrameLayout}</li>
* @se... | 0 |
import org.apache.batik.util.CSSConstants; | 0 |
buffer.append("[chunk-coded; completed: ");
buffer.append("]"); | 0 |
import com.twitter.mesos.scheduler.configuration.Resources;
import com.twitter.mesos.scheduler.filter.SchedulingFilter;
import com.twitter.mesos.scheduler.filter.SchedulingFilter.Veto; | 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.sshd.common.AbstractFactoryManager;
import org.apache.sshd.common.Channel;
import org.apache.sshd.common.Cipher;
import org.apache.sshd.common.Compression;
import org.apache.sshd.common.Factory;
import org.apache.sshd.common.ForwardingAcceptorFactory;
import org.apache.sshd.common.ForwardingFilter;
im... | 0 |
import org.apache.aurora.scheduler.storage.entities.IHostAttributes;
IHostAttributes attributes, | 0 |
map.put(Constants.REFERENCE_CHECKED, String.valueOf(this.reference.isChecked())); | 0 |
CommonAttributes commonAtts = JXpathBindingBuilderBase.getCommonAttributes(bindingElm);
new ValueJXPathBinding(commonAtts, | 0 |
public final int N;
public final int ALL;
shutdownAll();
ps.peer.start();
}
public void restart(int id) throws IOException {
start(id);
Assert.assertTrue("Waiting for server up", ClientBase.waitForServerUp("127.0.0.1:"
+ getPeer(id).clientPort, Cl... | 0 |
import org.apache.mesos.Protos.Resource;
public synchronized Set<ScheduledTask> getTasks(final Query query) {
return stateManager.fetchTasks(query);
return Iterables.transform(getTasks(query), Tasks.SCHEDULED_TO_INFO); | 0 |
JXpathBindingBuilderBase.CommonAttributes commonAtts, String repeaterId, String repeaterPath, String rowPath, boolean clearOnLoad, boolean deleteIfEmpty, JXPathBindingBase rowBinding) {
super(commonAtts); | 0 |
public abstract String getLocation();
public abstract Builder location(String location); | 0 |
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import org.apache.aurora.scheduler.resources.ResourceBag;
import static org.apache.aurora.scheduler.resources.ResourceManager.bagFromMesosResources;
import static org.apache.aurora.sched... | 0 |
private transient BundleFactory bundleFactory;
bundleFactory = InProcessBundleFactory.create();
bundleFactory.createRootBundle(pcollection).add(element).commit(Instant.now());
bundleFactory.createRootBundle(pcollection).add(element).commit(Instant.now());
bundleFactory.createRootBundle(pco... | 0 |
public static void main(String[] unused) throws Exception { | 0 |
package org.apache.felix.scr.impl;
import org.apache.felix.scr.impl.parser.KXml2SAXHandler;
import org.apache.felix.scr.impl.parser.ParseException;
* @see org.apache.felix.scr.impl.parser.KXml2SAXHandler#characters(java.lang.String)
* @see org.apache.felix.scr.impl.parser.KXml2SAXHandler#processingInstruction... | 0 |
return cp.addString((String) value); | 0 |
private static Set<String> pkPropertyIds = new HashSet<>(
Arrays.asList(new String[]{STACK_NAME_PROPERTY_ID,
STACK_VERSION_PROPERTY_ID, PROPERTY_NAME_PROPERTY_ID}));
final Set<StackLevelConfigurationRequest> requests = new HashSet<>();
Set<Resource> resources = new HashSet<>(); | 0 |
* @throws org.apache.commons.beanutils.ConversionException if conversion | 0 |
package org.apache.accumulo.master.tableOps.tableExport; | 0 |
* @version CVS $Id: CocoonProcessorDelegate.java,v 1.2 2003/03/16 18:03:54 vgritsenko Exp $ | 0 |
*
List<IterInfo> ssiList, Map<String,Map<String,String>> ssio, List<ByteBuffer> authorizations, boolean waitForWrites, boolean isolated,
long readaheadThreshold) {
| 0 |
private Set<String> pkPropertyIds = new HashSet<>(
Arrays.asList(new String[]{SERVICE_NAME_PROPERTY_ID}));
final Set<RootServiceRequest> requests = new HashSet<>();
Set<Resource> resources = new HashSet<>(); | 0 |
* @version $Revision: 1.12 $ $Date: 2004/04/04 22:06:35 $
value = ValueUtils.getValue(dynaBean.get(name));
value = ValueUtils.getValue(dynaBean.get(name, index)); | 0 |
* @version $Revision: 1.4 $ $Date: 2003/02/21 13:08:59 $
final WebDavFileSystem fileSystem ) | 0 |
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString; | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
* TODO - remove this
* @version CVS $Id: AspectStatus.java,v 1.2 2003/05/07 20:24:02 cziegeler Exp $ | 0 |
setRankingInterceptor(new ComparatorBasedServiceRankingInterceptor(m_comparator)); | 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.io.CharArrayBuffer;
HttpVersion.parse(" ");
fail("ProtocolException should have been thrown");
} catch (ProtocolException e) {
//expected
}
try {
HttpVersion.parse("HTT");
fail("ProtocolException should have b... | 0 |
if (ci instanceof CompositeManager) {
((CompositeManager) ci).kill();
} else {
((InstanceManager) ci).kill();
}
m_componentDesc = null;
if (m_componentDesc != null) { // Already started.
}
*... | 0 |
import com.google.auth.Credentials;
import java.net.URI;
import java.util.Collections;
import java.util.List;
import java.util.Map;
public class TestCredential extends Credentials {
@Override
public String getAuthenticationType() {
return "Test";
}
@Override
public Map<String, List<String>> getRequestMeta... | 0 |
private List<DiskInfo> mounts = new ArrayList<DiskInfo>();
@JsonProperty("mounts")
public List<DiskInfo> getMounts() {
return this.mounts;
}
@JsonProperty("mounts")
public void setMounts(List<DiskInfo> mounts) {
this.mounts = mounts;
}
| 0 |
public static final ObjectType OBJECT = new ObjectType("java.lang.Object");
public static final ObjectType CLASS = new ObjectType("java.lang.Class");
public static final ObjectType STRING = new ObjectType("java.lang.String");
public static final ObjectType STRINGBUFFER = new ObjectType("java.lang.String... | 0 |
* BeanProcessorTest
public class BeanProcessorTest extends BaseTestCase {
private static final BeanProcessor beanProc = new BeanProcessor();
public BeanProcessorTest(String name) {
b = (TestBean) beanProc.toBean(this.rs, TestBean.class); | 0 |
import org.apache.ambari.server.controller.metrics.ThreadPoolEnabledPropertyProvider;
ThreadPoolEnabledPropertyProvider.init(injector.getInstance(Configuration.class)); | 0 |
static final String KEY_VALUE = "value";
static final String KEY_TYPE = "type";
static final String KEY_CONFIGURATION = "configuration";
static final String KEY_LOCAL_USERNAME = "local_username";
* @param principal the principal name
* @param type the principal type (user, service, etc...)
... | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Bag.java,v 1.9 2003/05/11 14:14:58 scolebourne Exp $
* @version $Revision: 1.9 $ $Date: 2003/05/11 14:14:58 $
int getCount(Object object);
boolean add(Object object);
boo... | 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.checkNotNull;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Verify.verifyNotNull;
import org.apache.beam.ve... | 0 |
*
*
*
* A dummy MBean interface
| 1 |
String CONFIGURATIONS = "configurations";
setConfiguration(ConfigurableHelper.parseConfigs(configs));
return ConfigurableHelper.convertConfigToMap(getConfiguration()); | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.base.Objects;
/**
* Logger.
*/
private static final Logger LOG = LoggerFactory.getLogger(ClusterGrouping.class);
/**
* A condition element with can prevent this stage from being scheduled in
* the upgrade.
*/
... | 0 |
import java.net.MalformedURLException;
import java.net.URL;
*
* @param uri the uri of the document or null if any
protected void transcode(Document document,
String uri,
TranscoderOutput output)
AffineTransform Px;
String ref = nu... | 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 (index + 1 >= source.allElementsBytes.size()) {
index++; | 0 |
* @param <K> the type of the keys in this map
* @param <V> the type of the values in this map | 0 |
package org.apache.accumulo.tserver.logger;
import org.apache.accumulo.tserver.log.DfsLogger;
import org.apache.accumulo.tserver.log.DfsLogger.DFSLoggerInputStreams;
import org.apache.accumulo.tserver.log.MultiReader;
DFSLoggerInputStreams streams = DfsLogger.readHeaderAndReturnStream(fs, path, SiteConfi... | 1 |
activeWorkMap.get(computation).completeWork(work.getKey());
activeWorkMap.get(computation).completeWork(work.getKey()); | 0 |
.apply(JUST_NEW_PERSONS)
.apply(
"Query8.WindowPersons",
Window.into(FixedWindows.of(Duration.standardSeconds(configuration.windowSizeSec))))
events
.apply(JUST_NEW_AUCTIONS)
.apply(
"Query8.WindowAuctions",
... | 0 |
AccumuloInputFormat.setClientProperties(job, getClientProperties());
AccumuloOutputFormat.setClientProperties(job, getClientProperties()); | 0 |
import com.google.cloud.dataflow.sdk.transforms.Combine;
import com.google.cloud.dataflow.sdk.util.state.CombiningValueStateInternal;
import com.google.cloud.dataflow.sdk.util.state.StateMerging;
protected static final StateTag<CombiningValueStateInternal<Instant, Combine.Holder<Instant>,
Instant>> DELAYED_UNTI... | 0 |
* @version CVS $Id: CocoonBean.java,v 1.3 2003/03/28 12:55:42 nicolaken Exp $
if (followLinks && confirmExtension) {
final Iterator i = this.getLinks(deparameterizedURI, parameters).iterator();
while (i.hasNext()) {
String link = (String) i.next();
// Fix... | 0 |
import org.apache.sshd.server.scp.UnknownCommand; | 0 |
File file = new File(getTestDirectoryFile(), name);
public static File getTestDirectoryFile()
// final String baseDirProp = System.getProperty("test.basedir");
final String baseDirProp = getTestDirectory();
baseDir = getCanonicalFile(new File(baseDirProp));
}
... | 0 |
public void encode(BigInteger value, OutputStream outStream) throws IOException, CoderException { | 1 |
import org.apache.ambari.server.security.authorization.UserType; | 0 |
* Accepts an inverse offer.
*
* @param offerID ID of the inverse offer.
* @param filter offer filter to apply.
*/
void acceptInverseOffer(OfferID offerID, Filters filter);
/** | 0 |
package org.apache.felix.karaf.admin.command; | 0 |
private static final long serialVersionUID = 1L;
private Set<String> includedFiles = new HashSet<String>();
PatternStack stack, Set<String> includedFiles) {
Class<?> cls = Class.forName(className);
public List<Rule> match(String pattern) {
public... | 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 |
/*
* 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 |
private static class NameVersion {
public List preParse(List<String> original) { | 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 |
* @version $Revision$ $Date$ | 0 |
// No action required
// Expected result | 0 |
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.apache.xml.security.exceptions.AlgorithmAlreadyRegisteredException;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource; | 0 |
client.loadTablet(Tracer.traceInfo(), SystemCredentials.get().toThrift(instance), lockString(lock), extent.toThrift());
client.unloadTablet(Tracer.traceInfo(), SystemCredentials.get().toThrift(instance), lockString(lock), extent.toThrift(), save);
return client.getTabletServerStatus(Tracer.trace... | 0 |
@Deprecated | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.