Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
public static TimeType findByValue(int value) {
0
* @version $Id$
0
import org.apache.batik.util.Base64Decoder; * @param bounds The bounds of the image if (img == null) catch (Exception e) { // Store the result in the RasterRable, and wake up /** /** if (bi != null) else this.start ...
0
package org.apache.ambari.server.api.services; import org.apache.ambari.server.api.handlers.RequestHandler; import org.apache.ambari.server.api.resources.ResourceDefinition; import org.apache.ambari.server.api.services.serializers.ResultSerializer;
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
import org.apache.http.params.DefaultedHttpParams; * * @deprecated (4.3) use {@link DefaultedHttpParams} @Deprecated
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
0
import org.apache.aurora.scheduler.async.DelayExecutor; DelayExecutor executorMock = createMock(DelayExecutor.class); clock = FakeScheduledExecutor.fromDelayExecutor(executorMock);
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...
0
import org.apache.accumulo.core.client.Accumulo; client = Accumulo.newClient().from(getClientProps()).build();
0
FormattingMessager messager = new FormattingMessager( processingEnv.getMessager() ); messager.error( "Processing @%s %s", annotation, element ); messager.error( "Class %s.%s has been already defined", packageName, className ); messager.error( "Impossible to generate c...
0
HttpGet httpget = new HttpGet("http://www.apache.org/"); // When HttpClient instance is no longer needed, httpclient.getConnectionManager().shutdown();
0
* @version CVS $Id: ProfilerData.java,v 1.3 2003/09/24 22:00:34 cziegeler Exp $ protected Entry(String role, String source) {
0
* <p>This pipeline example reads lines of the input text file, splits each line into individual * words, capitalizes those words, and writes the output to a BigQuery table. * (there are no defaults for a general Beam pipeline). You can override them by using the {@literal * --bigQueryDataset}, and {@literal --bigQu...
1
if (stateToHosts == null || stateToHosts.size() < 1) { // !!! if all we have is NOT_REQUIRED and something else, the return should be the something else if (2 == stateToHosts.size()) { Map<RepositoryVersionState, Set<String>> map = Maps.filterKeys(stateToHosts, new com.google.commo...
0
@Test public void testElectionTimeUnit() throws Exception { Assert.assertEquals("MS", QuorumPeer.FLE_TIME_UNIT); }
0
import static com.google.common.base.Preconditions.checkState; checkState(!finishedSpecifying, "cannot change the name of %s once it's been used", this); public void finishSpecifyingOutput( String transformName, PInput input, PTransform<?, ?> transform) { if (name == null) { setName(defaultName(t...
0
import static org.easymock.EasyMock.eq; Map<String, String> requestProperties = new HashMap<String, String>(); requestProperties.put("context", "Called from a test"); "Cluster100", "Service100", "Action100"), eq(requestProperties))).andReturn(response); Request request = PropertyHelper.getCreat...
0
* @version CVS $Id: CocoonServlet.java,v 1.20 2003/11/03 21:23:45 mpo Exp $ this.appContext.put(Constants.CONTEXT_DEFAULT_ENCODING, this.defaultFormEncoding);
0
import org.apache.http.ProtocolVersion; import org.apache.http.message.AbstractHttpMessage; static class TestHttpMessage extends AbstractHttpMessage { private final ProtocolVersion ver; public TestHttpMessage(final ProtocolVersion ver) { super(); this.ver = ver != null ? ve...
0
import java.awt.Graphics2D; import java.awt.Shape; import java.awt.geom.Rectangle2D; public class ImageNode extends CompositeGraphicsNode { * Constructs a new empty <tt>ImageNode</tt>. public ImageNode() {} // // Properties methods // public void setImage(GraphicsNode newImage) { getCh...
0
package org.apache.accumulo.core.clientImpl;
0
if (Direction.DOWNGRADE == ctx.getDirection()) { return result; }
0
AtlasTypesDef createUpdateTypesDef(AtlasTypesDef typesToCreate, AtlasTypesDef typesToUpdate) throws AtlasBaseException;
0
import org.apache.accumulo.core.security.thrift.TCredentials; private TCredentials credentials; public InstanceOperationsImpl(Instance instance, TCredentials credentials) {
1
import org.apache.beam.sdk.coders.CustomCoder; new CustomCoder<Checkpoint>() { @Override public void verifyDeterministic() throws NonDeterministicException {}
0
import com.google.cloud.dataflow.examples.WordCount;
0
* The {@link Scope} enumeration is used to define the area that an alert has * the most meaning. This is primary used as a way for a UI to determine the * correct views that the alert should be visible in. * The alert only makes sense when viewing a host that the alert runs on. /** * The alert only makes se...
0
package org.apache.accumulo.master.tableOps.tableImport; import org.apache.accumulo.master.tableOps.MasterRepo; import org.apache.accumulo.master.tableOps.Utils; import org.apache.accumulo.master.tableOps.tableExport.ExportTable; Utils.getIdLock().lock(); Utils.getIdLock().unlock();
0
import org.apache.aurora.common.zookeeper.SingletonService; import org.apache.aurora.common.zookeeper.SingletonService.LeadershipListener;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/SequencedHashMap.java,v 1.18 2003/08/31 13:07:26 scolebourne Exp $ * @version $Revision: 1.18 $ $Date: 2003/08/31 13:07:26 $ // implemented, then what happens when the lin...
0
*/ /** Add ints */ public IADD() { super(org.apache.bcel.Constants.IADD); } /** * Call corresponding visitor method(s). The order is: * Call visitor methods of implemented interfaces first, then * call methods according to the class hierarchy in descending order, * i.e...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbutils/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java,v 1.2 2003/11/28 19:32:10 dgraham Exp $ * $Revision: 1.2 $ * $Date: 2003/11/28 19:32:10 $ private RowProcessor convert = ArrayHandler.ROW_PROCESSOR;
0
public class TestServerSidePipelining extends HttpCoreNIOTestBase {
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
* * <p>Inherits standard configuration options.
0
public void testStaticInvokeMethod() throws Exception { Object value = null; int current = TestBean.currentCounter(); value = MethodUtils.invokeStaticMethod(TestBean.class, "currentCounter", new Object[0]); assertEquals("currentCounter value", current, ((Integer) value).intValue())...
0
import java.io.Serializable; public class CompositeMap implements Map, Serializable { public static interface MapMutator extends Serializable {
0
/** * Creates a new variable resolver with default capacity. */ /** * Creates a new variable resolver and initializes both - capacity & load factor * * @param initialCapacity the initial capacity of the variable container * @param loadFactor the load factor of the variable contai...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/taglibs/bsf/src/java/org/apache/commons/jelly/tags/bsf/Attic/BSFTagLibrary.java,v 1.1 2002/05/21 07:58:55 jstrachan Exp $ * $Revision: 1.1 $ * $Date: 2002/05/21 07:58:55 $ * $Id: BSFTagLibrary.java,v 1.1 2002/05/21 07:5...
0
import static org.mockito.ArgumentMatchers.isA; import org.apache.hc.client5.http.sync.ExecRuntime;
0
info.setServiceClass(componentClass); info.setConfiguration(configuration); info, final ServiceInfo info = new ServiceInfo(); info.setConfiguration(configuration); info.setServiceCl...
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
// ignore exception
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
@Rule public transient ExpectedException e = ExpectedException.none(); DoFn<Void, String> brokenFn = new DoFn<Void, String>() { @ProcessElement public void process(ProcessContext c, OffsetRangeTracker tracker) { c.output("foo"); } @GetInitialRestriction...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/SynchronizedSet.java,v 1.4 2003/11/16 00:39:37 scolebourne Exp $ * @version $Revision: 1.4 $ $Date: 2003/11/16 00:39:37 $ * @deprecated TO BE REMOVED BEFORE v3.0
0
import org.apache.felix.sigil.ui.eclipse.ui.util.IElementDescriptor;
0
* Copyright (C) 2015 Google Inc.
0
+ SitemapParameters.getLocation(parameters));
0
/** * From attribute. */ private String m_from; if (arg0.equals("from")) { m_from = arg1.toString(); return; } if (m_from != null) { req.addAttribute(new Attribute("from", m_from)); ...
0
null);
0
import org.apache.commons.codec.CharEncoding;
0
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.UUID;
0
import org.apache.accumulo.core.cli.Help; import org.apache.accumulo.core.conf.DefaultConfiguration; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.security.thrift.SecurityErrorCode; import com.beust.jcommander.Parameter; return new UpdateErrors(new HashMap<TKeyExtent,Long>(), new...
1
public URL createURL(int port, String path) m_module.getId(), port, path, m_streamHandler);
0
private static final long serialVersionUID = -2316732495687628398L;
0
System.out.println("Remote system is " + ftps.getSystemType());
0
import java.util.Collections; public List<ComponentConfigMappingEntity> findByComponentAndType(long clusterId, String serviceName, String componentName, Collection<String> configTypes) { if (configTypes.isEmpty()) { return Collections.emptyL...
1
.withCnf(cnf -> cnf.update(DictionaryAspectConfiguration.class, DictionaryAspect::addWords))
0
package org.apache.beam.sdk.extensions.euphoria.beam; import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.AccumulatorProvider; import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.Counter; import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.Histogram; import o...
0
import com.google.common.base.Supplier; bind(new TypeLiteral<Supplier<Boolean>>() { })
0
* $Id: DelegatingPreparedStatement.java,v 1.8 2003/03/06 00:04:58 rwaldhoff Exp $ * $Revision: 1.8 $ * $Date: 2003/03/06 00:04:58 $ * @version $Revision: 1.8 $ $Date: 2003/03/06 00:04:58 $ /* JDBC_3_ANT_KEY_BEGIN */ /* JDBC_3_ANT_KEY_END */
0
normalMap = new TreeMap<K, V>(comparator); reverseMap = new TreeMap<V, K>(valueComparator); @SuppressWarnings("unchecked") // will fail at runtime if the stream is incorrect Map<K, V> map = (Map<K, V>) in.readObject();
0
package org.apache.commons.digester3.xmlrules; import org.apache.commons.digester3.Digester; import org.apache.commons.digester3.xmlrules.DigesterRulesSource;
1
import org.apache.http.annotation.Immutable;
0
import org.apache.ambari.server.orm.entities.UpgradeEntity; Direction direction = upgradeContext.getDirection(); RepositoryType repositoryType = upgradeContext.getOrchestrationType(); // mark revertable if (repositoryType.isRevertable() && direction == Direction.UPGRADE) { UpgradeEntity upg...
0
@Deprecated
0
import org.apache.ambari.server.controller.spi.Predicate;
0
package org.apache.felix.obrplugin;
0
VolumeChooserEnvironment chooserEnv = new VolumeChooserEnvironment(tableId);
0
public void testIsViewRemoveUndeployedEnabled() throws Exception { final Properties ambariProperties = new Properties(); Configuration configuration = new Configuration(ambariProperties); Assert.assertFalse(configuration.isViewRemoveUndeployedEnabled()); ambariProperties.setProperty(Configuration.VIE...
0
this.project.getClassLoader(),
0
public interface SVGFilterConverter extends SVGSyntax {
0
import org.apache.ambari.server.mpack.MpackManagerFactory; bind(MpackManagerFactory.class).toInstance(createNiceMock(MpackManagerFactory.class)); binder.bind(MpackManagerFactory.class).toInstance(createStrictMock(MpackManagerFactory.class));
0
package org.apache.cocoon.it;
0
public class StaticProfileManager extends AbstractProfileManager implements Configurable { layoutKey = service.getDefaultLayoutKey();
0
import org.apache.ambari.server.controller.internal.URLStreamProvider; URLStreamProvider streamProvider,
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
boolean ret = AtlasTypeUtil.isValid(objId) && (StringUtils.equals(objId.getTypeName(), getTypeName()) || isSuperTypeOf(objId.getTypeName()));
0
import org.apache.beam.sdk.schemas.Schema.FieldType; import org.apache.beam.sdk.schemas.Schema.FieldTypeDescriptor; Column.builder() .name("id") .typeDescriptor(FieldTypeDescriptor.of(FieldType.INT32)) .primaryKey(true) .build(), 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 not u...
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
public PersistenceException(String msg) { super(msg); }
0
private final HttpRequest expected;
0
private final Scanner scanner; @Override @Deprecated @Deprecated
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/test/org/apache/commons/jelly/define/Attic/TestDynamicTags.java,v 1.8 2002/07/15 12:13:20 jstrachan Exp $ * $Revision: 1.8 $ * $Date: 2002/07/15 12:13:20 $ * $Id: TestDynamicTags.java,v 1.8 2002/07/15 12:13:20 jstrachan...
0
* http://www.apache.org/licenses/LICENSE-2.0
0
* @version $Revision$ $Date$
0
/** Tests for {@link ByteKeyRange}. */ /** Tests that the two ranges overlap, passing each in as the first range in the comparison. */ /** Helper function for tests with a good error message. */ /** Tests of {@link ByteKeyRange#overlaps(ByteKeyRange)} with cases that should return true. */ /** Tests of {@link B...
1
import org.apache.cocoon.components.source.util.SourceUtil; import org.apache.excalibur.source.SourceException; import org.apache.excalibur.source.SourceValidity; import org.apache.excalibur.source.impl.validity.AggregatedValidity; import org.apache.excalibur.source.impl.validity.DeferredValidity; import org.apache.ex...
0
* @see org.apache.batik.util.awt.svg.SVGGraphics2D
0
return new BeamRecord(leftType, Collections.nCopies(leftType.getFieldCount(), null));
0
dataflowUtils.setupPubsubTopic();
0
public static Collection<IClasspathEntry> resolveClasspathEntrys( ISigilProjectModel sigil, monitor.beginTask( "Resolving classpath for " + sigil.getSymbolicName(), 2 ); resolution = SigilCore.getRepositoryManager( sigil ).getBundleResolver().resolve( sigil, config, if ( !sigil.g...
0
* Integer ONE = Integer.valueOf(1); * Integer TWO = Integer.valueOf(2);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//cli/src/java/org/apache/commons/cli/OptionBuilder.java,v 1.3 2002/08/03 23:45:09 jkeyes Exp $ * $Revision: 1.3 $ * $Date: 2002/08/03 23:45:09 $ /** the number of arguments */ private static int numberOfArgs = Option.UNINIT...
0
try (AccumuloClient accumuloClient = createClient()) { try (AccumuloClient accumuloClient = createClient()) { try (AccumuloClient client = createClient()) { try (AccumuloClient client = createClient()) { try (AccumuloClient client = createClient()) { try (AccumuloClient client = createClient()) ...
0
public Response getInstance(String body, @Context HttpHeaders headers, @Context UriInfo ui, return handleRequest(headers, body, ui, Request.Type.GET, public Response getInstances(String body, @Context HttpHeaders headers, @Context UriInfo ui) { return handleRequest(headers, body, ui, Request.Type.GET,
0
import org.apache.beam.runners.direct.DirectRunner.CommittedBundle; import org.apache.beam.runners.direct.DirectRunner.UncommittedBundle; DirectRunner.CommittedBundle<Integer> inputBundle,
0