Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
/** * Implements chunked transfer coding. The content is sent in small chunks. * Entities transferred using this decoder can be of unlimited length. * * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a> * * @version $Revision$ */
0
import org.apache.sshd.common.util.io.IoUtils;
0
package org.apache.beam.sdk.io.aws2.options;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractCollectionDecorator.java,v 1.4 2003/08/31 17:24:46 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowl...
0
import org.apache.beam.model.pipeline.v1.RunnerApi; import org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec; import org.apache.beam.model.pipeline.v1.RunnerApi.IsBounded; import org.apache.beam.model.pipeline.v1.RunnerApi.ReadPayload; import org.apache.beam.model.pipeline.v1.RunnerApi.SdkFunctionSpec;
0
* @return {@code true}. This coder is injective. */ @Override public boolean consistentWithEquals() { return true; } /** * {@inheritDoc} *
0
package org.apache.hc.core5.http.nio.support.classic;
0
/* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.commons.vfs.provider; import org.apache.c...
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables.size; 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.ImmutableSet;
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.ambari.server.events.listeners.requests.StateUpdateListener; import org.springframework.context.annotation.Bean; import com.google.inject.Injector; @Bean public StateUpdateListener requestStatusListener(Injector injector) { return new StateUpdateListener(injector); }
1
@SuppressWarnings("unused") // used to create a CoderFactory
0
public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((exception == null) ? 0 : exception.hashCode()); result = prime * result + ((outcome == null) ? 0 : outcome.hashCode()); result = prime * result + ((output == null) ? 0 : output.hashCode()); return result;...
0
List<String> hostList = new ArrayList<>(); Map<String, List<Integer>> zkTopology = new HashMap<>(); zkTopology.put("ZOOKEEPER_SERVER", new ArrayList<>(zkServerHosts)); List<String> hostList = new ArrayList<>(); Map<String, List<Integer>> hdfsTopology = new HashMap<>(); hdfsTopology.put("DATANODE...
1
import org.apache.ambari.server.controller.internal.URLStreamProvider; URLStreamProvider streamProvider, 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...
0
// Creates a stream of Artist components .mapToObj(i -> createArtists(m_dm)).peek(m_components::add) // For each artist in the stream, creates a new stream of Album components // For each Album, creates a new stream of Track components return dm.createComponent().setInt...
0
* @version CVS $Id: AntBuildGenerator.java,v 1.1 2003/09/04 12:42:41 cziegeler Exp $
0
String sourceTableId = entry.getValue().getSourceTableId().canonicalID(); String queuedWork = queuedWorkForPeer.get(target.getSourceTableId().canonicalID()); String queuedWork = workForPeer.get(target.getSourceTableId().canonicalID()); workForPeer.put(target.getSourceTableId().canonicalID(), queue...
1
import org.apache.thrift.transport.TTransport; public TabletServerStatus getTableMap(boolean usePooledConnection) throws TException, ThriftSecurityException { if (usePooledConnection == true) throw new UnsupportedOperationException(); TTransport transport = ThriftUtil.createTranspo...
0
@Nullable Coder<KeyedWorkItem<String, KV<InputT, RestrictionT>>> inputCoder,
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
document = db.parse(in);
0
import com.google.cloud.dataflow.sdk.io.range.OffsetRangeTracker; import com.google.cloud.dataflow.sdk.util.common.worker.AbstractBoundedReaderIterator; protected abstract class FileBasedIterator extends AbstractBoundedReaderIterator<T> { protected final OffsetRangeTracker rangeTracker; protected final Progre...
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 ...
0
* This default implementation removes entries that do not parse as files.
0
IZooReaderWriter zoo = ZooReaderWriter.getInstance(); IZooReaderWriter zoo = ZooReaderWriter.getInstance(); ZooReaderWriter.getInstance().recursiveDelete(ZKUserPath + "/" + user, NodeMissingPolicy.FAIL); ZooReaderWriter.getInstance().putPrivatePersistentData(ZKUserPath + "/" + ...
0
import org.springframework.security.core.GrantedAuthority;
0
public static CoGbkResultSchema of(List<TupleTag<?>> tags) {
0
import org.apache.http.LoggingClientConnectionFactory; import org.apache.http.LoggingServerConnectionFactory; final HttpParams params) throws Exception { return new LoggingServerConnectionFactory(params); final HttpParams params) throws Exception { return new LoggingClientConnect...
0
return algo + ":" + BufferUtils.toHex(':', data).toLowerCase();
0
* @version $Rev: 527592 $, $Date$ *
0
public BaseIOReactor() throws IOException { protected void addChannel(final SocketChannel channel) throws IOException {
0
* limitations under the License.
0
import org.apache.cocoon.components.flow.Interpreter; * @see org.apache.cocoon.sitemap.Sitemap#getProcessor() public Processor getProcessor() { /** * @see org.apache.cocoon.sitemap.Sitemap#getInterpreter(java.lang.String) */ public Interpreter getInterpreter(String la...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/bag/TestTransformedSortedBag.java,v 1.3 2003/11/18 22:37:15 scolebourne Exp $ * @version $Revision: 1.3 $ $Date: 2003/11/18 22:37:15 $ public Bag makeBag() {
0
package org.apache.accumulo.core.client.mapreduce; public class BatchScanConfig implements Writable { public BatchScanConfig(String tableName) { public BatchScanConfig(DataInput input) throws IOException { public BatchScanConfig setRanges(List<Range> ranges) { public BatchScanConfig fetchColumns(Set<Pair<Text,T...
0
? OptUtil.getNamespaceOpt(cl, shellState) : null; tableIdOption = new Option("l", "list-ids", false, "display internal table ids along with the table name");
0
import org.apache.zookeeper.ZKParameterized; @Parameterized.UseParametersRunnerFactory(ZKParameterized.RunnerFactory.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...
0
// there's a little race between getting the children and fetching // the data. The log can be removed in between. m.put(new byte[] {}, new byte[] {}, new byte[] {}); m.putDelete(new byte[] {}, new byte[] {});
0
line = GenericUtils.replaceWhitespaceAndTrim(line); String[] hosts = GenericUtils.split(line, ',');
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 ap...
1
import org.apache.commons.logging.Log; import org.apache.commons.vfs.provider.VfsComponentContext; * @version $Revision: 1.8 $ $Date: 2002/11/23 00:33:52 $
0
import org.apache.beam.sdk.options.PipelineOptions; checkJdbc(pipeline.getOptions()); private void checkJdbc(PipelineOptions pipelineOptions) throws Exception { Connection connection = JdbcDriver.connect(tableProvider, pipelineOptions);
0
private static final long serialVersionUID = 1083167395296383469L;
0
import java.util.List;
0
Element filterDef = domFactory.createElement(SVG_FILTER_TAG); Element feFuncR = domFactory.createElement(SVG_FE_FUNC_R_TAG); Element feFuncG = domFactory.createElement(SVG_FE_FUNC_G_TAG); Element feFuncB = domFactory.createElement(SVG_FE_FUNC_B_TAG); f...
0
Collector collector = QueueCollector.wrap(out); collector, item::getStamp);
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 ap...
1
Copyright 2001-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
public static final String PUBSUB_SERIALIZED_ATTRIBUTES_FN = "pubsub_serialized_attributes_fn";
0
import java.util.Collection; * Users (helper) object used to obtain privilege entities. protected static Users users; * @param users the users helper instance ViewInstanceDAO viewInstanceDAO, Users users) { GroupPrivilegeResourceProvider.users = users; final Colle...
0
return new Command[] {new DebugCommand()};
0
* Returns an SHA-1 digest. * * @return An SHA-1 digest instance. * @throws IllegalArgumentException * when a {@link NoSuchAlgorithmException} is caught, which should never happen because SHA-1 is a * built-in algorithm * @see MessageDigestAlgorithms#SHA_1 ...
0
import static org.junit.Assert.assertSame; import java.util.List; * Tests whether all error listeners can be cleared. */ @Test public void testClearErrorListeners() { EventListener<ConfigurationEvent> cl = new EventListenerTestImpl(null); ErrorListenerTestImpl el1 = new ErrorListen...
0
* limitations under the License.
0
import org.apache.beam.portability.v1.Endpoints; private final Endpoints.ApiServiceDescriptor apiServiceDescriptor;
0
* Copyright (c) OSGi Alliance (2017). All Rights Reserved. * * 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 * @author $Id$
0
import org.apache.http.HttpConnectionMetrics; public HttpConnectionMetrics getMetrics() { return null; }
0
* Options used to configure streaming. @Description("Set to true if running a streaming pipeline.")
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.hc.core5.http.ClassicHttpResponse; import org.apache.hc.core5.http.io.EofSensorInputStream; import org.apache.hc.core5.http.io.EofSensorWatcher; import org.apache.hc.core5.http.io.entity.HttpEntityWrapper; public static void enchance(final ClassicHttpResponse response, final ConnectionHolder connH...
0
package org.apache.beam.runners.dataflow.options; import org.apache.beam.sdk.options.Default; import org.apache.beam.sdk.options.Description; import org.apache.beam.sdk.options.PipelineOptions;
0
bind(AttributeStore.Mutable.class).to(AttributeStoreImpl.class);
0
package cz.seznam.euphoria.beam.window; import java.util.Objects; import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing.Window; /** * Window used as type parameter of {@link BeamWindowing}. */ final class UnsupportedWindow extends Window<UnsupportedWindow> { private UnsupportedWindow(){ ...
0
import com.twitter.mesos.scheduler.base.JobKeys; import com.twitter.mesos.scheduler.base.Query;
0
* @param e The &lt;image&gt; element that can't be loaded.
0
ListDataSource.unbounded(sequenceInts(0, N)) .withReadDelay(Duration.ofMillis(2))); ListDataSource.unbounded(sequenceInts(0, N)) .withReadDelay(Duration.ofMillis(2))); Flow flow = Flow.create("Test"); ListDataSource<Pair<Integer, String>> input = ListDataSource.b...
0
* <p>It is generally safe for <i>applications</i> to depend on experimental * APIs, at the cost of some extra work during upgrades. However, it is * generally inadvisable for <i>libraries</i> (which get included on users' * class paths, outside the library developers' control) to do so.
0
import org.apache.accumulo.mini.MiniAccumuloCluster; import org.apache.accumulo.mini.MiniAccumuloConfig;
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 applica...
0
* A script scope, stores the declaration of parameters and local variables as symbols. * The map of named variables aka script parameters and local variables. * Each parameter is associated to a symbol and is materialized as an offset in the stacked array used * Checks whether an identifier is a local v...
1
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Optional; 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.Lists;
0
public void dump() { for (Entry<String, Map<Object, Set<BundleCapability>>> entry : m_indices.entrySet()) { boolean header1 = false; for (Entry<Object, Set<BundleCapability>> entry2 : entry.getValue().entrySet()) { boolean header2 = false; for (BundleCapability ca...
0
request.cancel();
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/map/TestFixedSizeSortedMap.java,v 1.3 2003/11/18 22:37:17 scolebourne Exp $ * @version $Revision: 1.3 $ $Date: 2003/11/18 22:37:17 $ public Map makeFullMap() { public bool...
0
import org.apache.http.util.Args; Args.notNull(params, "HTTP parameters"); Args.notNull(params, "HTTP parameters"); Args.notNull(params, "HTTP parameters"); Args.notNull(params, "HTTP parameters"); Args.notNull(params, "HTTP parameters"); return params.getBooleanParamete...
0
import java.util.Comparator; System.out.println(Util.getUnderlineString(title.length())); List<Method> methods = null; // If the specified command doesn't have a scope, then // search for matching methods by ignoring the scope. int scopeIdx = name.indexOf(':'); if (...
0
@SuppressWarnings("deprecation") // tests some deprecated classes
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 ap...
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.http.protocol.ExecutionContext; HttpRequest request = (HttpRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST);
0
/* (non-Javadoc) * @see org.apache.avalon.framework.context.Contextualizable#contextualize(org.apache.avalon.framework.context.Context) */ /* (non-Javadoc) * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager) */
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/NonSerializableIntCollectionCollection.java,v 1.3 2003/11/07 20:07:51 rwaldhoff Exp $ * * @deprecated This code has been moved to Jakarta Commons Primi...
0
SocketServer server = new SocketServer(conf.getPort(Property.MONITOR_LOG4J_PORT)[0]);
0
import org.apache.batik.transcoder.TranscoderException; ImageTranscoder transcoder ((ImageTranscoder)transcoder).transcodeToStream(isource, ostream); } catch(TranscoderException ex) { error("while writing "+inputURI+" to "+output+"\n"+ex.getMessage());
0
public abstract class AbstractKeyedHandler<K, V> implements ResultSetHandler<Map<K, V>> { public Map<K, V> handle(ResultSet rs) throws SQLException { Map<K, V> result = createMap(); protected Map<K, V> createMap() { return new HashMap<K, V>();
0
/* * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved. * * 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 req...
0
* </p> * <p> * </p> * </p> * </p> * </p> * </p>
0
* <p>The output timestamp is the minimum of getOutputTimestamp applied to the non-late elements
0
// Implementstion methods
0
KeyedWorkItem<?, Object> work =
0
public void contextualize(Context avalonContext) throws ContextException { this.context = avalonContext; public void service(ServiceManager serviceManager) throws ServiceException { this.manager = serviceManager;
0
*/ public interface UnconditionalBranch { }
0
if ("DSA".equals(algorithm)) { } else if ("RSA".equals(algorithm)) { } else if ("EC".equals(algorithm)) { if ("KeyInfo".equals(tag) && XMLSignature.XMLNS.equals(namespace)) {
0
tmpMap.put(_Fields.MAX_MEMORY, new org.apache.thrift.meta_data.FieldMetaData("maxMemory", org.apache.thrift.TFieldRequirementType.DEFAULT, tmpMap.put(_Fields.LATENCY_MS, new org.apache.thrift.meta_data.FieldMetaData("latencyMs", org.apache.thrift.TFieldRequirementType.DEFAULT, tmpMap.put(_Fields.TIMEOUT_MS,...
0
package org.apache.accumulo.core.file.rfile.bcfile; import java.io.PrintStream; import java.util.Map.Entry; import java.util.Set; import org.apache.accumulo.core.conf.AccumuloConfiguration; import org.apache.accumulo.core.file.FileUtil; import org.apache.accumulo.core.file.rfile.bcfile.BCFile.MetaIndexEntry; import o...
1
PROPERTY_IDS.add(ClusterResourceProvider.SECURITY); PROPERTY_IDS.add(ClusterResourceProvider.CREDENTIALS); AddServiceRequest request = createAddServiceRequest(requestInfoProperties); private static AddServiceRequest createAddServiceRequest(Map<String, String> requestInfoProperties) {
0