Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
public class AudioVisual implements Item { public void setYearMade( int yearMade ) { public void setCategory( String category ) { public void setName( String name ) { public void setDesc( String desc ) { public void setRuntime( Integer runtime ) { public void setType...
0
import org.apache.http.util.Args; Args.notNull(authscope, "Scope");
0
return PCollection.<T>createPrimitiveOutputInternal( input.getPipeline(), windowingStrategy, input.isBounded());
0
* @author <a href="mailto:bill.haneman@ireland.sun.com">Bill Haneman</a>
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/test/org/apache/commons/jelly/tags/junit/SuiteTag.java,v 1.3 2003/10/09 21:21:31 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/09 21:21:31 $ * any, must include the following acknowledgement: * Alternately, t...
0
package org.apache.hadoop.metadata.repository.graph;
1
import com.google.cloud.dataflow.sdk.util.common.worker.StateSampler; public ExecutionContext.StepContext createStepContext( String stepName, String transformName, StateSampler stateSampler) {
0
query.setParameter("mpackId", mpackId);
0
} finally { //NOPMD
0
public void handleInformationResponse( final HttpResponse response) throws HttpException, IOException { asyncExecCallback.handleInformationResponse(response); } @Override
0
for (Object o : styleMap.keySet()) { String styleName = (String) o; if (element.getAttributeNS(null, styleName).length() == 0) { (String) styleMap.get(styleName));
0
* The default {@link TcpipForwarderFactory} implementation. * @see {@link DefaultTcpipForwarder} public class DefaultTcpipForwarderFactory implements TcpipForwarderFactory { public static final DefaultTcpipForwarderFactory INSTANCE = new DefaultTcpipForwarderFactory(); public DefaultTcpipForwarderFactory() {...
0
/** Internal translators for running Beam pipelines on Spark. */
1
@JsonProperty("repeat_tolerance") private int repeatTolerance; @JsonProperty("repeat_tolerance_enabled") private Boolean repeatToleranceEnabled; public int getRepeatTolerance() { return repeatTolerance; } public void setRepeatTolerance(int repeatTolerance) { this.repeatTolerance = repeatToleran...
0
public void accept( final Visitor v ) {
0
StateTag<?, ?> fooVarInt1 = StateTags.value("foo", VarIntCoder.of()); StateTag<?, ?> fooVarInt2 = StateTags.value("foo", VarIntCoder.of()); StateTag<?, ?> fooBigEndian = StateTags.value("foo", BigEndianIntegerCoder.of()); StateTag<?, ?> barVarInt = StateTags.value("bar", VarIntCoder.of()); StateTag<...
0
reason = "invalid character @" + i;
0
import org.apache.batik.bridge.FilterPrimitiveBridge; * @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a> public class SVGFeColorMatrixElementBridge implements FilterPrimitiveBridge, SVGConstants {
0
import java.util.HashMap; import java.util.Map; Map<String,String> variantMap = new HashMap<String,String>(src.getVariantMap()); variantMap.put(variantURI, variantURI); variantMap); resource); for(String variantUri : root.getVariantMap().values())...
0
int offset, String tableName) throws Exception { private static void verify(Connector connector, ConnectionInfo info, int rows, int cols, int width, int offset, String colf, String tableName) throws Exception {
0
import org.apache.accumulo.core.clientImpl.BaseIteratorEnvironment;
0
} catch (Exception e) { } catch (Exception e) {
0
package org.apache.beam.runners.dataflow.util;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/ObjectCreateRule.java,v 1.8 2002/01/04 05:32:11 sanders Exp $ * $Revision: 1.8 $ * $Date: 2002/01/04 05:32:11 $ * @version $Revision: 1.8 $ $Date: 2002/01/04 05:32:11 $ if (di...
0
import java.awt.Color; import java.io.ByteArrayOutputStream; import java.io.OutputStream; * @version CVS $Id: SVGSerializer.java,v 1.3 2003/03/24 14:33:57 stefano Exp $
0
import org.apache.beam.harness.test.TestExecutors; import org.apache.beam.harness.test.TestExecutors.TestExecutorService;
0
/** * 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 in writing, software * distribu...
0
// IIS allows GET even if the file is non existend - so changed to COPY // if (method.equals("GET")) if (method.equals("COPY")) // Again to be IIS compatible // return hasAllowedMethods("POST"); return hasAllowedMethods("COPY");
0
@Test public void authsTest() throws Exception { Shell.log.debug("Starting auths test --------------------------"); exec("setauths x,y,z", false, "Missing required option"); exec("setauths -s x,y,z -u notauser", false, "user does not exist"); exec("setauths -s x,y,z", true); exec("getauths -u...
0
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.date; import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlFnExecutorTestBase; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.Beam...
0
package org.apache.cocoon.el.impl.javascript; import org.apache.cocoon.components.expression.javascript.JavaScriptCompiler;
0
/* $Id$ *
0
import cz.seznam.euphoria.core.client.type.TypeAwareReduceFunctor; import cz.seznam.euphoria.core.client.type.TypeAwareUnaryFunction; import cz.seznam.euphoria.core.client.type.TypeHint; public class ReduceByKey<IN, KEY, VALUE, OUT, W extends Window<W>> @Override public <KEY> DatasetBuilder2<IN, KEY> keyBy( ...
0
return run(getOptions()); } /** Like {@link #run} but with the given potentially modified options. */ public PipelineResult run(PipelineOptions options) { pipelineResult = super.run(options);
0
assertTrue(ioreactor.getStatus().compareTo(IOReactorStatus.SHUTTING_DOWN) >= 0);
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 applica...
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
public static MasterGoalState findByValue(int value) {
0
public class TestAllPredicate extends AbstractTestAnyAllOnePredicate<Integer> {
0
this.clusterName = clusterName; this.serviceName = serviceName; this.componentName = componentName; this.desiredState = desiredState; String desiredState, String componentCategory) { return String.format("[clusterName=%s, serviceName=%s, componentName=%s, desiredStat...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestList.java,v 1.9 2002/06/18 01:14:23 mas Exp $ * $Revision: 1.9 $ * $Date: 2002/06/18 01:14:23 $ * @version $Id: TestList.java,v 1.9 2002/06/18 01:14:23 mas Exp $ p...
0
.windowBy(Time.of(Duration.ofHours(1)))
0
import com.google.common.collect.ImmutableList; import com.twitter.mesos.scheduler.periodic.BootstrapTaskLauncher; import com.twitter.mesos.scheduler.periodic.BootstrapTaskLauncher.Bootstrap; import com.twitter.mesos.scheduler.periodic.GcExecutorLauncher; import com.twitter.mesos.scheduler.periodic.GcExecutorLauncher.G...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbutils/src/java/org/apache/commons/dbutils/DbUtils.java,v 1.3 2004/01/11 22:30:38 dgraham Exp $ * $Revision: 1.3 $ * $Date: 2004/01/11 22:30:38 $ * Copyright (c) 2002-2004 The Apache Software Foundation. All rights
0
* <p>Allows to set arbitrary username as HDFS user, which is used for reading Avro from HDFS.
0
* <p>The {@link DatastoreIO} class provides an API to Read and Write a * <p>Datastore is a fully managed NoSQL data storage service. * <p>To use {@link DatastoreIO}, users must use gcloud to get credential for Datastore: * <p>Note that the environment variable CLOUDSDK_EXTRA_SCOPES must be set * <p>To read a {@lin...
0
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
0
public Collection<HostComponentConfigMappingEntity> getHostComponentConfigMappingEntities() {
0
// get the Document and make all namespace nodes visible in DOM space XMLUtils.circumventBug2650(document); * * We don't use the factory because direct instantiation should be a * little bit faster...
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
Collections.sort(spanList, (o1, o2) -> (int) (o1.start - o2.start));
0
package org.apache.commons.vfs2.provider.local; import org.apache.commons.vfs2.FileName; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.FileType; import org.apache.commons.vfs2.provider.AbstractFileNameParser; import org.apache.commons.vfs2.provider.UriParser; import org.apache.commo...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListList.java,v 1.2 2003/04/13 22:30:56 rwaldhoff Exp $ import org.apache.commons.collections.primitives.RandomAccessLongList; * @version $Revisi...
0
target.addEventListener("DOMActivate", activateListener, false); svgAbortListener, false); target.removeEventListener("DOMActivate", activateListener, false);
0
public Class<?>[] getExceptions() { Class<?>[] cs = new Class[1 + ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length];
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
public static final String SOLR_IMPLICIT_ROUTING_PROPERTY = "logfeeder.solr.implicit.routing";
0
* @param <J> the type of the keys to put in this map * @param <K> the type of the keys to get in this map * @param <U> the type of the values to put in this map * @param <V> the type of the values to get in this map
0
// We cannot import the default package, so return null in that case. if (pkgName.length() == 0) { return null; }
0
CleanupTimer<InputT> cleanupTimer,
0
private static final Logger LOG = LoggerFactory.getLogger(HiveActor.class); @Override final public void onReceive(Object message) throws Exception { HiveMessage hiveMessage = new HiveMessage(message); if (LOG.isDebugEnabled()) { LOG.debug("Received message: " + message.getClass().getName() + ", gen...
0
new String(decryptBytes, "ASCII"));
0
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.apache.xml.security.exceptions.XMLSecurityException; import org.apache.xml.security.stax.ext.stax.XMLSecAttribute; import org.apache.xml.security.stax.ext.stax.XMLSecEvent; import org.apache.xml.security.st...
0
import org.apache.beam.sdk.transforms.windowing.TimestampCombiner; // The TimestampCombiner is set to ensure the GroupByKey does not shift elements forwards in // time. .withTimestampCombiner(TimestampCombiner.EARLIEST)
0
this.handleBeanInclude(parserContext, Constants.CLASSPATH_SPRING_CONFIGURATION_LOCATION, true); this.handleBeanInclude(parserContext, Constants.CLASSPATH_SPRING_CONFIGURATION_LOCATION + "/" + runningMode, true); this.handleBeanInclude(parserContext, springConfigLocation, true); ...
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
* 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...
0
String baseURI = profile.getBaseURI();
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 b...
0
import com.google.cloud.dataflow.sdk.io.BigQueryIO.Write.WriteDisposition; .withCreateDisposition(CreateDisposition.CREATE_IF_NEEDED) .withWriteDisposition(WriteDisposition.WRITE_APPEND));
0
/** @param workerWorkingDirectory */ * Clean up the files that have been created on the local worker file system. Without this expect * both performance issues and eventual failure * LOG.info( String.format( "Log Files for process: %s outFile was: %s errFile was: %s", ...
1
*/ public abstract class JsrInstruction extends BranchInstruction implements UnconditionalBranch, TypedInstruction, StackProducer { JsrInstruction(short opcode, InstructionHandle target) { super(opcode, target); } /** * Empty constructor needed for the Class.newInstance() statement i...
0
public static final String RELATIONSHIPTYPE_LABEL_KEY = "relationshipLabel";
0
import org.apache.hc.core5.http.ContentType; request.setEntity(new InputStreamEntity(new ByteArrayInputStream(new byte[] {'a'}), -1, ContentType.DEFAULT_TEXT)); request.setEntity(new InputStreamEntity(new ByteArrayInputStream(new byte[] {'a'}), -1, ContentType.DEFAULT_TEXT));
0
actions.set(Actions.INVOKE_BUNDLE_EVENT_HOOK, eh, event, contexts);
0
if (log.isDebugEnabled()) { log.debug("Waiting for {} bytes on {}", Integer.valueOf(len), name); }
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
lu.getStringValue().equalsIgnoreCase(CSS_NORMAL_VALUE)) { !value.equalsIgnoreCase(CSS_NORMAL_VALUE)) {
0
package org.apache.felix.sigil.model.common;
0
HdfsApi api = HdfsApi.connectToHDFSApi(context);
0
* @version $Id$
0
private <ReturnT> ReturnT getProviderResult(Function<SchemaProvider, ReturnT> f) throws NoSuchSchemaException { ReturnT result = f.apply(provider);
0
import cz.seznam.euphoria.core.client.functional.UnaryFunction; /** * Window time assigner extracts timestamp from given element. */ UnaryFunction<IN, Long> getEventTimeAssigner();
0
package cz.seznam.euphoria.flink.batch; import cz.seznam.euphoria.core.client.io.DataSource; import cz.seznam.euphoria.core.executor.FlowUnfolder; import cz.seznam.euphoria.flink.FlinkOperator; import cz.seznam.euphoria.flink.batch.io.DataSourceWrapper; import org.apache.flink.api.java.DataSet; class InputTranslator ...
0
import java.lang.reflect.InvocationTargetException; conf = (Configuration) Class.forName(className).getDeclaredConstructor().newInstance(); } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
0
* org.w3c.dom.svg.SVGAnimatedLength} interface.
0
@XmlElement(name = "NodeRangeExpressions", required = true)
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 interface SshAgent extends java.nio.channels.Channel {
0
* * * /** * A tag which creates a List implementation and optionally * The exact implementation of List can be specified via the * //------------------------------------------------------------------------- //------------------------------------------------------------------------- //--------------...
1
* any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * permission of the Apache Software Foundation.
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
0
import org.apache.felix.http.base.internal.dispatch.DispatcherServlet;
0
instanceName = InstanceOperationsImpl.lookupInstanceName(zooCache, UUID.fromString(getInstanceID()));
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 java.sql.Timestamp; private Timestamp timestamp = null;
0
package org.apache.felix.bundlerepository;
1
PTransform<PCollection<T>, PCollection<List<T>>> of(int count, C compareFn) { PTransform<PCollection<T>, PCollection<List<T>>> smallest(int count) { PTransform<PCollection<T>, PCollection<List<T>>> largest(int count) {
0
PaneInfo.ON_TIME_AND_ONLY_FIRING);
0
indexer.commit(management); graph.commit();
0