Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.apache.hc.core5.testing.nio.http2;
0
* Rename the cluster. * * @response.representation.200.doc * * @param clusterName Name of the cluster; Each cluster is identified w/ unique name * @param new_name New name of the cluster * @throws Exception throws Exception (TBD) *...
0
import org.apache.accumulo.core.data.impl.KeyExtent;
1
import java.util.Objects; import java.util.function.Function; return Utils.reserveHdfsDirectory(bulkInfo.sourceDir, tid); private static boolean equals(Function<KeyExtent,Text> extractor, KeyExtent ke1, KeyExtent ke2) { return Objects.equals(extractor.apply(ke1), extractor.apply(ke2)); } KeyExtent curr...
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
public static final String ALLOW = "Allow"; public static final String WWW_AUTHENTICATE = "WWW-Authenticate"; public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
0
* Copyright 2000-2009 The Apache Software Foundation
0
import org.apache.beam.sdk.transforms.DoFn; import org.apache.beam.sdk.transforms.ParDo; import org.apache.beam.sdk.values.PCollectionTuple; import org.apache.beam.sdk.values.TupleTag; import org.apache.beam.sdk.values.TupleTagList; /** * Test multiple output {@link ParDo} in streaming pipelines. * This is curr...
0
import org.apache.beam.sdk.options.PipelineOptionsFactory; Connection connection = JdbcDriver.connect(tableProvider, PipelineOptionsFactory.create()); Connection connection = JdbcDriver.connect(tableProvider, PipelineOptionsFactory.create()); Connection connection = JdbcDriver.connect(tableProvider, Pipelin...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//codec/src/test/org/apache/commons/codec/base64/Attic/Base64Test.java,v 1.2 2003/08/18 03:01:14 bayard Exp $ * $Revision: 1.2 $ * $Date: 2003/08/18 03:01:14 $ * any, must include the following acknowledgement: * Alternately...
0
import cz.seznam.euphoria.core.client.operator.hint.OutputHint; import cz.seznam.euphoria.shadow.com.google.common.collect.Sets; import java.util.Set; public Dataset<IN> output(OutputHint... outputHints) { Filter<IN> filter = new Filter<>(name, flow, input, predicate, Sets.newHashSet(outputHints)); Filter(S...
0
public void sessionException(Session session, Throwable t) { assertObjectInstanceOf("Non client session exception notification", ClientSession.class, session); assertNotNull("No session exception data", t); } @Override @Override public void sessio...
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
private String jobId; public String getJobId() { return jobId; } public void setJobId(String jobId) { this.jobId = jobId; }
0
import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.Opcodes; public class TypeStereotypeVisitor extends AnnotationVisitor { super(Opcodes.ASM5);
0
.of(Row.withSchema(INPUT_ROW_TYPE).addValues(1).addValue(new HashMap<String, Integer>() { Row.withSchema(INPUT_ROW_TYPE).addValues(2).addValue(new HashMap<String, Integer>() {
0
addOption( opt, null, hasArg, description ); addOption( new Option( opt, longOpt, hasArg, description ) );
0
/** * Indicates whether or not the resource with this state * can be removed. * * @return true if this is a removable state */ public boolean isRemovableState() { switch (State.values()[this.state]) { case INIT: case INSTALLING: case INSTALLED: case INSTALL_FAILED: c...
0
boolean debugEnabled = log.isDebugEnabled(); boolean traceEnabled = log.isTraceEnabled(); if (debugEnabled) { if (traceEnabled) { if (traceEnabled) { if (traceEnabled) { if (traceEnabled) { ...
0
package org.apache.atlas; import org.apache.atlas.repository.graph.GraphHelper; import org.apache.atlas.typesystem.ITypedReferenceableInstance; import org.apache.atlas.typesystem.Referenceable; import org.apache.atlas.typesystem.types.AttributeDefinition; import org.apache.atlas.typesystem.types.ClassType; import org.a...
0
import org.apache.ambari.server.state.StackId; StackId stackId = new StackId(stack.getName(), stack.getVersion()); createAmbariServiceAndComponentResources(topology, clusterName, stackId, repoVersion); public void createAmbariServiceAndComponentResources(ClusterTopology topology, String clusterName, Sta...
0
import com.twitter.aurora.gen.TaskConfig; TaskConfig updated = TaskConfig stored = .setTask(new TaskConfig()
0
/** Tests {@link BucketingFunction}. */ return new BucketingFunction( BUCKET_WIDTH, SIGNIFICANT_BUCKETS, SIGNIFICANT_SAMPLES, SUM);
1
/* $Id$ *
0
DoFnRunner<KV<K, V>, OutputT> doFnRunner = DoFnRunners.simpleRunner( serializedOptions.get(), dofn, new FlinkSideInputReader(sideInputs, runtimeContext), outputManager, mainOutputTag, additionalOutputTags, new FlinkNoOpStepC...
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 ...
1
* <p> * If the property is an indexed property (e.g. <code>String[]</code>), * this method will return the type of the items within that array. * Note that from Java 8 and newer, this method do not support * such index types from items within an Collection, and will * instead return the ...
0
"ORDER_DETAILS1", ORDER_DETAILS1.buildIOReader(pipeline.begin()).setCoder(SOURCE_CODER), "ORDER_DETAILS2", ORDER_DETAILS2.buildIOReader(pipeline.begin()).setCoder(SOURCE_CODER))
0
public Object clone() { try { Option option = (Option) super.clone(); option.values = new ArrayList(values); return option; } catch(CloneNotSupportedException cnse) { throw new RuntimeException("A CloneNotSupportedException was thrown: " + cnse.getMess...
0
return new XPathExpression(attributeValue, xpath, tagScript); return new XPathPatternExpression(attributeValue, pattern);
0
import java.util.List; public void testToListRow_collectMultiple() { Schema schema = Schema.builder().addInt64Field("id").addInt64Field("otherid").build(); RelDataType type = CalciteUtils.toCalciteRowType(schema, TYPE_FACTORY); ImmutableList<ImmutableList<RexLiteral>> tuples = ImmutableList.of( ...
0
int count = Iterators.size(scanner.iterator());
0
import com.google.cloud.dataflow.sdk.util.common.worker.NativeReader; NativeReader<?> reader = ReaderFactory.Registry.defaultRegistry() .create(cloudSource, options, DirectModeExecutionContext.create(), null, null); NativeReader<?> reader = ReaderFactory.Registry.defaultRegistry() ...
0
import org.osgi.framework.ServiceRegistration; private static String TAB_NAME_STRING="TabUI:name=BundlesProbes"; private ServiceRegistration sr = null; java.util.Properties p = new java.util.Properties(); p.put(org.apache.felix.mosgi.jmx.agent.Constants.OBJECTNAME, TAB_NAME_STRING); this.sr = this.bc.re...
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
* @see #isNegateStable() * <p>Override or overload this method to add new signatures to the size operators. * @param object the object to check the emptiness of * @return the boolean or false if object is not null * @since 3.2 */ public Boolean empty(Object object) { Boolean...
0
public class BasicHttpParams extends AbstractHttpParams implements Serializable, Cloneable { * * @deprecated try { return (HttpParams) clone(); } catch (CloneNotSupportedException ex) { throw new UnsupportedOperationException("Cloning not supported"); ...
0
log.debug("formatDate('" + value + "', '" + locale + "') " + e); log.debug("formatDate('" + value + "', '" + datePattern + "', '" + strict+ "') " + e);
0
package org.apache.cocoon.classloader;
0
@Override @Override @Override
0
package org.apache.ambari.logfeeder.util; import org.apache.ambari.logfeeder.util.AWSUtil;
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
0
package org.apache.felix.scrplugin.processing; import org.apache.felix.scrplugin.SCRDescriptorException; import org.apache.felix.scrplugin.SCRDescriptorFailureException; import org.apache.felix.scrplugin.annotations.AnnotationProcessor; import org.apache.felix.scrplugin.annotations.ClassAnnotation; import org.apache.fe...
0
* DOM tree. * make sure your priority is lower/higher than theirs. float getPriority(); String getAuthor(); String getContactAddress(); String getURL(); String getDescription(); void registerTags(ExtensibleDOMImplementation di);
1
public AbstractOrderedMapDecorator(final OrderedMap<K, V> map) { public K nextKey(final K key) { public K previousKey(final K key) {
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
/** * 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
package org.apache.xml.security.algorithms.encryption.implementations.BC; import org.apache.xml.security.utils.EncryptionConstants; /** * * @author $Author$ */ public class KeyWrapImpl_TRIPLEDES_BC extends KeyWrapImpl { public int engineGetIvLength() { return -1; } public String getImplementedAlgorithmU...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/test/org/apache/commons/jelly/TestJellyContext.java,v 1.3 2003/10/09 21:21:30 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/09 21:21:30 $ * any, must include the following acknowledgement: * Alternately, this...
0
* @version $Revision$
0
private ServerCnxnFactory cnxnFactory; cnxnFactory = ServerCnxnFactory.createFactory(); cnxnFactory.configure(config.getClientPortAddress(),
0
package org.apache.beam.sdk.extensions.euphoria.core.client.util; import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience;
0
/* * Copyright 2000-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 applic...
0
assertEquals(1, pkgs.size());
0
* Copyright 2004 The Apache Software Foundation. this(null, (DynaProperty[])null); this(name, (DynaProperty[])null); this(name, dynaBeanClass, null); public LazyDynaClass(String name, DynaProperty[] properties) { this(name, LazyDynaBean.class, properties); } /** * Cons...
0
import org.apache.ambari.server.api.query.render.AlertSummaryGroupedRenderer; if (null == name) { return super.getRenderer(name); } if (name.equals("summary")) { } else if (name.equals("groupedSummary")) { return new AlertSummaryGroupedRenderer();
0
import org.apache.hc.core5.io.CloseMode; public void close(final CloseMode closeMode) { ioReactor.close(closeMode);
0
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;
0
package org.apache.beam.examples.complete; import org.apache.beam.examples.complete.AutoComplete.CompletionCandidate; import org.apache.beam.examples.complete.AutoComplete.ComputeTopCompletions; import org.apache.beam.sdk.Pipeline; import org.apache.beam.sdk.testing.PAssert; import org.apache.beam.sdk.testing.TestPipe...
0
* The public view name. */ private String label; /** * Get the public view name. * * @return the view label */ public String getLabel() { return label; } /**
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
DocumentLoader loader = bridgeContext.getDocumentLoader(); uctx, loader);
0
import org.apache.atlas.type.AtlasType; public GroovyExpression generatePersisentToLogicalConversionExpression(GroovyExpression expr, AtlasType type) { public boolean isPropertyValueConversionNeeded(AtlasType type) {
1
@Test public void testDoesNotSend304ForNonConditionalRequest() throws Exception { Date now = new Date(); Date inOneMinute = new Date(System.currentTimeMillis()+60000); impl = new CachingExec(mockBackend, new BasicHttpCache(),CacheConfig.DEFAULT); HttpRequestWrapper req1 = HttpRequestWrapper.wrap(new HttpGe...
0
output.getWindowingStrategy(), sideInputs, wvInputCoder, context.<Void>stateInternalsFactory() );
0
* @param <E> the element type * @param <E> the element type * @param <E> the element type * @param <E> the element type * @param <E> the element type * @param <E> the element type * @param <E> the element type * @param <E> the element type * @param <E> the element type ...
0
import org.apache.hc.core5.annotation.NotThreadSafe; import org.apache.hc.core5.http.HttpResponse; import org.apache.hc.core5.util.Args;
0
private final byte tag;
0
* Invoked to generate a HTTP request message head. The message is expected
0
public Instant getWatermarkThatGuaranteesFiring(W window) { Instant subDeadline = subTrigger.getWatermarkThatGuaranteesFiring(window);
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
import static com.google.cloud.dataflow.sdk.testing.SystemNanoTimeSleeper.sleepMillis; sleepMillis(100); sleepMillis(100);
0
@Test public void testBasicAuthenticationEmptyChallenge() throws Exception { Assert.assertNull(authscheme.getRealm());
0
<T> T to(Type type);
0
final List<NameValuePair> result = new ArrayList<NameValuePair>(); final Scanner scanner = new Scanner(query); final ContentType contentType = ContentType.get(entity); final String content = EntityUtils.toString(entity, Consts.ASCII); final Header h = entity.getConten...
0
FileObject[] foList = BaseFolder.findFiles(selector0); FileObject[] foList = BaseFolder.findFiles(Selectors.SELECT_FILES); FileObject[] list = BaseFolder.findFiles(selector); FileObject[] foList = BaseFolder.findFiles(selector0); FileObject[] foList = BaseFolder.findFiles(selecto...
0
for (int i = offset; i < (offset + len); i++) {
0
kvpCollection.apply("Process", ParDo.of( .apply("Format", ParDo.of(new DoFn<KV<String, String>, String>() {
0
encoder.encode(Float.valueOf(3.4f));
0
public class ContentHandlerAlreadyRegisteredException extends XMLSecurityException { /** * */ private static final long serialVersionUID = 1L; /** * Constructor ContentHandlerAlreadyRegisteredException * */ public ContentHandlerAlreadyRegisteredException() { super(); ...
0
* @version $Revision$ $Date$
0
package com.twitter.mesos.executor; import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import com.twitter.common.base.ExceptionalClosure; /** * Abstraction for deleting files from the file system. * * @author William Farner */ public interface FileDeleter extends Exceptiona...
0
* or more contributor license agreements. See the NOTICE file * regarding copyright ownership. The ASF licenses this file * with the License. You may obtain a copy of the License at * KIND, either express or implied. See the License for the
0
Shell.log.error("Arg must be an integer.", nfe); Shell.log.error("Arg must be greater than one.", iae); Shell.log .warn("Scan Interpreter option is deprecated and will be removed in a future version."); Shell.log .warn("Scan Interpreter option is deprecated an...
0
return new RegistryBuilder<>(); this.items = new HashMap<>(); return new Registry<>(items);
0
import com.google.common.annotations.VisibleForTesting; AtlasVertex vertex, AtlasTypeDefGraphStoreV1 typeDefStore) throws AtlasBaseException { // Validate the mandatory features of an attribute (compatibility with legacy type system) if (StringUtils.i...
0
* @version $Id: $
0
import org.apache.beam.sdk.util.BackOffAdapter; BackOffAdapter.toGcpBackOff(BACKOFF_FACTORY.backoff()),
0
* @deprecated This has been deprecated. Use the org.apache.felix.status * API instead.
0
resource.setPopulateRequiredFlag(true); resource.setPopulateRequiredFlag(true); resource.setPopulateRequiredFlag(true); resource.setPopulateRequiredFlag(true); resource.setPopulateRequiredFlag(true); resource.setPopulateRequiredFlag(true); resource.setPopulateRequiredFlag(true); resour...
0
PCollection<KV<String, List<Integer>>> largestPerKey = inputTable.apply(Top.largestPerKey(2)); PCollection<KV<String, List<Integer>>> smallestPerKey = inputTable.apply(Top.smallestPerKey(2)); PCollection<KV<String, List<Integer>>> largestPerKey = inputTable.apply(Top.largestPerKey(2)); PCollection<KV<St...
0
public final NativeReader<?> reader; volatile NativeReader.NativeReaderIterator<?> readerIterator = null; private AtomicReference<NativeReader.Progress> progress = new AtomicReference<>(); public ReadOperation( String operationName, NativeReader<?> reader, OutputReceiver[] receivers, Str...
0
@SuppressWarnings("deprecation")
0
import com.google.cloud.dataflow.sdk.transforms.ParDo; Options options = PipelineOptionsFactory.fromArgs(args).withValidation() .as(Options.class); // Concepts #2 and #3: Our pipeline applies the composite CountWords transform, and passes the // static FormatAsTextFn() to the ParDo transform. .apply(ParDo...
0
import java.nio.channels.AsynchronousChannelGroup; public Nio2Acceptor(FactoryManager manager, IoHandler handler, AsynchronousChannelGroup group) { super(manager, handler, group);
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 applica...
0
+ "Forgotten kryo registration is possible explanation. Kryo registrations where done by '%s'.", (value == null) ? null : value.getClass().getSimpleName(), registrarWithId), String.format( "Cannot decode object from input stream." + " Forgotten k...
0
SET_IGNORE.add("page_size"); SET_IGNORE.add("to"); SET_IGNORE.add("from"); }
0
package org.apache.beam.sdk.coders; import org.apache.beam.sdk.testing.CoderProperties; import org.apache.beam.sdk.util.CoderUtils; * {@link org.apache.beam.sdk.coders.PrintBase64Encodings}.
0
private EnumerationUtils() {}
0