Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
private static final Set<String> pkPropertyIds =
0
import org.apache.hadoop.metadata.types.AttributeDefinition; import org.apache.hadoop.metadata.types.ClassType; import org.apache.hadoop.metadata.types.HierarchicalTypeDefinition; import com.google.common.collect.ImmutableList;
0
package org.apache.commons.digester3.binder; /* * 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...
0
* limitations under the License.
0
package org.apache.cocoon; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTes...
0
import org.apache.commons.configuration.resolver.CatalogResolver; private static final String CATALOG_FILES = "conf/catalog.xml"; private String testFile2 = new File("conf/sample.xml").getAbsolutePath(); * Tests modifying an XML document and saving it with schema validation enabled. */ public void...
0
import com.google.cloud.dataflow.sdk.testing.DataflowAssert; import org.junit.Test; SparkPipelineOptions options = SparkPipelineOptionsFactory.create(); options.setRunner(SparkPipelineRunner.class); Pipeline p = Pipeline.create(options); PCollection<String> inputWords = p.apply(Create.of(WORDS)).setCode...
0
import java.util.Objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("jmx") @JsonProperty("ganglia") @JsonProperty("uri") return Objects.hash(super.hashCode(), gangliaInfo, uri, jmxInfo); ...
0
* @version $Id$
0
public static final String ID_PREFIX_FONT = "font";
0
: ImmutableSet.of());
0
* The <tt>GVTFactory</tt> implementation. public class GVTFactory { private static GVTFactory singleton = new GVTFactory(); * Creates the GVTFactory instance. public static GVTFactory getGVTFactoryImplementation() { return singleton; } * No instance of this class protected GVTFactory(...
0
package org.apache.commons.vfs2.provider.http; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.FileSystemOptions; import org.apache.commons.vfs2.UserAuthenticationData; import org.apache.commons.vfs2.UserAuthenticator; import org.apache.commons.vfs2.util.UserAuthenticatorUtils;
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
/** * A Fn API control service which adds incoming SDK harness connections to a pool. * * @deprecated Runners should depend on the beam-runners-java-fn-execution module for this * functionality. */ @Deprecated
0
namespace = "ns_" + getUniqueNames(1)[0];
0
/** * Implements {@link FieldValueGetter#name()}. */
0
public class ReadSourceStreamingTest extends StreamingProgramTestBase { public ReadSourceStreamingTest() {
0
/** * @see org.apache.cocoon.generation.Generator#generate() */
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
* @version CVS $Id: VarTagSupport.java,v 1.4 2004/02/05 10:47:24 cziegeler Exp $ if ( this.componentManager != null ) { this.componentManager.release(this.jxpathContexts); }
0
spec.getInputMetadata() != null ? spec.getInputMetadata() : new Metadata();
1
* Useful for sizing caches. Its a given that implementation approximations do not account for 32 vs 64 bit nor for different VM implementations. * An Object's size is determined by the non-static data members in it, as well as the fixed {@link Object} overhead. * * * int[] numbers; * int x; /** ...
0
import java.io.InterruptedIOException; Exception ex = e.getException(); if (ex != null && ex instanceof InterruptedIOException) { throw (InterruptedIOException)ex; } // Check for interruption. if (Thread.currentThread().isInterrupted()) { t...
0
import java.util.Collection; import org.apache.beam.runners.core.construction.TransformInputs; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(DirectGraphVisitor.class); private ListMultimap<PInput, AppliedPTransform<?, ?, ?>> perElementConsumers = ...
0
/** * Copyright 2013 Apache Software Foundation
0
/** * Return the underlying Map backing this <code>DynaBean</code> * @return the underlying Map */ public Map getMap() { return values; }
0
new Canonicalizer20010315ExclWithComments(); c14n.setSecureValidation(secureValidation);
0
testClient(ClientBuilder.DH2KEX.apply(factory));
0
final BenchmarkConnection conn = new BenchmarkConnection(8 * 1024, stats); final String scheme = targetHost.getSchemeName(); final String hostname = targetHost.getHostName(); final int count = config.getRequests(); final int timeout = config.getSocketTimeout(); ...
0
* @author <a href="mailto:deweese@apache.org">deweese</a>
0
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws IOException {
0
* @version $Id: ASTEQNode.java,v 1.5 2004/08/20 12:04:39 dion Exp $ return Boolean.valueOf(left.equals(right)); return Boolean.valueOf(l.equals(r)); return Boolean.valueOf( return Boolean.valueOf( return Boolean.valueOf(left.toString().equals(right.toString(...
0
* This source descriptor acts as container for a set of source inspectors/descriptors. * @version CVS $Id: SourceDescriptorManager.java,v 1.6 2003/11/21 11:37:48 unico Exp $ * Check if there is an inspector that handles properties of * the given type. */ public boolean handlesProperty(String names...
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.accumulo.core.crypto.CryptoServiceFactory.ClassloaderType; siteConfig, CryptoServiceFactory.newInstance(siteConfig, ClassloaderType.ACCUMULO));
0
this._constructionElement.setAttributeNS(null, EncryptionConstants._ATT_NONCE, (new Integer(Nonce)).toString()); this._constructionElement.getAttributeNS(null, EncryptionConstants._ATT_NONCE);
0
import org.apache.http.util.EncodingUtils; public void append(final char[] b, int off, int len) { if (b == null) { return; } if ((off < 0) || (off > b.length) || (len < 0) || ((off + len) < 0) || ((off + len) > b.length)) { throw new IndexOutOfBoundsE...
0
import java.util.Collection; import org.apache.cocoon.portal.om.Layout; /** * Prepare the coplet types directly after loading. * @param context * @param copletTypes */ void prepareCopletTypes(ProfileManagerAspectContext context, Collection copletTypes); ...
0
import javax.management.ObjectName; public PoolableManagedConnectionFactory(XAConnectionFactory connFactory, ObjectName dataSourceJmxName) { super(connFactory, dataSourceJmxName);
0
BeamSql.query("select c1, c2, c3 from PCOLLECTION where c1 > 1")); .apply(BeamSql.queryMulti("select c2, sum(c3) from CASE1_RESULT group by c2"));
0
* @version CVS $Id: EnvironmentHelper.java,v 1.3 2004/05/29 17:39:38 cziegeler Exp $ } else { this.lastPrefix = null;
0
public MyLRUMap(final FileSystem filesystem, final int size) final FileObject file = (FileObject) linkEntry.getValue(); catch (final FileSystemException e) final Map<?, ?> files = filesystemCache.get(filesystem); public LRUFilesCache(final int lruSize)...
1
* can also throw a * the reply received from the server deviates enough from the protocol * @exception NoSuchAlgorithmException If the MD5 encryption algorithm * size of the messages in bytes. Returns null if the status the * Retrieve only the specified top number of lines of a message from the
0
* @version CVS $Id$ if (this.serviceInputSelector.isSelectable(name)) { module = (InputModule) this.serviceInputSelector.select(name);
0
* databases don't consistently handle the casing of column names.
0
final ClientContext context = opts.getClientContext();
0
import com.google.cloud.dataflow.sdk.util.CoderUtils; private static final Coder<Long> LONG_CODER = BigEndianLongCoder.of(); /** * The size, in bytes, of a {@code long} placed in * {@link PCollectionViewTesting#DEFAULT_NONEMPTY_WINDOW}. This is the size of each of the * elements of each {@link PCollection...
0
if (LOG.isDebugEnabled()) { LOG.debug("Storing metrics: " + if (LOG.isDebugEnabled()) { LOG.debug("Storing aggregated metrics: " + if (LOG.isDebugEnabled()) { LOG.debug("Storing container metrics: " + TimelineUtils if (LOG.isDebugEnabled()) { LOG.debug("Request fo...
0
private Set<String> command = new HashSet<>(); private Set<Token> subcommands = new HashSet<>(); HashSet<String> set = new HashSet<>(); HashSet<String> set = new HashSet<>();
1
@Override
0
import org.apache.atlas.repository.graphdb.AtlasVertex; protected void assertVerticesDeleted(List<AtlasVertex> vertices) { AtlasVertex mapOwnerVertex = GraphHelper.getInstance().getVertexForGUID(mapOwnerGuid); Object object = mapOwnerVertex.getProperty("MapOwner.map.value1", String.class); o...
1
(Object)WovenClass.TRANSFORMED, (Object)WovenClass.DEFINED, dummyWovenClassListener.stateList.get(1)); (Object)WovenClass.TRANSFORMING_FAILED, (Object)WovenClass.TRANSFORMED, (Object)WovenClass.DEFINE_FAILED,
0
import java.util.HashSet; put("timeline.metrics.service.webapp.address", "0.0.0.0:6188"); put("timeline.metrics.service.webapp.address", "host1:6188"); expect(cluster.getHosts("AMBARI_METRICS", "METRICS_COLLECTOR")).andReturn( new HashSet<String>() {{ add("host1"); }}).atLeastOnce();
0
/** Static factory methods for constructing instances of {@link TransformExecutorService}. */ public void complete(TransformExecutor completed) {} * <p>A principal use of this is for the serial evaluation of a (Step, Key) pair. Keyed * computations are processed serially per step.
1
super.populateDisplayData(builder);
0
final RepositoryResponse response = new RepositoryResponse(repository.getBaseUrl(), osType, repository.getRepositoryId(), repository.getName(), repository.getDistribution(), repository.getComponents(), "", ""); repo.getRepoId(), repo.getRepoName(), repo.getDistribution(...
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...
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
void addSourceLocks(SourceLock sourcelock) throws SourceException; SourceLock[] getSourceLocks() throws SourceException;
0
splits = new TreeSet<>(); ArrayList<Range> ranges = new ArrayList<>();
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 ...
1
m = componentService.getClass().getMethod("getHostComponents", String.class, HttpHeaders.class, UriInfo.class, String.class); args = new Object[] {null, getHttpHeaders(), getUriInfo(), null};
0
doFnRunner = DoFnRunners.simpleRunner( options, doFn, sideInputReader, outputManager, mainOutputTag, additionalOutputTags, stepContext, null, windowingStrategy);
0
selectionHighlightShape = null; canvasSpaceHighlightShape = null; Iterator nodeIter = new GraphicsNodeTreeIterator(treeRoot); }
0
}catch (Exception ex){ LOGGER.error(ex.getMessage(),ex); throw new WfmWebException(ex); }catch (Exception ex){ LOGGER.error(ex.getMessage(),ex); throw new WfmWebException(ex); LOGGER.error(ex.getMessage(),ex); LOGGER.error(ex.getMessage(),ex); LOGGER.error(ex.getMessage...
0
try { HttpGet httpget = new HttpGet("http://www.apache.org/"); // Execute HTTP request System.out.println("executing request " + httpget.getURI()); HttpResponse response = httpclient.execute(httpget); System.out.println("-------------------------------...
0
JobKeys.from(ROLE, "env", "foo").newBuilder(),
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
private HttpCacheEntry makeEntry(final Header[] headers) {
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
0
public String description() { return "Start Accumulo monitor"; } @Override
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
import org.osgi.annotation.versioning.Version;
0
boolean doUnbind = componentContext != null && (m_dependencyMetadata.getField() != null || m_dependencyMetadata.getUnbind() != null);
0
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.Validate; public Response getHostComponents(String body, @Context HttpHeaders headers, @Context UriInfo ui, @QueryParam("format") String format) { if (format != null && format.equals("client_config_tar")) { return createClientConfigR...
0
extends GroupingState<Instant, Instant> {
0
private static final Function<LogEntry, byte[]> ENCODER = entry -> { return new byte[] {}; .addAll(Iterables.transform(message1.chunks, ENCODER)) .addAll(Iterables.transform(message2.chunks, ENCODER))
0
* @version $Id$
0
private static final String AUTHS = "auths"; private static final String FILTER_INVALID_ONLY = "filterInvalid"; String auths = options.get(AUTHS); Authorizations authObj = auths == null || auths.isEmpty() ? new Authorizations() : new Authorizations(auths.getBytes(Constants.UTF8)); this.ve = new Vi...
0
* Random read-only test cases for file providers. * * @version $Id$
0
results = new JSONArray(response); Assert.assertEquals(results.length(), 1); row = (JSONObject) results.get(0); Assert.assertEquals(row.get("typeName"), "Manager");
0
* Default cookie specification that picks up the best matching cookie policy based on
0
protected static Map<String,String> commandMap = new HashMap<String,String>( ); quotaPath = quotaPath + "/" + splits[i];
0
public void setUp() { public void testStartAfterEnd() { public void testStartEqualToEndStartInclusiveEndExclusive() { public void testStartEqualToEndStartExclusiveEndInclusive() {
0
protected static String getPrincipal(JobConf job) { protected static byte[] getToken(JobConf job) { String user = getPrincipal(job); byte[] password = getToken(job); Connector conn = instance.getConnector(getPrincipal(job), getToken(job)); while (!tl.binRanges(ranges, binnedRanges, ...
0
ChannelAgentForwarding channel = new ChannelAgentForwarding();
1
* @version $Revision$
1
return false;
0
import java.util.Set; import com.twitter.mesos.gen.comm.AdjustRetainedTasks; public MesosExecutorImpl(ExecutorCore executorCore, Driver driver, LOG.warning("Received deprecated state update request, ignoring."); break; case ADJUST_RETAINED_TASKS: AdjustRetainedTasks adjustment =...
0
context.setAttribute(HttpCoreContext.HTTP_CONNECTION, conn); context.setAttribute(HttpCoreContext.HTTP_REQUEST, request); context.setAttribute(HttpCoreContext.HTTP_RESPONSE, response);
0
final LinkedHashSet<String> failedOn = new LinkedHashSet<>();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/priv/PrivateDirect.java,v 1.4 2003/10/05 13:32:13 rdonkin Exp $ * $Revision: 1.4 $ * $Date: 2003/10/05 13:32:13 $ * * Copyright (c) 2001-2003 The Apache Software Foundation. All ...
0
package org.apache.beam.sdk.extensions.sql.impl; import org.apache.beam.sdk.extensions.sql.BeamRecordSqlType; import org.apache.beam.sdk.extensions.sql.BeamSql; import org.apache.beam.sdk.extensions.sql.BeamSqlUdf; import org.apache.beam.sdk.extensions.sql.impl.schema.BaseBeamTable; import org.apache.beam.sdk.extension...
0
EventListenerUtils.synchronizedListenersSet();
0
// Set up a predicate to detect updates that have no tasks left in the store. Set<IJobKey> currentJobs = storeProvider.getTaskStore().getJobKeys(); Predicate<IJobUpdateSummary> orphanFilter = u -> !currentJobs.contains(u.getKey().getJob()); // Gather updates based on time threshold or ones that...
0
public final class ByteOrderFactory { private ByteOrderFactory() { }
0
/* * $Header: /cvshome/build/ee.foundation/src/java/lang/InterruptedException.java,v 1.6 2006/03/14 01:20:24 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 ...
0
return new JmsRecord( textMessage.getJMSMessageID(), textMessage.getJMSTimestamp(), textMessage.getJMSCorrelationID(), textMessage.getJMSReplyTo(), textMessage.getJMSDestination(),...
0
Id id = null; id = r.getId(); createInstanceWithTraits(id, r, r.getTraits().toArray(new String[0])) : createInstance(id); return createInstance(null); public ITypedReferenceableInstance createInstance(Id id) throws MetadataException { retur...
0