Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.runners.core.construction.TransformInputs;
return Iterables.getOnlyElement(TransformInputs.nonAdditionalInputs(getCurrentTransform())); | 0 |
* @version $Revision$ $Date$ | 0 |
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.ClassicHttpResponse;
import org.apache.hc.core5.http.message.BasicClassicHttpRequest;
final ClassicHttpResponse response = conn.receiveResponseHeader();
final ClassicHttpResponse response = conn.receiveResponseHeader();
... | 0 |
* <p>
* This class is Serializable from Commons Collections 3.1.
* @version $Revision: 1.6 $ $Date: 2004/04/09 10:36:01 $
*
* @param out the output stream
* @throws IOException
* @since Commons Collections 3.1
*
* @param in the input stream
* @throws IOException
* @throws ... | 0 |
Object getDetail();
void initCustomEventNS(String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Object detailArg); | 0 |
import org.joda.time.Duration;
import org.joda.time.Instant;
private static final Instant NOW = Instant.now();
WatermarkPolicyFactory watermarkPolicyFactory = WatermarkPolicyFactory.withArrivalTimePolicy();
iterator =
new ShardRecordsIterator(
firstCheckpoint, kinesisClient, watermarkPolic... | 0 |
public interface DerivedTestOptions extends BaseTestOptions {
/** Test interface. */
public interface ConflictedTestOptions extends BaseTestOptions {
/** Test interface. */
public interface BaseTestOptions extends PipelineOptions {
/** Test interface. */
public interface ValueProviderOptions extends Pipel... | 0 |
import javax.persistence.CascadeType;
@ManyToOne(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
return (widgetLayout.equals(that.widgetLayout) && widget.equals(that.widget)); | 0 |
import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.SERVICE_TYPE_ATLAS_CORE;
super(AtlasBaseTypeDef.getArrayTypeName(elementType.getTypeName()), TypeCategory.ARRAY, SERVICE_TYPE_ATLAS_CORE);
super(AtlasBaseTypeDef.getArrayTypeName(elementTypeName), TypeCategory.ARRAY, SERVICE_TYPE_ATLAS_CORE); | 0 |
import com.google.cloud.dataflow.sdk.io.AvroIO.Write.Bound;
import java.io.IOException;
private void runTestWrite(String[] expectedElements, int numShards) throws IOException {
File baseOutputFile = new File(tmpFolder.getRoot(), "prefix");
String outputFilePrefix = baseOutputFile.getAbsolutePath();
Bound<... | 0 |
import org.apache.beam.sdk.annotations.Experimental;
* Sets a {@link Schema} on this {@link PCollection}. This is a wrapper around
* {@link #setCoder(Coder)}.
*/
@Experimental
public PCollection<T> setSchema(
Schema schema,
SerializableFunction<T, Row> toRowFunction,
SerializableFunction<... | 0 |
Copyright 2001 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 or... | 0 |
public void createControl(Composite parent)
formText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
browse.addSelectionListener(new SelectionAdapter()
{
public void widgetSelected(SelectionEvent e)
{
FormSelectionDialog dialog = new... | 0 |
/**
* {@link org.apache.http.protocol.HttpContext Context}
* attribute names for client.
*/
public interface ClientContext { | 0 |
public Object invoke(final Object proxy, final Method method, final Object[] args) | 0 |
import org.apache.beam.sdk.util.WindowingStrategy;
return getTypeInfo(collection.getCoder(), collection.getWindowingStrategy());
}
@SuppressWarnings("unchecked")
public <T> TypeInformation<WindowedValue<T>> getTypeInfo(
Coder<T> coder,
WindowingStrategy<?, ?> windowingStrategy) {
code... | 0 |
__threaded = true; // tell _processChar that we are running threaded | 0 |
if (status.isDirectory()) { | 0 |
cipherOutputStream, "UTF-8")); | 0 |
private static Map<Resource.Type, String> keyPropertyIds = new HashMap<>();
private static Set<String> propertyIds = new HashSet<>();
return new HashSet<>(keyPropertyIds.values()); | 1 |
final UnaryFunction stateFactory = reduceStateByKey.getStateFactory(); | 0 |
return new NullIsExceptionPredicate<>(predicate); | 1 |
context.getClient()); | 0 |
public void process(@Element Integer e,
MultiOutputReceiver r) {
for (int i = 0; i < e; i++) {
r.get(food).outputWithTimestamp(
KV.of("foo", e),
... | 0 |
import org.apache.atlas.utils.AtlasPerfTracer;
import org.slf4j.Logger;
private static final Logger PERF_LOG = AtlasPerfTracer.getPerfLogger("rest.TypesREST");
AtlasPerfTracer perf = null;
try {
if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
perf = AtlasPerfTracer.ge... | 0 |
* @version CVS $Id: EPTop.java,v 1.2 2003/03/11 19:05:01 vgritsenko Exp $ | 0 |
private boolean staleConfig = false;
/**
* @return if the configs are stale
*/
public boolean isStaleConfig() {
return staleConfig;
}
/**
* @param stale
*/
public void setStaleConfig(boolean stale) {
staleConfig = stale;
}
| 0 |
*
@Mojo( name = "bundleall", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.PACKAGE )
* Process up to some depth
@Override
*
*
*
*
*
@Override
* TODO there has to be another way to do this using Maven libs
*
* @param bundleNam... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/jeez/src/java/org/apache/commons/jelly/tags/jeez/Attic/JeezTagLibrary.java,v 1.8 2002/10/03 18:14:43 jstrachan Exp $
* $Revision: 1.8 $
* $Date: 2002/10/03 18:14:43 $
* $Id: JeezTagLibrary.java,v 1.8 2002/10/03 1... | 0 |
package cz.seznam.euphoria.core.client.dataset;
import cz.seznam.euphoria.core.client.flow.Flow; | 0 |
package cz.seznam.euphoria.core.executor.io;
import org.junit.Before;
TmpFolderSpillFileFactory spillFiles;
@Before
public void setUp() {
spillFiles = new TmpFolderSpillFileFactory(folder);
assertEquals(Collections.emptyList(), spillFiles.getCreatedFiles());
assertEquals(1, spillFiles.getCreatedFiles... | 0 |
// FIXME - this is a workaround
if ( this.environment.classloader == null ) {
this.environment.classloader = Thread.currentThread().getContextClassLoader();
if ( this.environment.classloader == null ) {
this.environment.classloader = this.getClass().getClassLoader... | 0 |
public ImageHandlerJPEGEncoder(String imageDir, String urlRoot)
throws SVGGraphics2DIOException {
public final String getSuffix() {
public final String getPrefix() {
public void encodeImage(BufferedImage buf, File imageFile)
throws SVGGraphics2DIOException {
} catch(IOException e... | 0 |
public <R,P> R accept(NodeVisitor<? extends R, ? super P> visitor, P data)
{
return visitor.visit(this, data);
} | 0 |
if (ambariServer != null) {
ambariServer.run();
} | 0 |
this.authenticator = new HttpAuthenticator(log); | 0 |
public class HtmlCleaningConvertorBuilder implements StringConvertorBuilder {
private CacheManager cacheManager;
private SourceResolver sourceResolver;
public void setCacheManager( CacheManager cacheManager )
{
this.cacheManager = cacheManager;
}
public void setSourceResolver( Sourc... | 0 |
c.setDst(new File("ZYZ::/cannotCreate\000")); | 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 |
private long agentStartTime;
public long getAgentStartTime() {
return agentStartTime;
}
public void setAgentStartTime(long agentStartTime) {
this.agentStartTime = agentStartTime;
}
"startTime=" + agentStartTime + "\n" + | 0 |
public class XMLX509IssuerSerial extends SignatureElementProxy implements XMLX509DataContent {
private static org.apache.commons.logging.Log log =
org.apache.commons.logging.LogFactory.getLog(XMLX509IssuerSerial.class.getName());
public XMLX509IssuerSerial(Element element, String baseURI) throws XMLSec... | 0 |
import org.apache.ambari.server.state.SecurityState;
@Column(name = "security_state", nullable = false, insertable = true, updatable = true)
@Enumerated(value = EnumType.STRING)
private SecurityState securityState = SecurityState.UNSECURED;
@Basic
public SecurityState getSecurityState() {
return security... | 0 |
/**
* @since 6.0
*/
/**
* @since 6.0
*/
/**
* @since 6.0
*/
/**
* @since 6.0
*/
/**
* @since 6.0
*/
/**
* @since 6.0
*/ | 0 |
import org.apache.http.concurrent.Cancellable;
@SuppressWarnings("deprecation")
implements HttpUriRequest, HttpExecutionAware, AbortableHttpRequest, Cloneable {
private Cancellable cancellable;
@Deprecated
public void setConnectionRequest(final ClientConnectionRequest connRequest) {
return;
... | 0 |
import com.twitter.common.application.ShutdownRegistry;
import com.twitter.common.base.Command;
EventSink eventSink,
ShutdownRegistry shutdownRegistry) {
eventSink,
shutdownRegistry);
final EventSink eventSink,
final ShutdownRegistry shutdownRegistry) {
checkNotNull(shutdownR... | 0 |
package org.apache.accumulo.server.util;
import java.net.InetSocketAddress;
import org.apache.accumulo.core.conf.Property;
import org.apache.accumulo.server.conf.ServerConfiguration;
public class AddressUtil {
static public InetSocketAddress parseAddress(String address, Property portDefaultProperty) {
f... | 1 |
* ImageWriter implementation that uses Batik's PNG codec to | 0 |
import org.apache.http.HttpVersion;
public class BasicHttpResponse extends AbstractHttpMessage implements HttpResponse {
public HttpVersion getHttpVersion() {
return this.statusline.getHttpVersion();
}
| 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
import net.jcip.annotations.ThreadSafe;
* A connection manager for a single connection. This connection manager
* maintains only one active connection at a time. Even though this class
* is thread-safe it ought to be used by one execution thread only.
* SingleClientConnManager will make an effort to reuse the conn... | 0 |
import org.apache.ambari.view.utils.ViewUserLocal;
import org.apache.ambari.view.utils.hdfs.HdfsApi;
ViewUserLocal.dropAllConnections(HdfsApi.class); //cleanup API connection | 0 |
import org.apache.beam.vendor.grpc.v1_13_1.com.google.protobuf.ByteString; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/compiler/Expression.java,v 1.4 2003/01/11 05:41:23 dmitri Exp $
* $Revision: 1.4 $
* $Date: 2003/01/11 05:41:23 $
* @version $Revision: 1.4 $ $Date: 2003/01/11 05:41:23 $
protected... | 1 |
// FELIX-1488: If a configuration is bound to a location and a new
// location is statically set, the old binding must be removed
// by removing the configuration from the targets and the new binding
// must be setup by updating the configuration for new targets
boolean replace =... | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
@Inject
SessionHandlerConfigurer sessionHandlerConfigurer;
sessionHandlerConfigurer.configureSessionHandler(sessionHandler);
handlerList.shareSessionCacheToViews(sessionHandler.getSessionCache()); | 0 |
Copyright 2002-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 |
// Note: Java 1.3 requires JUnit 3.8.1 which does not have assertTrue(Boolean)
assertTrue(((Boolean) entry.getValue()).booleanValue()); | 0 |
import java.io.File;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;
import com.google.inject.Inject; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DefaultMapBag.java,v 1.2 2002/06/11 02:41:47 mas Exp $
* $Revision: 1.2 $
* $Date: 2002/06/11 02:41:47 $
* @author <a href="mailto:mas@apache.org">Michael A. Smith</a> | 0 |
return new AtlasJanusGraphSolrIndexClient(this); | 0 |
return parent.addNode(name, type); | 0 |
import org.apache.hc.core5.annotation.Immutable;
import org.apache.hc.core5.util.Args;
import org.apache.hc.core5.util.TextUtils; | 0 |
public TestExecutionState(String stateName) {
super(stateName);
private final TestExecutionState step1act1 = new TestExecutionState("activity1");
private final TestExecutionState step1act2 = new TestExecutionState("activity2");
private final TestExecutionState step2act1 = new TestExecutionState("activi... | 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 java.util.Set;
private final InputStream local;
public DefaultScpStreamResolver(
String name, Path mockPath, Collection<PosixFilePermission> perms,
ScpTimestamp time, long size, InputStream local, String cmd) {
public InputStream resolveSourceStream(
Session sessio... | 0 |
Registration.registerServlet(binder(), "/structdump", StructDump.class, true); | 0 |
import org.apache.beam.sdk.transforms.OldDoFn;
private static class ElementValueDiff extends OldDoFn<Long, Long> { | 0 |
TransformResult<Integer> result = evaluator.finishBundle(); | 0 |
import org.apache.beam.runners.core.construction.ForwardingPTransform; | 0 |
StringBuilder sb = new StringBuilder(pathname.length() + 3); | 0 |
public static void defineDeptEmployeeTypes(TypeSystem ts) throws AtlasException {
public static Referenceable createDeptEg1(TypeSystem ts) throws AtlasException { | 0 |
public static final String CONTEXT = ".context";
if (CONTEXT.equals(name))
{
return processor.getContext();
}
| 0 |
import org.apache.beam.sdk.PipelineResult;
import com.google.common.base.Joiner;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
private static final Map<String, PipelineResult> EXECUTION_RESULTS =
new ConcurrentHashMap<String, PipelineResult>();
dataflowOptions.setStagingLocation(Joine... | 0 |
Map<String,String> props = new HashMap<>(); | 0 |
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.zookeeper.AsyncCallback.VoidCallback;
@Override
public void sync(final String path) throws KeeperException, InterruptedException {
final AtomicBoolean waiter = new AtomicBoolean(false);
getZooKeeper().sync(path, new VoidCallback() {
... | 1 |
public void close() throws Exception { | 0 |
/**
* A factory for <code>service-consumer:</code> source.
* @see ServletServiceConsumerSource
*/ | 0 |
/**
* Tags any IOExceptions thrown, wrapping and re-throwing.
*
* @param e The IOException thrown
* @throws IOException if an I/O error occurs
*/
protected void handleIOException(IOException e) throws IOException {
throw new TaggedIOException(e, this); | 0 |
import java.util.Map;
public Map getUsedServices() {
Map hm = new HashMap(); | 0 |
cryptoService = CryptoServiceFactory.newInstance(aconf);
cryptoService = CryptoServiceFactory.newInstance(aconf); | 0 |
public RequestStatus deleteResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException { | 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 |
/**
* Checks that the given {@code File} exists and is a directory.
*
* @param directory The {@code File} to check.
* @throws IllegalArgumentException if the given {@code File} does not exist or is not a directory.
*/ | 0 |
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import ... | 0 |
/**
* Copyright 2016 Seznam a.s.
*
* 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 to... | 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 |
private static List<KeyExtent> findTablets(ClientContext context, boolean selectLocalTablets, String tableName, SortedMap<KeyExtent,String> tabletLocations)
throws Exception {
// TODO Remove deprecation warning suppression when Hadoo... | 0 |
assertEquals('1', (char) converter.convert("123").to(Character.class));
assertEquals('Q', (char) converter.convert(null).defaultValue('Q').to(Character.class));
assertEquals((char) 123, (char) converter.convert(123L).to(Character.class)); | 0 |
@SuppressWarnings("unused")
new MultipartStream( | 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 java.io.File;
import com.google.common.io.Files;
File tempDir = Files.createTempDir();
try {
bind(ZooKeeperTestServer.class).toInstance(
new ZooKeeperTestServer(
ZooKeeperTestServer.DEFAULT_SESSION_TIMEOUT,
tempDir,
tempDir));
... | 0 |
Copyright 2001 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 or a... | 0 |
@Override
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import org.apache.accumulo.core.security.thrift.ThriftInstanceTokenWrapper;
import org.apache.accumulo.core.security.tokens.AccumuloToken;
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper;
import org.apache.accumulo.core.security.tokens.UserPassToken;
private static final AccumuloToken<?,?> system... | 0 |
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream; | 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 |
InputStream decorate(final InputStream wrapped) throws IOException { | 0 |
import org.apache.hc.core5.http.config.Http1Config;
Http1Config.DEFAULT); | 0 |
import org.apache.aurora.scheduler.state.TaskAssigner.FirstFitTaskAssigner;
import static org.apache.aurora.scheduler.state.TaskAssigner.FirstFitTaskAssigner.ASSIGNER_EVALUATED_OFFERS;
import static org.apache.aurora.scheduler.state.TaskAssigner.FirstFitTaskAssigner.ASSIGNER_LAUNCH_FAILURES;
import static org.apache.au... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.