Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import java.util.Set;
import org.apache.hc.core5.annotation.NotThreadSafe;
import org.apache.hc.core5.http.HttpEntity;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.TrailerSupplier;
* A Proxy class for {@link org.apache.hc.core5.http.HttpEntity} enclosed in a request message.
static ... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/BeanUtilsBean.java,v 1.2 2003/03/15 11:38:10 rdonkin Exp $
* $Revision: 1.2 $
* $Date: 2003/03/15 11:38:10 $
* @version $Revision: 1.2 $ $Date: 2003/03/15 11:38:10 $
/** Us... | 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.nio.reactor.SessionInputBuffer;
public class SessionInputBufferImpl extends ExpandableBuffer implements SessionInputBuffer {
public SessionInputBufferImpl(
int buffersize,
int linebuffersize,
final ByteBufferAllocator allocator,
final HttpPara... | 0 |
import org.apache.aurora.scheduler.storage.entities.IJobUpdateInstructions;
IJobUpdateInstructions instructions = update.getInstructions();
if (instructions.getInitialState().isEmpty() && !instructions.isSetDesiredState()) {
throw new IllegalArgumentException("Update instruction is a no-op."); | 0 |
@Timed("mem_storage_get_job_keys")
@Override
public Set<IJobKey> getJobKeys() {
return FluentIterable.from(fetchTasks(Query.unscoped()))
.transform(Tasks.SCHEDULED_TO_JOB_KEY)
.toSet();
}
| 0 |
import org.apache.beam.sdk.values.WindowingStrategy; | 0 |
ThreadLocal<PrintStream> map = new InheritableThreadLocal<PrintStream>(); | 0 |
/*
LOG.info("LogicalRequest.offer: attempting to match a request to a request for a non-reserved host to hostname = {}", host.getHostName());
break;
break;
HostOfferResponse.DECLINED_DUE_TO_PREDICATE :
HostOfferResponse.DECLINED_DUE_TO_DONE; | 0 |
* Tests adding an attribute node using the addNodes() method.
*/
public void testAddNodesAttributeNode()
{
conf.addProperty("testAddNodes.property[@name]", "prop1");
conf.addProperty("testAddNodes.property(0).value", "value1");
conf.addProperty("testAddNodes.property(-1)[@name]... | 0 |
public static class ThriftClientHandler extends org.apache.accumulo.test.performance.NullTserver.ThriftClientHandler { | 0 |
when(mockTrigger1.onElement(Mockito.<Trigger<IntervalWindow>.OnElementContext>any()))
.thenReturn(TriggerResult.CONTINUE);
when(mockTrigger2.onElement(Mockito.<Trigger<IntervalWindow>.OnElementContext>any()))
.thenReturn(TriggerResult.CONTINUE);
tester.injectElements(
TimestampedValu... | 0 |
return reqs;
return reqs;
if (contentPath == null)
return Collections.emptyEnumeration();
| 0 |
import org.apache.hc.core5.concurrent.Cancellable;
interface Http2StreamChannel extends DataStreamChannel, CapacityChannel, Cancellable { | 0 |
* {@link #largestPerKey}, which take a {@code PCollection} of
* {@link #largestPerKey}, which take a {@code PCollection} of
* {@link #largestPerKey}, which take a {@code PCollection} of
* <p> See also {@link #smallestPerKey} and {@link #largestPerKey}, which
* sort {@code Comparable<V>} values using thei... | 0 |
for (byte b : bytes) {
if (b == UNDERSCORE) { | 0 |
import org.apache.accumulo.core.iterators.user.IntersectingIterator; | 0 |
* "Apache" nor may "Apache" appear in their name without prior
* @version $Revision: 1.4 $ $Date: 2003/10/05 21:45:49 $ | 0 |
package org.apache.felix.karaf.gshell.osgi;
import org.apache.felix.karaf.gshell.core.OsgiCommandSupport; | 0 |
public boolean evaluate(final T object) { | 0 |
public final class CodeException implements Cloneable, Node, Serializable {
str = Utility.compactClassName(cp.getConstantString(catch_type, Constants.CONSTANT_Class), false) | 0 |
* @version $Revision: 1.6 $
/** the variable where the method's exception is exported */
private String exceptionVar;
/** Sets the name of a variable that exports the exception thrown by
* the method's invocation (if any)
*/
public void setExceptionVar(String var) {
this.excepti... | 0 |
import java.util.Collection;
Cluster cluster = heartbeatTestHelper.getDummyCluster();
Service hdfs = cluster.addService(HDFS);
hdfs.addServiceComponent(DATANODE);
hdfs.addServiceComponent(NAMENODE);
hdfs.addServiceComponent(SECONDARY_NAMENODE);
Collection<Host> hosts = cluster.getHosts();
a... | 0 |
sb.append(String.format("<td style='text-indent: %dpx'>%s@%s</td>%n", level * 10, node.svc, node.sender)); | 0 |
void createExtensionLink(ExtensionLinkRequest request) throws AmbariException;
void updateExtensionLink(ExtensionLinkRequest request) throws AmbariException;
void updateExtensionLink(ExtensionLinkEntity linkEntity) throws AmbariException;
void deleteExtensionLink(ExtensionLinkRequest request) throws AmbariExcep... | 0 |
import org.apache.beam.learning.katas.util.Log; | 0 |
String domain = cookie.getDomain();
if (domain == null) {
throw new MalformedCookieException("Cookie domain may not be null");
}
if (!host.endsWith(domain)) {
if (domain.startsWith(".")) {
domain = domain.substring(1, domain.length());
... | 0 |
(XMLConstants.XML_EVENTS_NAMESPACE_URI, | 0 |
/**
* This tests deprecated mapreduce code in core jar
*/
@Deprecated
AccumuloRowInputFormat.setZooKeeperInstance(job, ci.getInstanceName(), ci.getZooKeepers()); | 0 |
* Copyright 2004-2005 The Apache Software Foundation.
package org.apache.cocoon.portal.coplets.basket.events;
import org.apache.cocoon.portal.coplets.basket.ContentStore;
* Show one item of a content store
* @version CVS $Id: ShowItemEvent.java 30941 2004-07-29 19:56:58Z vgritsenko $
public class ShowItemEvent exten... | 0 |
public static String tierConfigFile() {
return "{\"default\": \"preemptible\","
+ "\"tiers\":{"
+ "\"preferred\": {\"revocable\": false, \"preemptible\": false},"
+ "\"preemptible\": {\"revocable\": false, \"preemptible\": true},"
+ "\"revocable\": {\"revocable\": true, \"preemptib... | 0 |
import org.apache.accumulo.server.master.tableOps.TraceRepo;
fate.seedTransaction(tid, new TraceRepo<Master>(new ShutdownTServer(doomed, force)), false);
fate.seedTransaction(opid, new TraceRepo<Master>(new CreateTable(c.user, tableName, timeType, options)), autoCleanup);
fate.seedTransaction(... | 0 |
* @version $Revision: 1.9 $ $Date$
public void testSeveralCall() throws Exception {
setUpScript("testSeveralSwitchCall.jelly");
Script script = getJelly().compileScript();
getJellyContext().setVariable("var","foo");
script.run(getJellyContext(),getXMLOutput());
asser... | 0 |
private final Set<MemoryIterator> activeIters = Collections.synchronizedSet(new HashSet<>()); | 0 |
FAILED_TO_OBTAIN_TYPE_UPDATE_LOCK(500, "ATLAS5004E", "Failed to get the lock; another type update might be in progress. Please try again"),
NOTIFICATION_FAILED(500, "ATLAS5005E", "Failed to notify for change {0}"); | 0 |
null, this.parentBeanfactory, false); | 0 |
* Copyright (c) 2002 The Apache Software Foundation. All rights | 0 |
import org.apache.cocoon.forms.datatype.convertor.ConversionResult;
* @version $Id: Datatype.java,v 1.4 2004/05/06 14:59:44 bruno Exp $
* Converts a string to an object of this datatype. This method uses the
* same {@link Convertor} as returned by the {@link #getConvertor()} method.
ConversionResult conv... | 0 |
import org.apache.accumulo.core.security.thrift.TCredentials;
public TabletLocation locateTablet(Text row, boolean skipRow, boolean retry, TCredentials credentials) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {
public void binMutations(List<Mutation> mutations, Map<String,TabletServe... | 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 cz.seznam.euphoria.core.client.dataset.windowing.TimeInterval; | 0 |
import org.apache.accumulo.harness.AccumuloClusterIT;
public class MetaSplitIT extends AccumuloClusterIT { | 0 |
* @return a command report with 0 exit code and COMPLETED HostRoleStatus
*/
protected CommandReport createCompletedCommandReport() {
return createCommandReport(0, HostRoleStatus.COMPLETED, "{}", actionLog.getStdOut(), actionLog.getStdErr());
}
/** | 0 |
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.transforms.SerializableFunction;
class BigQueryTableSource<T> extends BigQuerySourceBase<T> {
static <T>BigQueryTableSource<T> create(
BigQueryServices bqServices,
Coder<T> coder,
SerializableFunction<SchemaAndRecord, T> parseFn) {
... | 0 |
List<String> tokens = new ArrayList<String>();
return tokens.toArray(new String[tokens.size()]); | 0 |
* A simple implementation of NodeSet that behaves as a collection of pointers. | 0 |
import com.google.inject.Inject;
import org.apache.ambari.server.actionmanager.StageFactory;
@Inject
StageUtils stageUtils;
@Inject
RoleGraphFactory roleGraphFactory;
injector.injectMembers(this);
RoleGraph rg = roleGraphFactory.createNew(rco);
RoleGraph rg = roleGraphFactory.createNew(rco);
R... | 0 |
public final class AndPredicate<T> implements Predicate<T>, PredicateDecorator<T>, Serializable {
private final Predicate<? super T> iPredicate1;
private final Predicate<? super T> iPredicate2;
*
public static <T> Predicate<T> getInstance(Predicate<? super T> predicate1, Predicate<? super T> predicat... | 0 |
protected TargetedPID m_targetedPID;
cm.reconfigure( m_configuration, m_changeCount, m_targetedPID );
public boolean configurationUpdated( String pid, Dictionary<String, Object> configuration, long changeCount, TargetedPID targetedPid )
return false;
return false;
... | 0 |
ServerAddress replAddress = TServerUtils.startServer(getSystemConfiguration(), hostname, Property.MASTER_REPLICATION_COORDINATOR_PORT,
replicationCoordinatorProcessor, "Master Replication Coordinator", "Replication Coordinator", null, Property.MASTER_REPLICATION_COORDINATOR_MINTHREADS,
Property.MAST... | 0 |
import org.apache.http.params.CoreConnectionPNames;
int timeout = this.params.getIntParameter(CoreConnectionPNames.SO_TIMEOUT, 0); | 0 |
import org.apache.ambari.server.api.services.stackadvisor.commands.GetConfigurationValidationCommand;
} else if (requestType == StackAdvisorRequestType.CONFIGURATIONS) {
command = new GetConfigurationValidationCommand(recommendationsDir, stackAdvisorScript,
requestId, saRunner); | 0 |
* Factory class for vending <code>Filter</code> objects that represents
* Creates a <code>Filter</code> primitive according to the specified
* @param in the <code>Filter</code> that represents the current
* <code>Filter</code> it creates. Other <code>FilterBridge</code>s | 0 |
if (getFirst() != null && getSecond() != null) {
int h = getFirst().hashCode();
int shift = Integer.SIZE >> 1;
return ((h >> shift) | (h << shift)) ^ getSecond().hashCode();
}
if (getFirst() != null) {
return getFirst().hashCode();
}
if (getSecond() != null) {
return ge... | 0 |
import com.google.cloud.dataflow.sdk.transforms.display.DisplayData.Builder;
import com.google.cloud.dataflow.sdk.transforms.display.HasDisplayData;
implements Serializable /* See the note above */, HasDisplayData {
/**
* {@inheritDoc}
*
* <p>By default, does not register any display data. Implementors ... | 0 |
import org.apache.http.ConnectionReuseStrategy; | 0 |
return 0L;
return 0L; | 0 |
names[i] = super.getConstantPool().getConstantString(exception_index_table[i],
str = super.getConstantPool().getConstantString(exception_index_table[i], Constants.CONSTANT_Class);
c.setConstantPool(_constant_pool); | 0 |
import org.apache.commons.lang.StringUtils; | 0 |
//fall back to less-strong pid match
configureComponentHolder( componentHolder );
TargetedPID targetedPid = factoryPid == null? pid: factoryPid;
TargetedPID oldTargetedPID = componentHolder.getConfigurationTargetedPID();
... | 0 |
private Map namingEnumeration2Map (NamingEnumeration enumeration) throws NamingException {
while (enumeration.hasMore ()) {
SearchResult sr = (SearchResult)enumeration.next (); | 0 |
break;
break;
break; | 0 |
import org.apache.hc.core5.annotation.NotThreadSafe;
import org.apache.hc.core5.util.Args; | 1 |
import java.util.Collection;
public Collection<Channel> getChannels() {
return channels.values();
}
| 0 |
bigIntegerCoder.encode(value.unscaledValue(), outStream, context);
BigInteger bigInteger = bigIntegerCoder.decode(inStream, context);
+ bigIntegerCoder.getEncodedElementByteSize(value.unscaledValue(), context); | 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 |
for (final HttpAsyncResponseConsumer<T> responseConsumer: this.responseConsumers) {
for (final HttpAsyncResponseConsumer<T> responseConsumer: this.responseConsumers) {
for (final HttpAsyncRequestProducer requestProducer: this.requestProducers) {
for (final... | 0 |
* Copyright 2016-2017 Seznam.cz, a.s. | 0 |
@Inject | 0 |
import org.apache.accumulo.master.Master;
public static long reserveTable(Master env, Table.ID tableId, long tid, boolean writeLock,
if (getLock(env.getContext(), tableId, tid, writeLock).tryLock()) {
if (!zk.exists(env.getContext().getZooKeeperRoot() + Constants.ZTABLES + "/" + tableId))
public static ... | 0 |
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import org.apache.aurora.common.args.constraints.CanRead;
import org.apache.aurora.common.args.constraints.Exists;
@CmdLine(
name = "custom_executor_config",
help = "Path to custom execu... | 0 |
/** Tests for {@link EmptyFlattenAsCreateFactory}. */ | 1 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.io.ByteSource;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.io.CharSource;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.io.Files;
Iterable<File> files = Files.fileTraverser().depthFirstPostOrder(path.toFile()); | 0 |
ReplicationTarget target = new ReplicationTarget("cluster1", "table1", "1");
ReplicationTarget target1 = new ReplicationTarget("cluster1", "table1", "1"), target2 = new ReplicationTarget("cluster1", "table2", "2");
String keyTarget1 = target1.getPeerName() + ReplicationWorkAssignerHelper.KEY_SEPARATOR + tar... | 0 |
public class DOMGroupManager implements SVGSyntax, ErrorConstants {
throw new SVGGraphics2DRuntimeException(ERR_GC_NULL);
throw new SVGGraphics2DRuntimeException(ERR_DOMTREEMANAGER_NULL); | 0 |
* Copyright 2003-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 law o... | 0 |
List<PrincipalEntity> groupPrincipals = new LinkedList<>();
final Set<String> propertyIds = new HashSet<>(); | 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 may not... | 0 |
* @deprecated use TraversableSourceDescriptionGenerator instead
* @version CVS $Id: SourceDescriptionGenerator.java,v 1.7 2003/10/23 17:13:33 unico Exp $ | 0 |
* @param refImageURI the URI of the reference image | 1 |
private String getServiceName()
boolean isOptional()
private boolean isEffectivelyOptional()
private boolean isMultiple()
private boolean isStatic()
private boolean isReluctant() | 0 |
import java.security.PrivilegedAction;
return m_action.createProxy(
m_action.getClassLoader(URLStreamHandlerService.class),
new Class[]{URLStreamHandlerService.class},
new URLHandlersStreamHandlerProxy(service, m_action));
... | 0 |
* @version $Revision: 1.6 $ $Date: 2003/02/23 00:40:38 $
/**
* Checks whether the file's type has changed, and fires the appropriate
* events.
*/
if ( oldType == FileType.IMAGINARY && newType != FileType.IMAGINARY )
else if ( oldType != FileType.IMAGINARY && newType == FileType.IMAGI... | 0 |
* <p> The implementation of
* {@link org.apache.commons.fileupload.FileItem FileItem} interface.
* @version $Id: DefaultFileItem.java,v 1.4 2002/04/11 06:03:19 jmcnally Exp $ | 0 |
import org.apache.beam.sdk.values.WindowingStrategy; | 0 |
* This class provide support for the SVGTextPositionningElement
public static final String X_DEFAULT_VALUE
public static final String Y_DEFAULT_VALUE
public static final String DX_DEFAULT_VALUE
public static final String DY_DEFAULT_VALUE
public static final String ROTATE_DEFAULT_VALUE | 1 |
/**
* Implementation of the {@link ContentInputBuffer} interface that can be
* shared by multiple threads, usually the I/O dispatch of an I/O reactor and
* a worker tread. This class is not threading safe.
*/ | 0 |
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p>
* <p... | 1 |
* </li> | 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 |
* Copyright (C) 2015 Google Inc. | 0 |
final Date date = DateUtils.parseDate(response, HttpHeaders.DATE); | 0 |
* @version $Revision: 1.5 $, $Date: 2004/06/23 11:15:45 $
* Build a configuration from a table.- | 0 |
* (eg, a priority queue) or on any other well-defined ordering.
* and iteration orders, but this is not required.
* {@link Bag}. | 0 |
* StateSampler object for readers interested in further breaking
* down of the state space at a finer granularity.
*/
protected StateSampler stateSampler = null;
/**
* Name to be used as a prefix with {@code stateSampler}.
*/
protected String stateSamplerOperationName = null;
/**
* Sets the ... | 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 HashMap<>(); | 0 |
cfg.set(INSTANCE_CRYPTO_PREFIX.getKey() + "key.uri", CryptoTest.keyPath); | 0 |
* The basic operation of this Pipe is that it replaces wt:widget (in the
* {@link Constants#WT_NS} namespace) tags (having an id attribute)
* <p>These XML fragments (normally all in the {@link Constants#WI_NS "Woody Instance"} namespace), can
* @version CVS $Id: WidgetReplacingPipe.java,v 1.16 2003/12/08 21:32:26 v... | 0 |
return String.format("%s is not deterministic because:%n %s",
coder, Joiner.on("%n ").join(reasons)); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.