Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.cocoon.portal.util.AbstractBean; extends AbstractBean implements EventManager { /** The aspect chain for additional event processing. */ * Set the event chain. * @param a A chain. public void setAspectChain(AspectChain a) { this.chain = a; * Initialize this compo...
0
protected HashMap reverseMap = new HashMap(); reverseMap.put(namespaceURI, prefix);
0
import org.apache.xml.security.exceptions.XMLSecurityRuntimeException; throw new XMLSecurityRuntimeException("signature.XMLSignatureInput.nodesetReference",e);
0
import org.apache.accumulo.core.data.impl.KeyExtent;
1
import org.apache.accumulo.server.cli.ClientOpts; import com.beust.jcommander.Parameter; static class Opts extends ClientOpts { @Parameter(names={"-v", "--verbose"}, description="verbose mode (prints locations of tablets)") boolean verbose = false; } Opts opts = new Opts(); opts.parseArgs(Verify...
0
package org.apache.beam.runners.direct; import org.apache.beam.runners.direct.InProcessPipelineRunner.CommittedBundle; import org.apache.beam.runners.direct.InProcessPipelineRunner.UncommittedBundle;
0
package org.apache.hc.core5.testing.classic;
0
* @author Enver Haase
0
import com.google.cloud.dataflow.sdk.values.TimestampedValue; tester.injectElements( TimestampedValue.of(element, new Instant(element))); tester.injectElements( TimestampedValue.of(0, new Instant(0)), TimestampedValue.of(1, new Instant(0)), TimestampedValue.of(2, new Instant(1))...
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 java.security.PrivilegedActionException; Object svcObj = null; svcObj = AccessController.doPrivileged( svcObj = getFactoryUnchecked(acqBundle); catch (PrivilegedActionException ex) if (ex.getException() instanceof ServiceException) ...
0
if (!conf.contains("spark.master")) { // set master if not set. conf.setMaster(master); }
0
import org.w3c.dom.NamedNodeMap; public final class DOMXMLObject extends BaseStructure implements XMLObject { // Here we capture namespace declarations, so that when they're marshalled back // out, we can make copies of them. Note that attributes are NOT captured. NamedNodeMap n...
0
* @version CVS $Id$
0
for (Segment aResAbove : resAbove) { above.add(aResAbove); for (Segment aResBelow : resBelow) { below.add(aResBelow);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractIntArrayList.java,v 1.10 2003/08/31 12:59:57 scolebourne Exp $ * @version $Revision: 1.10 $ $Date: 2003/08/31 12:59:57 $ * @param mincap the minimu...
0
// NO 1 was the last FilePart, we're finished if (leftOver != null) { throw new IllegalStateException("Unexpected leftover of the last block: leftOverOfThisFilePart=" + new String(leftOver, encoding)); } return null;
0
package org.apache.beam.runners.spark.aggregators.metrics.sink;
0
import org.apache.http.impl.SessionOutputBufferMock; new ContentLengthOutputStream(new SessionOutputBufferMock(), 10L); new ContentLengthOutputStream(new SessionOutputBufferMock(), -10); SessionOutputBufferMock datatransmitter = new SessionOutputBufferMock(buffer); SessionOutputBuffe...
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
Element[] attributes = mbeans[0].getElements(JMX_PROPERTY_ELT, m_namespace); if (attributes == null) { attributes = mbeans[0].getElements(JMX_METHOD_ELT); if (attributes != null) { warn("The JMX property element should use the '" + m_namespace + "' namesp...
0
import org.apache.http.params.HttpParams; import org.apache.http.protocol.HttpContext; import org.apache.http.protocol.HttpExecutionContext; import org.apache.http.protocol.RequestConnControl; import org.apache.http.protocol.RequestContent; import org.apache.http.protocol.RequestExpectContinue; import org.apache.http.p...
0
* <b>DOM</b>: Implements {@link * SVGTransformList#createSVGTransformFromMatrix(SVGMatrix)}. * The {@link ListHandler} to pass newly created * {@link SVGTransformItem} objects to.
0
* * * * if (definition instanceof RepeaterDefinition) { RepeaterDefinition other = (RepeaterDefinition) definition; throw new Exception("Definition to inherit from is not of the right type! (at " + getLocation() + ")");
0
* Autogenerated by Thrift Compiler (0.10.0) public enum TUnloadTabletGoal implements org.apache.thrift.TEnum {
0
if (!windowingStrategy.getTrigger().getSpec() .isCompatible(other.getTrigger().getSpec())) {
0
import org.apache.aurora.common.application.ShutdownRegistry.ShutdownRegistryImpl; import org.apache.aurora.common.application.StartupRegistry; import org.apache.aurora.common.application.modules.LifecycleModule; import org.apache.aurora.common.application.modules.StatsModule; import org.apache.aurora.common.base.Comma...
0
import org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoderTest;
0
import java.io.Serializable; public class LRUCache implements Serializable {
0
"Max amount of time (in seconds) an unresponsive server will be re-tried. An" BATCH_WRITER_DURABILITY("batch.writer.durability", "default", Property.TABLE_DURABILITY .getDescription() + " Setting this property will " + "change the durability for the BatchWriter session. A value of \"default\" will u...
0
* {@link org.apache.commons.net.nntp.NNTPReply#SERVICE_DISCONTINUED NNTPReply.SERVICE_DISCONTINUED } * response to a command. * an {@link org.apache.commons.net.nntp.NNTPConnectionClosedException} * . * {@link org.apache.commons.net.nntp.NNTPConnectionClosedException} * , you must disconnect the connection with ...
0
return object == null;
0
import org.apache.ambari.common.rest.entities.KeyValuePair; for (KeyValuePair p : stack.getGlobals()) { config = config + "$"+p.getName() + " = " + "\"" + p.getValue() + "\"\n"; config = config + "\n";
0
Multimaps.index(drainingTasks.build(), Tasks.SCHEDULED_TO_SLAVE_HOST),
0
package org.apache.commons.digester3; import org.apache.commons.digester3.parser.GenericParser; import org.apache.commons.digester3.parser.XercesParser;
1
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 l...
0
package org.apache.beam.sdk.util;
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
* A {@link CoderRegistry} allows registering the default {@link Coder} to use for a Java class, * <p>{@link CoderRegistry} uses the following mechanisms to determine a default {@link Coder} for a * <li>Registration: * <ul> * <li>A {@link CoderFactory} can be registered to handle a particular class via ...
0
/** * Gets access to the mutable task store. * <p> * This is labeled as unsafe, since it's rare that a caller should be using this. In most * cases, mutations to the task store should be done through * {@link com.twitter.mesos.scheduler.StateManager}. * <p> * TODO(William Farner...
0
if (!connStrategy.keepAlive(conn, response)) {
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.aurora.scheduler.base.TaskTestUtil; import org.apache.aurora.scheduler.storage.entities.IScheduledTask; private static IScheduledTask makeTask(String id, ScheduleStatus status) { ScheduledTask builder = TaskTestUtil.addStateTransition( TaskTestUtil.makeTask(id, TaskTestUtil.JOB), ...
0
public class PersonGenericObject implements GenericObject {
0
* @return The matching files. The files are returned in depthwise order * (that is, a child appears in the list before its parent).
0
tkvl.set(0, new TKeyValue(param.get(0).getKey().toThrift(), ByteBuffer.wrap(param.get(0).getValue().get()))); Key prevKey = param.get(i - 1).getKey(); Key key = kv.getKey(); tkvl.set(i, new TKeyValue(newKey, ByteBuffer.wrap(kv.getValue().get())));
1
/* * 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 applica...
0
catch(ClassFormatException e){
0
log( LogService.LOG_DEBUG, "ConfigurableComponentHolder configuration updated for pid {0} with properties {1} and change count {2}", new Object[] {pid, props, changeCount}, null);
0
return PCollection.createPrimitiveOutputInternal( input.getPipeline(), input.getWindowingStrategy(), input.isBounded(), input.getCoder());
0
if (afterStopRunnable != null) { // Have it run our new runnable, and not return; afterStopRunnable = r; stopProcessing(); if ((documentLoader == null) && (gvtTreeBuilder == null) && (gvtTreeRenderer == null) && ...
0
import java.util.Comparator; public Map<String, Map<String, String>> getHostChangesFileMap() { return hostChangesFileMap; } public void setHostChangesFileMap(Map<String, Map<String, String>> hostChangesFileMap) { this.hostChangesFileMap = hostChangesFileMap; } void validateHostChanges() throws Ambar...
0
import org.apache.accumulo.core.client.Accumulo; try (AccumuloClient c = Accumulo.newClient().from(getClientProps()).build()) {
0
import org.apache.felix.dm.annotation.api.Param;
0
/** * @deprecated Use {@link #URI_PATTERN_ORDER_EXACT_OVERRIDE} */ @Deprecated BASIC, REGEX, URI_PATTERN, URI_PATTERN_IN_ORDER; case REGEX: return new UriRegexMatcher<>(); case URI_PATTERN: return new UriPatternMatcher<>(); case URI_PATTERN_IN_O...
0
* @see org.apache.commons.dbutils.ResultSetHandler
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
/* * 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
runTestCase(executor, settings, tc); * Run a given test case originating from the operator test. */ @SuppressWarnings("unchecked") protected void runTestCase(Executor executor, Settings settings, TestCase tc) throws Exception { ListDataSink sink = ListDataSink.get(tc.getNumOutputPartitions...
0
Copyright 1999-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.logfeeder.util.LogFeederUtil;
0
* Tests whether list handling works correctly when adding properties. */ @Test public void testAddPropertyWithListHandling() { config.setListDelimiterHandler(new DefaultListDelimiterHandler(',')); final String key = "list.delimiter.value"; config.addProperty(key + ".escaped...
0
import org.apache.beam.vendor.grpc.v1.io.grpc.stub.StreamObserver; import org.apache.beam.vendor.protobuf.v3.com.google.protobuf.ByteString;
0
import java.util.Objects; session = Objects.requireNonNull(createSession(Nio2Acceptor.this, address, result, handler), "No NIO2 session created");
0
import org.apache.log4j.Logger; private static final Logger LOG = Logger.getLogger(AuthFastLeaderElection.class); LOG.warn("Exception receiving: " + e.toString()); LOG.error("Got a short response: " LOG.error("Got bad Msg type: " + type); ...
0
import cz.seznam.euphoria.core.client.io.BoundedDataSource; public DataSet translate( FlinkOperator<FlowUnfolder.InputOperator> operator, BatchExecutorContext context) { BoundedDataSource<?> ds = operator.output().getSource().asBounded(); .createInput(new DataSourceWrapper<>(ds, splitAssignerF...
0
import com.google.common.collect.ImmutableMap; import com.google.inject.Key; import com.twitter.common.application.StartupStage; import com.twitter.common.application.modules.LifecycleModule; import com.twitter.common.base.ExceptionalCommand; import com.twitter.common.stats.StatsProvider; import org.apache.aurora.sche...
0
import com.google.cloud.dataflow.sdk.util.common.worker.NativeReader; public synchronized NativeReader.Progress getWorkerProgress() { public NativeReader.DynamicSplitResult requestDynamicSplit( NativeReader.DynamicSplitRequest splitRequest) { return new NativeReader.DynamicSplitResultWithPosition(
0
import org.apache.beam.sdk.io.FileSystems; import org.apache.beam.sdk.io.fs.ResourceId; private ResourceId resourceId; final ResourceId resourceId; public Result(ResourceId resourceId, long byteSize) { this.resourceId = resourceId; resourceId = FileSystems.matchNewResource(tempFilePrefix + id, false...
0
* @return the node in this element.
0
import org.apache.felix.serializer.Serializer;
0
import org.apache.beam.sdk.state.TimeDomain;
0
import org.apache.accumulo.core.client.AccumuloSecurityException; public void setAccumuloConfigs(Job job) throws AccumuloSecurityException { org.apache.accumulo.core.client.mapreduce.AccumuloInputFormat.setZooKeeperInstance(job, this.instance, this.zookeepers); org.apache.accumulo.core.client....
0
import com.google.common.base.Predicate; import com.google.common.collect.Iterables; final Map<TupleTag<?>, Map<BoundedWindow, Object>> sideInputCache; <T> T sideInput(PCollectionView<T> view, BoundedWindow mainInputWindow) { Map<BoundedWindow, Object> tagCache = sideInputCache.get(tag); if (tagCache == nul...
0
return unwrap(result); return unwrap(result); return unwrap(result); return unwrap(result); private static Object unwrap(Object result) { if (result == Undefined.instance || result == Scriptable.NOT_FOUND) { return null; ...
0
package org.apache.beam.sdk.extensions.euphoria.executor.local; import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing.Window;
0
public class Filter<InputT> extends ElementWiseOperator<InputT, InputT> { final UnaryPredicate<InputT> predicate; Dataset<InputT> input, UnaryPredicate<InputT> predicate, * @param <InputT> the type of elements of the input dataset public static <InputT> ByBuilder<InputT> of(Dataset<InputT> input) { ...
0
* @since 4.0
0
package org.apache.felix.obr.plugin;
0
@Override * @param element @Override
0
+ "DoFn#getAllowedTimestampSkew() Javadoc for details on changing the allowed skew.",
0
* Builds {@link FieldDefinition}s. if (widgetElement.hasAttribute("required")) { } if (whitespace == null) { DomHelper.getLocationObject(widgetElement));
0
cal.set(Calendar.DAY_OF_MONTH, 24); cal.set(Calendar.DAY_OF_MONTH, 24);
0
package org.apache.accumulo.core.data; import org.apache.hadoop.io.WritableComparator; public abstract class ByteSequence implements Comparable<ByteSequence>{ public abstract byte byteAt(int i); public abstract int length(); public abstract ByteSequence subSequence(int start, int end); //may copy data pu...
1
* @param entries The array of Kern objects that represent the kerning * entries for the font that this kerning table belongs to.
0
if (i == rlm.size) break;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.55 2002/07/16 21:23:27 rdonkin Exp $ * $Revision: 1.55 $ * $Date: 2002/07/16 21:23:27 $ * @version $Revision: 1.55 $ $Date: 2002/07/16 21:23:27 $ /** * Add ...
0
import com.google.cloud.dataflow.sdk.transforms.windowing.PaneInfo; /** * Returns information about the pane within this window into which the * input element has been assigned. * * <p>Generally all data is in a single, uninteresting pane unless custom * triggering and/or late data has bee...
0
if (prop.getType() == PropertyType.PREFIX) { assertNull("PREFIX property " + prop.name() + " has unexpected non-null default value.", prop.getDefaultValue()); } else { assertTrue("Property " + prop + " has invalid default value " + prop.getDefaultValue() + " for type " + prop.getType(), ...
0
* This class is intended only for the use of the code in the plugins packages. No "user" code should use this package. * The Digester module has an interesting approach to logging: all logging should be done via the Log object stored on * the digester instance that the object *doing* the logging is associated with. ...
1
KeyPairIterator(Collection<? extends R> resources) {
0
package org.apache.accumulo.master.tableOps.clone; import org.apache.accumulo.master.tableOps.MasterRepo; import org.apache.accumulo.master.tableOps.Utils;
0
/** * @return true if the peer is the current leader */ public boolean isLeader();
0
if (self.getQuorumVerifier().getVotingMembers().containsKey(entry.getKey()) && vote.equals(entry.getValue())){ if(self.getQuorumVerifier().getVotingMembers().containsKey(self.getId()))
0
package org.apache.beam.runners.core;
0
signaturePartDef.setGenerateXPointer(securePart.isGenerateXPointer());
0
* @param message HTTP message
0
throw new CommandNotFoundException(scmd);
0
* Copyright 2000-2004 The Apache Software Foundation
0
* * * if (definition instanceof UnionDefinition) { UnionDefinition other = (UnionDefinition) definition; this.caseWidgetId = other.caseWidgetId; } else { throw new Exception("Definition to inherit from is not of the right type! (at " + getLocation() + ")."); ...
0