Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
0
private final transient PCollection<?> pCollection; PCollection<?> pCollection, this.pCollection = pCollection; return pCollection;
0
import com.google.cloud.dataflow.sdk.coders.CoderException; import java.io.EOFException; return true; try { inputWrapper.setInputView(dataInputView); return coder.decode(inputWrapper, Coder.Context.NESTED); } catch (CoderException e) { Throwable cause = e.getCause(); if (cause instanceof EOFException)...
0
/* ==================================================================== * Copyright (c) 2003-2004 The Apache Software Foundation. All rights * @version $Revision: 1.3 $ $Date: 2004/01/14 21:43:16 $
0
public static void dropInstanceCache(String instanceName){
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
SignatureFactoriesManager.resolveSignatureFactories(this, session),
0
import org.apache.accumulo.core.security.Authorizations; BatchDeleter ibd = state.getConnector().createBatchDeleter(indexTableName, Authorizations.EMPTY, 8, bwc); BatchDeleter dbd = state.getConnector().createBatchDeleter(dataTableName, Authorizations.EMPTY, 8, bwc);
0
* @return number of bytes read * @return number of bytes read * @return number of bytes read * @return number of bytes read * @param input the input stream containing the data to be sent * @param input the input stream containing the data to be sent * @param input the input stream con...
0
this(tabletServer, new Text(info.getDir()), extent, trm, info.getDatafiles(), info.getTime(), info.getInitFlushID(), info.getInitCompactID(), info.getLastLocation()); public void minorCompactionStarted() {
1
* * * * * *
0
AccumuloInputFormat.setClientInfo(job, getClientInfo());
0
} catch (final IOException | RuntimeException ex) { } catch (final IOException | RuntimeException ex) { } catch (final IOException | RuntimeException ex) {
0
import java.util.Map; import org.apache.accumulo.core.client.ScannerBase; /** * @return Hints set by a scanner using {@link ScannerBase#setExecutionHints(Map)} */ Map<String,String> getExecutionHints();
0
public class NIOProtocolSocketFactory implements ProtocolSocketFactory { private static final NIOProtocolSocketFactory factory = new NIOProtocolSocketFactory(); public static NIOProtocolSocketFactory getSocketFactory() { private NIOProtocolSocketFactory() { return ((obj != null) && obj.getClass().eq...
0
conn.setAutoCommit(true); conn.setAutoCommit(false);
0
/* * Copyright 2000-2009 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 ...
0
import org.apache.beam.sdk.coders.StringUtf8Coder; .put(StringUtf8Coder.class, ModelCoders.STRING_UTF8_CODER_URN) .put(StringUtf8Coder.class, CoderTranslators.atomic(StringUtf8Coder.class))
0
* * * * * * * *
0
import java.util.function.Function; import java.util.stream.Collectors; import org.apache.beam.sdk.coders.Coder; Map<TupleTag<?>, Coder<?>> outputCoders = context.getOutputs().entrySet().stream() .filter(e -> e.getValue() instanceof PCollection) .collect(Collectors.toMap( t -> (TupleTag<...
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.co...
0
/** */
0
package org.apache.http.auth;
0
public abstract InputStream getBody() throws IOException;
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 SF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may...
0
public AccumuloClient getClient() throws AccumuloException, AccumuloSecurityException {
0
import org.apache.sshd.common.future.CloseFuture; import org.apache.sshd.common.util.CloseableUtils; public CloseFuture close(boolean immediately) { IoAcceptor a; synchronized (this) { a = acceptor; acceptor = null; } if (a != null) { return a.clos...
0
* @param context the rendering context. public void paint(TextNode node, Graphics2D g2d, GraphicsNodeRenderContext context) { AttributedCharacterIterator aci = node.getAttributedCharacterIterator(); Point2D location = node.getLocation(); TextNode.Anchor anchor...
0
verifyUsingDOM(document, cert, secureParts, resourceResolverSpi, true, "Id"); boolean keyInfoRequired, String idAttributeNS signedElement.setIdAttributeNS(null, idAttributeNS, true);
0
import junit.framework.TestCase; import org.apache.felix.ipojo.manipulator.util.Streams; import org.objectweb.asm.*; import org.osgi.framework.BundleContext; when(mv.visitAnnotation(desc, true)).thenReturn(new AnnotationVisitor(Opcodes.ASM5) {});
0
private RefPair getBoundService( ServiceReference serviceReference ) return ( RefPair ) (( Map ) dependencyMap.get( this )).get(serviceReference); RefPair refPair = getBoundService( serviceReference ); refPair = new RefPair( serviceReference, serviceObject ); RefPair ref...
0
import java.io.IOException; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.MutationsRejectedException; import org.apache.accumulo.core.client.TableExistsException; import org.apache.accumulo.core.client....
0
* The {@link BoundedFifoBuffer} is a very efficient implementation of a * {@link Buffer} with a fixed size. * The removal order of a {@link BoundedFifoBuffer} is based on the * @version $Id$
0
buffer.append(this.protocol.getScheme()); buffer.append("://"); return toURI(); hash = LangUtils.hashCode(hash, this.hostname.toUpperCase());
0
import org.apache.http.annotation.ThreadSafe; @ThreadSafe
0
Iterator<WeightedValue<T>> sorted = Iterators.mergeSorted(iterators, (a, b) -> compareFn.compare(a.getValue(), b.getValue()));
0
org.apache.commons.logging.LogFactory.getLog(RSAKeyValueResolver.class);
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
* @author William Farner
0
return new WindowMappingFn<BoundedWindow>(Duration.millis(Long.MAX_VALUE)) {
0
public static ITaskConfig getConfig(IScheduledTask scheduledTask) { return scheduledTask.getAssignedTask().getTask(); } public static int getInstanceId(IScheduledTask scheduledTask) { return scheduledTask.getAssignedTask().getInstanceId(); } public static IJobKey getJob(IAssignedTask assignedTask) { ...
0
return new CreateHandler(); case PUT:
1
import static org.junit.Assert.assertEquals; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.UriInfo; import org.apache.ambari.server.api.resources.ResourceInstance; import org.apache.ambari.server.api.services.parsers.RequestBodyParser; import org.apache.ambari.server.api.services.serializers.ResultSeria...
0
* Copyright 2002-2005 The Apache Software Foundation.
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DoubleOrderedMap.java,v 1.9 2003/12/06 13:03:15 scolebourne Exp $ * @version $Revision: 1.9 $ $Date: 2003/12/06 13:03:15 $ private static final class Node implements Map.Entry...
0
private final List<Collection<Bundle>> m_requests = new ArrayList(); private final List<FrameworkListener[]> m_requestListeners = new ArrayList<FrameworkListener[]>(); void stop() synchronized (m_requests) if (m_thread != null) { // Null thread variab...
0
Copyright 2002-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 l...
0
import org.apache.beam.model.fnexecution.v1.BeamFnApi;
0
import org.apache.commons.vfs.FileName; import org.apache.commons.vfs.FileType; import org.apache.commons.vfs.FileSystemException; import org.apache.commons.vfs.FileNotFoundException; import org.apache.commons.vfs.RandomAccessContent; import org.apache.commons.vfs.FileContentInfoFactory;
0
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> /** * Socket reuse address. * See {@link java.net.StandardSocketOptions#SO_REUSEADDR} */ boolean DEFAULT_REUSE_ADDRESS = true;
1
public int compare(final E obj1, final E obj2) { public boolean equals(final Object object) {
0
import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.options.PipelineOptionsFactory; /** * This method creates {@link org.apache.beam.sdk.extensions.sql.impl.BeamSqlEnv} using empty * Pipeline Options. It should only be used in tests. */ /** * This method creates {@link org.apa...
0
* @param columnInfo * the column object to get name and type of column (not {@code null}). public void setNullable(String tableName, DBAccessor.DBColumnInfo columnInfo, boolean nullable)
0
final boolean methodRequired, final Class<?> componentClass, final DSVersion dsVersion, final boolean configurableServiceProperties ) rawParameter.getComponentContext().getLogger().log( LogService.LOG_DEBUG, "invoking {0}: {1}: parameters {2}", null, ...
0
import org.apache.aurora.scheduler.events.EventSink; EventSink eventSink) { this.storage = new SideEffectStorage(storage, finalizer, eventSink); PubsubEvent.TaskStateChange.transition(
0
* @param alwaysEncodeCharsArray private void insertAlwaysEncodeChars(final byte[] alwaysEncodeCharsArray) { if (alwaysEncodeCharsArray != null) { for (byte b : alwaysEncodeCharsArray) {
0
import cz.seznam.euphoria.flink.FlinkElement; DataSet<FlinkElement> wAssigned = FlinkElement wel = (FlinkElement) i; c.collect(new FlinkElement<>( .returns(FlinkElement.class) DataSet<FlinkElement<?, Pair>> reduced = (FlinkElement<?, Pair> we) -> (Compar...
0
public class OpTimer {
0
* @throws IOException If storing fails * @return The property value of the default value * <p>Example:</p> *
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
* 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 applicable law o...
0
private AtlasEntity getDB(String dbName) throws AtlasServiceException { public void testTablesAreAdded() throws AtlasServiceException { private void verifyColumnsAreAddedToTable(AtlasEntity table) { private void verifyDBIsLinkedToTable(AtlasEntity table) throws AtlasServiceException { private void v...
0
import org.apache.beam.runners.core.metrics.ExecutionStateTracker; import org.apache.beam.runners.core.metrics.SimpleExecutionState; import org.apache.beam.runners.core.metrics.SimpleMonitoringInfoBuilder; private ExecutionStateTracker stateTracker; public PCollectionConsumerRegistry( MetricsContainerStepMap ...
0
* Returns the area covered by this shape painter (even if nothing * is painted there). */ Shape getSensitiveArea(); /** * Returns the bounds of the area covered by this shape painter * (even if nothing is painted there). */ Rectangle2D getSensitiveBounds2D(); /**
0
Schema.builder() .addInt32Field("f_int") .addDoubleField("f_double") .addInt32Field("f_int2")
0
import org.apache.felix.gogo.commands.Command; @Command(scope = "features", name = "uninstall", description = "Uninstall a feature.")
0
public NavigableSet<E> subSet(final E fromElement, final boolean fromInclusive, final E toElement, final boolean toInclusive) {
0
@Test public void testCaseInsensitiveKeysAnnotation() { Map<String, Object> m = new HashMap<>(); m.put("FOO", "Bleh"); m.put("baR", 21); m.put("za.za", true); TestInterface ti = converter.convert(m).keysIgnoreCase().to(TestInterface.class); assertEquals("Bleh", t...
0
* Converts an array of bytes into an array of characters representing the * hexidecimal values of each byte in order. The returned array will be * double the length of the passed array, as it takes two characters to * represent any given byte. * * @param data array of byte to convert to He...
0
return builder.append("DROP CONSTRAINT ").append(constraintName).append(cascade ? " CASCADE" : "");
0
package org.apache.beam.learning.katas.commontransforms.aggregation.count;
0
@Description("[Experimental] Used to configure the Cloud Debugger") * running debugged processes. Version should be different if users have @Description("User defined application version. Cloud Debugger uses it to group all " + "running debugged processes. cdbgVersion should be different if users have " ...
0
package org.apache.commons.dbcp2;
1
import cz.seznam.euphoria.flink.streaming.windowing.EmissionWindow; import org.apache.flink.streaming.api.functions.windowing.WindowFunction; import org.apache.flink.util.Collector; // @SuppressWarnings("unchecked") if (windowing == null) { throw new UnsupportedOperationException("Attached windowing not supp...
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.mesos.Protos.OfferID; * <p> * A task launcher may choose to retain an offer for later use. Any retained offers must be * cleaned up with {@link #cancelOffer(OfferID)}. /** * Informs the launcher that a previously-advertised offer is canceled and may not be used. * * @param offer ...
0
private BeanMapHandler<Long, TestBean> bmh; private Map<Long, TestBean> res; @Mock private ResultSet rs; @Mock private ResultSetMetaData rsmd; @Mock private RowProcessor rp; @Before public void setUp() throws Exception { MockitoAnnotations.initMocks(this); when(Boolean.valueO...
0
case OpCode.sync:
0
package org.apache.felix.framework; import org.apache.felix.moduleloader.*;
1
prevComponentSize = getSize(); AffineTransform at = calculateViewingTransform (fragmentIdentifier, elt); protected AffineTransform calculateViewingTransform (String fragIdent, SVGSVGElement svgElt) { Dimension d = getSize(); if (d.width < 1) d.width = 1; ...
0
import static org.mockito.Matchers.any; import org.joda.time.Duration; when(mockJob.waitUntilFinish(any(Duration.class)))
0
import java.util.Objects; * Gets the equality to another historical alert entry based on the following criteria: * <ul> * <li>{@link #definitionId} * <li>{@link #clusterId} * <li>{@link #definitionName} * </ul> * <p/> * However, since we're guaranteed that {@link #definitionId} is unique among p...
0
import org.apache.beam.model.pipeline.v1.Endpoints; import org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor;
0
import java.net.URL; import java.net.MalformedURLException; try { URL context = new URL(baseURL.toString()); URL url = new URL(context, urlStr); return constructParsedURLData(url); } catch (MalformedURLException mue) { return super.parseURL(baseURL, u...
0
import java.util.Collection; import java.util.Set; import java.util.HashSet; import java.util.Iterator; import org.apache.cocoon.portal.pluto.om.common.PreferenceSetImpl; import org.apache.cocoon.portal.profile.ProfileManager; import org.apache.cocoon.portal.util.AttributedMapItem; import org.apache.pluto.om.common.Pre...
0
* attribute value is 'application/java-archive' and when the
0
* Returns {@code true} if an HTTP request has been submitted to the * @return {@code true} if an HTTP request has been submitted, * {@code false} otherwise.
0
@SuppressWarnings("unchecked") Iterator<Reference> i = signature.getSignedInfo().getReferences().iterator(); Reference reference = i.next();
0
/* * The control sequence sent by the telnet program when it closes a * connection. Include simply to keep the logs cleaner (the server would * close the connection anyway because it would parse this as a negative * length). */ protected final static int telnetCloseCmd = 0xfff4fffd; ...
0
/* * Copyright 1999-2005 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
if(null == serviceInfo.getSupportDeleteViaUIField()){ serviceInfo.setSupportDeleteViaUI(parent.isSupportDeleteViaUI()); }
0
import static org.apache.atlas.AtlasClient.PROCESS_ATTRIBUTE_INPUTS; import static org.apache.atlas.AtlasClient.PROCESS_ATTRIBUTE_OUTPUTS; HierarchicalTypeDefinition<ClassType> assetType = TypesUtil .createClassTypeDef(AtlasClient.ASSET_TYPE, ImmutableSet.<String>of(), T...
0
* @version CVS $Id: XPathTraversableGenerator.java,v 1.1 2003/10/23 07:55:49 gcasper Exp $
0
@Override @Override
0
import junit.framework.Test;
0
// @formatter:off // @formatter:on
0
public final class SftpConstants { // (Some) names of known extensions public static final String EXT_VERSIONS = "versions"; public static final String EXT_NEWLINE = "newline"; public static final String EXT_VENDORID = "vendor-id"; public static final String EXT_SUPPORTED = "supported"; pub...
0
import org.apache.atlas.AtlasConfiguration; private final String ATLAS_HOOK_TOPIC = AtlasConfiguration.NOTIFICATION_HOOK_TOPIC_NAME.getString(); private final String ATLAS_ENTITIES_TOPIC = AtlasConfiguration.NOTIFICATION_ENTITIES_TOPIC_NAME.getString(); atlasTopicCreator.createAtlasTopic(configurat...
0
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle;
0
import org.apache.felix.dependencymanager.management.ServiceComponent; import org.apache.felix.dependencymanager.management.ServiceComponentDependency;
0