Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; * @version $Id: Introspector.java,v 1.4 2002/12/16 10:41:59 jstrachan Exp $
0
FinishedTriggersProperties.verifyGetAfterSet(FinishedTriggersSet.fromSet(new HashSet<>())); FinishedTriggersProperties.verifyClearRecursively(FinishedTriggersSet.fromSet(new HashSet<>())); FinishedTriggersSet finishedSet = FinishedTriggersSet.fromSet(new HashSet<>());
0
* limitations under the License.
0
/** * @since Mar 14, 2002 * @version CVS $Id: InstanceImpl.java,v 1.2 2003/03/16 17:49:05 vgritsenko Exp $
0
public class PubsubUnboundedSource extends PTransform<PBegin, PCollection<PubsubMessage>> { static class PubsubReader extends UnboundedSource.UnboundedReader<PubsubMessage> { public PubsubMessage getCurrent() throws NoSuchElementException { return new PubsubMessage(current.elementBytes, current.attributes);...
0
import org.apache.accumulo.core.data.TableId; public Path getFullPath(TableId tableId, String path) {
0
ServerConstants.getTablesDirs(context));
0
final SocketHolder socketHolder = ensureOpen(); final HttpRequest request = this.requestParser.parse(this.inbuffer, socketHolder.getInputStream()); final SocketHolder socketHolder = ensureOpen(); final HttpEntity entity = createIncomingEntity(request, this.inbuffer, socketHolder.getInput...
0
import java.util.logging.Logger; import com.twitter.common.args.constraints.CanRead; import com.twitter.common.args.constraints.CanWrite; import com.twitter.common.args.constraints.Exists; import com.twitter.common.args.constraints.IsDirectory; private static final Logger LOG = Logger.getLogger(DbStorageModule.class....
0
package org.apache.felix.dm.annotation.api.dependency;
0
import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Collection; import java.util.List; @SuppressWarnings("rawtypes") } else if (obj instanceof Collection) { return encodeCollection((Collection) obj); } else if (obj.getClass().isArray()) { return encod...
0
public class DMCommand {
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
1
return SimpleFilter.compareSubstring((List<String>) rhs, (String) lhs);
0
import org.apache.beam.dsls.sql.planner.BeamSqlRelUtils; import org.apache.beam.dsls.sql.schema.BeamSqlRecordType; import org.apache.beam.dsls.sql.schema.BeamSqlRow; @Override public PCollection<BeamSqlRow> buildBeamPipeline(PCollectionTuple inputPCollections) PCollection<BeamSqlRow> upstream = BeamSqlRelUtils.ge...
0
public static Object createValue(final String str, final Object obj) throws ParseException public static Object createValue(final String str, final Class<?> clazz) throws ParseException public static Object createObject(final String classname) throws ParseException public static Number createNumber(fina...
0
import java.util.UUID; public static void create(String sandboxName) { File.separatorChar + "storage" + File.separatorChar + sandboxName; File.separatorChar + "index" + File.separatorChar + sandboxName; public static void creat...
0
* * * * * * * * // unless offset it kept track of super(seekableInput, size); this.seekableInput ...
0
import org.apache.ambari.server.security.authorization.ResourceType; EasyMock.expect(resourceTypeEntity.getName()).andReturn(ResourceType.AMBARI.name());
0
* @since 3.0
0
private static final long serialVersionUID = 7916641859064664263L;
0
* * @version $Id$
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
Assert.assertEquals(AccumuloConfiguration.getFixedMemoryAsBytes("64K"), plan.writeParameters.getBlockSize()); Assert.assertEquals(AccumuloConfiguration.getFixedMemoryAsBytes("256M"), plan.writeParameters.getHdfsBlockSize()); Assert.assertEquals(AccumuloConfiguration.getFixedMemoryAsBytes("32K"), plan.writeP...
1
interface Params { int cronSchedulerNumThreads(); String cronTimezone(); Amount<Long, Time> cronStartInitialBackoff(); Amount<Long, Time> cronStartMaxBackoff(); } private final Params params; public CronModule() { this.params = new Params() { @Override public int cronSchedul...
0
/* * $Header: /cvshome/build/ee.foundation/src/java/security/Key.java,v 1.6 2006/03/14 01:20:27 hargrave Exp $ * * (C) Copyright 2001 Sun Microsystems, Inc. * Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this ...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Sets;
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 applicabl...
0
public ColumnToClassMapping(Map<String,String> objectStrings, Class<? extends K> c) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { public ColumnToClassMapping(Map<String,String> objectStrings, Class<? extends K> c, String context) throws InstantiationE...
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
package org.apache.beam.sdk.io.gcp.datastore; import org.apache.beam.sdk.io.gcp.datastore.V1Beta3.DatastoreReader; import org.apache.beam.sdk.io.gcp.datastore.V1Beta3.DatastoreSource; import org.apache.beam.sdk.io.gcp.datastore.V1Beta3.DatastoreWriter;
0
package aQute.bnd.service; import aQute.bnd.build.*; public interface LauncherPlugin { ProjectLauncher getLauncher(Project project) throws Exception; ProjectTester getTester(Project project); }
0
return WindowedValue::valueInGlobalWindow; return WindowedValue::getValue; return WindowedValue::valueInGlobalWindow; return WindowedValue::getValue;
0
package org.apache.accumulo.cloudtrace.instrument;
0
* This test reproduces the following race condition: * * A "Pojo" component depends on a required "MyDependency" service. * The Pojo also has a configuration dependency. * * Now, concurrently, the MyDependency is restarted and the configuration is updated. * This means that the Pojo is restarted and should als...
0
/** */ public class MethodUtilsTestCase extends TestCase { public MethodUtilsTestCase(String name) { public void setUp() { public static Test suite() { public void tearDown() { // ------------------------------------------------ Individual Test Methods public void testGetAccessibleMethod() ...
0
/** Test UnboundedEventSource. */ return new GeneratorConfig(NexmarkConfiguration.DEFAULT, System.currentTimeMillis(), 0, n, 0); * Helper for tracking which ids we've seen (so we can detect dups) and confirming reading events * match the model events. * Check aggressively checkpointing and resuming a reade...
1
* This class is Serializable from Commons Collections 3.1.</p> * Attempts to modify it will result in an UnsupportedOperationException.</p> * If the bag passed in is already unmodifiable, it is returned.</p> * @param <E> the type of the elements in the bag
0
Scope.Frame frame = script.createFrame(bean); throw xjexl.clean(); Scope.Frame frame = script.createFrame(bean, value); throw xjexl.clean(); throw xjexl.clean(); throw xjexl.clean(); protected Interpreter createInterpreter(JexlContext c...
0
import org.apache.accumulo.core.clientImpl.mapreduce.lib.OutputConfigurator; /** * This tests deprecated mapreduce code in core jar */ @Deprecated OutputConfigurator.setVisibilityCacheSize(job, JOB_VISIBILITY_CACHE_SIZE); AccumuloInputFormat.setZooKeeperInstance(job, ci.getInstanceName(), ci.getZooKeepers...
0
import static org.apache.ambari.server.controller.metrics.MetricsPaddingMethod.ZERO_PADDING_PARAM; import java.util.Map; import java.util.Set; import java.util.regex.Pattern;
0
public boolean isRegisterByteSizeObserverCheap(Instant value) { ORDER_PRESERVING_CONVERTER.convert(value)); Instant value, ElementByteSizeObserver observer) throws Exception { ORDER_PRESERVING_CONVERTER.convert(value), observer);
0
package org.apache.http.impl.execchain;
0
* <p>Returns the {@link Digester} that was set by the * {@link FactoryCreateRule} upon initialization. */ Digester getDigester(); /**
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 use ...
0
/* * List of fields of the implementation class. private Set<String> m_fields; public InnerClassAdapter(ClassVisitor arg0, String outerClass, Set<String> fields) { }
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 m...
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
fail("should not get here"); fail("should not get here"); fail("should not get here");
0
import java.io.Serializable; public class OrderedDictionary extends Dictionary<String, Object> implements Map<String, Object>, Serializable { private static final long serialVersionUID = -525111601546803041L;
0
result.appendChild(super.getKeyInfo().getElement().cloneNode(true)); result.appendChild(super.getKeyInfo().getElement().cloneNode(true));
0
InputT, OutputT, RestrictionT, PositionT, TrackerT extends RestrictionTracker<RestrictionT, PositionT>>
0
import org.apache.commons.vfs.Capability; if (!isPreserveLastModified() && destFile.getFileSystem().hasCapability(Capability.SET_LAST_MODIFIED_FILE))
0
package aQute.bnd.osgi; import java.net.*; /** * Return a data uri from the JAR. The data must be less than 32k * * @param jar * The jar to load the data from * @param path * the path in the jar * @param mime * the mime type * @return a URI or null if conversion cou...
0
@ConsumerType @Deprecated
0
* ResponseDate is responsible for adding <code>Date<c/ode> header to the * outgoing responses. This interceptor is recommended for server side protocol * private static final HttpDateGenerator DATE_GENERATOR = new HttpDateGenerator(); public void process(final HttpResponse response, final HttpContext contex...
0
.setJob(JobKeys.from("role", "test", job).newBuilder()) .setOwner(new Identity().setUser("owner"))
0
return propertyValue != null && compareValueTo(propertyValue) <= 0;
1
package org.apache.accumulo.tserver.mastermessage;
1
package org.apache.commons.jexl2; import org.apache.commons.jexl2.junit.Asserter;
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.sshd.common.BaseBuilder; import org.apache.sshd.common.cipher.Cipher; import org.apache.sshd.common.mac.Mac; import org.apache.sshd.common.signature.Signature; List<? extends NamedResource> expected=BaseBuilder.DEFAULT_CIPHERS_PREFERENCE; List<? extends NamedResource> expected=Base...
0
ArgumentList alIn = upnpAct.getInputArgumentList(); ArgumentList alOut = upnpAct.getOutputArgumentList(); arg=alIn.getArgument(inArg[j]); arg = alOut.getArgument(outArg[j]);
0
* * * * * * * * * * * * * * * * * *
0
private Mark cachedMark = null; private AttributedCharacterIterator cachedACI = null; private TextHitInfo cachedHit = null; TextHitInfo textHit = layout.hitTestChar((float) (x+tx), (float) y, layout.getBounds()); if ((aci != cachedACI) || (textHit == null) || ...
0
import java.util.concurrent.ExecutorService; import org.apache.sshd.git.AbstractGitCommandFactory; * Runs a GIT command locally using an embedded executor public class GitPgmCommandFactory extends AbstractGitCommandFactory { super(rootDir, delegate, GIT_COMMAND_PREFIX); } @Override public GitPgmC...
0
import java.math.BigDecimal; import java.math.BigInteger; import org.apache.commons.collections.Predicate; import org.apache.commons.collections.iterators.FilterIterator; * @version $Id: AbstractConfiguration.java,v 1.7 2004/03/09 10:31:31 epugh Exp $ return new SubsetConfiguration(this, prefix, "."); publ...
0
if (utilizedAttributes == Collections.<XMLSecAttribute>emptyList()) { if (utilizedAttributes == Collections.<XMLSecAttribute>emptyList()) {
1
if (this.value == null) { } else { int len = this.name.length() + 1 + this.value.length();
0
import java.util.List; * @version CVS $Id$ } else { List list = (List) request.getAttribute("org.apache.cocoon.portal." + parameterName); if (list != null) { Event[] events = (Event[]) list.toArray(new Event[0]); final Publisher publisher = co...
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
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 com.google.inject.Guice; import com.google.inject.Inject; import com.google.inject.Injector; import org.apache.ambari.server.orm.GuiceJpaInitializer; import org.apache.ambari.server.orm.InMemoryDefaultTestModule; import org.junit.Before; Injector injector; @Inject StageFactory stageFactory; @Before p...
0
import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.persist.PersistService; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.orm.GuiceJpaInitializer; import org.apache.ambari.server.orm.InMemoryDefaultTestModule; import org.apache.ambari.server.sta...
0
private final ZooKeeperServer zks; private final LinkedBlockingQueue<Request> queuedRequests = new LinkedBlockingQueue<Request>(); private final RequestProcessor nextProcessor; private Thread snapInProcess = null; private final LinkedList<Request> toFlush = new LinkedList<Request>(); p...
0
return TabletLocator.getLocator((ClientContext) client, tableId); Scanner scanner = context.createScanner(MetadataTable.NAME, Authorizations.EMPTY);
0
cacheDereferencedElement(input); XMLSignatureInput output = this.getContentsAfterTransformation(input, os); this.transformsOutput = output;
0
import java.util.Collection;
0
.into(TypeDescriptors.kvs(TypeDescriptors.strings(), TypeDescriptors.integers())) .via((GameActionInfo gInfo) -> KV.of(gInfo.getKey(field), gInfo.getScore())))
0
return SparkExecutor .newBuilder(EuphoriaSparkTrends.class.getSimpleName(), conf) .build();
0
@SuppressWarnings("serial") @SuppressWarnings("serial") @SuppressWarnings("serial")
0
@SuppressWarnings("rawtypes")
0
package org.apache.felix.bundleplugin;
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
final TabletGroupWatcher dependentWatcher; TabletGroupWatcher(TabletStateStore store, TabletGroupWatcher dependentWatcher) { this.dependentWatcher = dependentWatcher; // if we are shutting down all the tabletservers, we have to do it in order if (goal == TabletGoalState.UNASSI...
0
protected String configuration; /** The logging category. */ protected String category; String loggerConfig = this.configuration; String loggingCategory = this.category; if ( loggingCategory == null ) { loggingCategory = "cocoon"; } this.logger = loggerMa...
0
executorCore.executePendingTask(driver, taskInfo, task.getTaskId());
0
package org.apache.commons.digester3.examples.api.catalog;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Validator.java,v 1.18 2003/05/20 00:19:10 dgraham Exp $ * $Revision: 1.18 $ * $Date: 2003/05/20 00:19:10 $ * @version $Revision: 1.18 $ $Date: 2003/05/20 00:19:10 $ * Logger. ...
0
log.debug("New tablet servers noticed: " + added); log.debug("Tablet servers removed: " + deleted);
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
// TODO: infer a fixed id from the name String.valueOf(ctx.getCurrentTopologicalId()), input.isBounded(), final RunnerApi.PCollection input = pipeline.getComponents().getPcollectionsOrThrow(inputId); final PCollection.IsBounded isBounded = SamzaPipelineTranslatorUtils.isBound...
0
@Override @Override
0
import org.apache.ambari.server.audit.AuditLogger; bind(AuditLogger.class).toInstance(createNiceMock(AuditLogger.class));
1
package org.apache.commons.net.io; * @version $Id: CopyStreamListener.java,v 1.10 2004/06/29 04:54:31 dfs Exp $
0
import org.apache.hadoop.conf.Configuration; public void configure(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {
0
ClientContext context = (ClientContext) client; log.debug("Created client with user: " + context.whoami()); scanner = context.createBatchScanner(baseSplit.getTableName(), authorizations, return InputConfigurator.binOffline(tableId, ranges, (ClientContext) client); ClientContext conte...
0
import com.google.common.base.Preconditions; private volatile boolean closed = false; Preconditions.checkState(!closed); Preconditions.checkState(!closed); Preconditions.checkState(!closed); Preconditions.checkState(!closed); public void close() { closed = true; } Preconditions.checkStat...
0
number = parse(type, stringValue, format); String msg = toString(getClass()) + " cannot handle conversion to '" + toString(type) + "'"; if (log().isWarnEnabled()) { log().warn(" " + msg); } throw new ConversionException(msg); String m...
0
* $HeadURL$
0