Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
@Override
0
package org.apache.beam.sdk.extensions.protobuf; import org.apache.beam.sdk.extensions.protobuf.Proto2CoderTestMessages.MessageA; import org.apache.beam.sdk.extensions.protobuf.Proto2CoderTestMessages.MessageB; import org.apache.beam.sdk.extensions.protobuf.Proto2CoderTestMessages.MessageC; import org.apache.beam.sdk.e...
0
import org.apache.beam.vendor.grpc.v1p21p0.com.google.protobuf.ByteString; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
0
String delegate = fileFilter != null ? fileFilter.toString() : filenameFilter.toString();
0
private class IdentityChild extends IdentityParent {} underTest(new DoFnWithContext<String, String>() {});
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
import org.apache.sshd.common.channel.Channel; ChannelExec c = (ChannelExec) session.openChannel(Channel.CHANNEL_EXEC); ChannelExec c = (ChannelExec) session.openChannel(Channel.CHANNEL_EXEC); ChannelExec c = (ChannelExec) session.openChannel(Channel.CHANNEL_EXEC); ChannelExec c = (Chann...
0
* @version CVS $Id: ClassJXPathBinding.java,v 1.2 2004/04/12 14:05:08 tim Exp $
0
"WHERE cluster.clusterName=:clusterName AND clusterVersion.repositoryVersion.stack.stackName=:stackName AND clusterVersion.repositoryVersion.stack.stackVersion=:stackVersion AND clusterVersion.repositoryVersion.version=:version"), @NamedQuery(name = "clusterVersionByStackVersion", query = "SELECT clusterVer...
0
private static final long serialVersionUID = 1L; V dfault; public DefaultMap(V dfault) { this.dfault = dfault; } @SuppressWarnings("unchecked") @Override public V get(Object key) { V result = super.get(key); if (result == null) { try { super.put((K) key, result = construct(...
1
// ----------------------------------------------------- // Test substring regex is.clearOptions(); RegExFilter.setRegexs(is, null, null, null, "amst", false, true); // Should only match hamster rei.validateOptions(is.getOptions()); rei.init(new SortedMapIterator(tm), is.getOp...
0
import org.apache.sshd.common.NamedResource; SessionContext session, NamedResource resourceKey, InputStream inputStream) protected void doWriteKeyPair(NamedResource resourceKey, KeyPair kp, OutputStream outputStream)
0
private boolean hasNext = true; private final WindowedKey currentKey; byte[] getKey() { byte[] getWindow() {
0
import static org.apache.aurora.scheduler.SchedulerServicesModule.addSchedulerActiveServiceBinding; addSchedulerActiveServiceBinding(binder()).to(TaskVars.class); .annotatedWith(TaskStatusHandlerImpl.StatusUpdateQueue.class) .toInstance(new LinkedBlockingQueue<>()); .annotatedWith(TaskStatu...
0
/* public static final String IPOJO_PACKAGE_VERSION = " 1.4.0";
0
* * * throws PBFactoryException; * String user, String password) throws PBFactoryException; throws PBFactoryException;
0
throw new RuntimeException( ex.getMessage() ); throw new RuntimeException( ex.getMessage() ); throw new RuntimeException( ex.getMessage() );
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
* @version CVS $Id: CocoonServlet.java,v 1.24 2004/03/13 15:01:24 cziegeler Exp $ final ServletOutputLogTarget servTarget = new ServletOutputLogTarget(this.servletContext, formatter );
0
import java.util.NavigableMap; NavigableMap<Integer, String> GROUP_KEX_OPCODES_MAP = Collections.unmodifiableNavigableMap( LoggingUtils.generateMnemonicMap(SshConstants.class, "SSH_MSG_KEX_DH_GEX_")); NavigableMap<Integer, String> SIMPLE_KEX_OPCODES_MAP = Collections.unmodifiableNavi...
0
trace.addRow(span, Long.valueOf(span.stop - span.start), span.svc + ":" + span.sender);
0
import static org.junit.Assert.assertFalse; @Test createRule.setConstructorArgumentTypes( boolean.class, double.class ); digester.addCallParam( "toplevel/bean", 0, "notFound1" ); digester.addCallParam( "toplevel/bean", 1, "notFound2" );
0
import org.apache.accumulo.core.iterators.SortedKeyValueIterator; serverSideIteratorList, serverSideIteratorOptions, iterEnv, false));
0
Assert.assertEquals(false, command.isOverrideConfigs());
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java,v 1.4 2003/11/28 21:11:33 dgraham Exp $ * $Revision: 1.4 $ * $Date: 2003/11/28 21:11:33 $ import java.math.BigInteger; "notDate", "columnProcess...
0
import org.apache.cocoon.xml.util.NamespacesTable;
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
* @deprecated Please perform queries directly on a Storage instance. @Deprecated
0
import org.apache.felix.karaf.gshell.console.Completer; import org.apache.felix.karaf.gshell.console.completer.StringsCompleter; public class InstalledFeatureCompleter implements Completer {
0
import org.apache.accumulo.core.clientImpl.ClientInfo; ClientInfo info = ClientInfo.from(this.getClientProperties()); InputConfigurator.setClientProperties(AccumuloInputFormat.class, job.getConfiguration(), info.getProperties()); OutputConfigurator.setClientProperties(AccumuloOutputFormat.class, job...
0
return getClass().getSimpleName();
0
import cz.seznam.euphoria.core.annotation.audience.Audience; @Audience(Audience.Type.INTERNAL)
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/RequiredNameTest.java,v 1.6 2003/03/13 02:09:24 dgraham Exp $ * $Revision: 1.6 $ * $Date: 2003/03/13 02:09:24 $ import junit.framework.Test; import junit.framework.TestCase; * @ve...
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 use...
0
* @version $Revision: 1.11 $ $Date: 2004/04/01 02:55:32 $ private String namespaceURI; public NodeNameTest(QName qname, String namespaceURI) { this.qname = qname; this.namespaceURI = namespaceURI; } public String getNamespaceURI() { return namespaceURI; }
0
import java.util.Arrays; import java.util.Collection; import java.util.Collections;
0
import static org.easymock.EasyMock.createMock; import static org.easymock.EasyMock.replay; import static org.easymock.EasyMock.verify; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue;
0
* Convert a {@link PCollection}{@literal <InputT>} into a {@link PCollection}{@literal <Row>}. * Convert a {@link PCollection}{@literal <Row>} into a {@link PCollection}{@literal <OutputT>}. * Convert a {@link PCollection}{@literal <Row>} into a {@link PCollection}{@literal <Row>}. * Convert a {@link PColle...
0
* $Header: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/beanshell/TestBeanShellEL.java,v 1.4 2002/02/19 15:40:58 jstrachan Exp $ * $Revision: 1.4 $ * $Date: 2002/02/19 15:40:58 $ * $Id: TestBeanShellEL.java,v 1.4 2002/02/19 15:40:58 jstrachan Exp $ import org.apache.commons.jelly.tags.b...
0
import static com.google.common.base.Preconditions.checkArgument; checkArgument(si != null, "si is null"); checkArgument(iteratorName != null, "iteratorName is null"); checkArgument(iteratorName != null, "iteratorName is null"); checkArgument(key != null, "key is null"); checkArgument(value != null,...
0
import cz.seznam.euphoria.core.annotation.audience.Audience; @Audience(Audience.Type.CLIENT)
0
* @version $Id: AbstractConfiguration.java,v 1.29 2004/12/02 22:05:52 ebourg Exp $ throw new IllegalArgumentException('\'' + token + "' does not contain an equals sign"); throw new NoSuchElementException('\'' + key + "' doesn't map to an existing object"); Object value = getProperty...
0
Map<String,String> options = Collections.singletonMap("auths", new Authorizations("x", "def", "y").serialize());
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.sshd.common.session.impl.AbstractSession;
0
javax.xml.parsers.DocumentBuilder db = XMLUtils.createDocumentBuilder(false, false); javax.xml.parsers.DocumentBuilder db = XMLUtils.createDocumentBuilder(false, false);
0
import org.apache.commons.lang.SystemUtils; * @version CVS $Id: Cocoon.java,v 1.30 2004/07/11 23:02:54 antonio Exp $ String lineSeparator = SystemUtils.LINE_SEPARATOR;
0
* @param compilerComplianceLevel The version of the JVM for wich the code was written.
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.options.PipelineOptionsFactory; private static final String TOPIC = "test_topic"; assertNull(msg); assertEquals(100, count); } @Test pu...
0
import org.apache.beam.sdk.annotations.Experimental; import org.apache.beam.sdk.annotations.Experimental.Kind;
0
* @param keyType the class representing the type of the keys emitted * @param valueType the class representing the type of the values emitted
0
WindowingStrategy<?, ?> windowingStrategy) { this.context = new DoFnContext<>( options, fn, sideInputs, outputManager, mainOutputTag, sideOutputTags, stepContext, addCounterMutator, windowingStrategy == null ? null : windowingStrategy.getWindowFn()); WindowingStrategy<?, ?> windowingStra...
0
// a test for ACCUMULO-3096
0
return "Namespaces must only contain word characters (letters, digits, and underscores): " + namespace; return new ZooCacheFactory().getZooCache(instance.getZooKeepers(), instance.getZooKeepersSessionTimeOut()); byte[] path = zc.get( ZooUtil.getRoot(instance) + Constants.ZNAM...
0
import com.google.common.base.Optional; private Supplier<Optional<SchedulerDriver>> driverSupplier; driverSupplier = createMock(new Clazz<Supplier<Optional<SchedulerDriver>>>() { }); expect(driverSupplier.get()).andReturn(Optional.of(schedulerDriver)).times(2); expect(driverSupplier.get()).andReturn(Opti...
0
import org.apache.batik.gvt.text.TextPaintInfo; public static final AttributedCharacterIterator.Attribute PAINT_INFO = GVTAttributedCharacterIterator.TextAttribute.PAINT_INFO; (SVGGlyphElementBridge)ctx.getBridge(glyphElement); TextPaintInfo tpi = null; ...
0
import org.apache.ambari.logsearch.common.PropertiesHelper; String solrUrl = PropertiesHelper.getProperty("logsearch.solr.url"); String zkConnectString = PropertiesHelper.getProperty("logsearch.solr.zk_connect_string"); String collection = PropertiesHelper.getProperty("logsearch.solr.collection.service.logs...
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 static com.twitter.mesos.scheduler.SchedulingFilterImpl.ResourceVector.CPU; import static com.twitter.mesos.scheduler.SchedulingFilterImpl.ResourceVector.DISK; import static com.twitter.mesos.scheduler.SchedulingFilterImpl.ResourceVector.PORTS; import static com.twitter.mesos.scheduler.SchedulingFilterImpl.Resou...
0
package org.apache.felix.sigil.search; import org.apache.felix.sigil.model.eclipse.ISigilBundle; import org.apache.felix.sigil.model.osgi.IPackageExport;
0
Header challenge = challenges.get(id.toLowerCase());
0
Pipeline p = FlinkTestPipeline.create(); .apply(TextIO.Write.named("test").to(resultPath));
0
authstate.setState(AuthProtocolState.SUCCESS);
0
import org.apache.aurora.gen.ResourceAggregate; import org.apache.aurora.scheduler.quota.ResourceAggregates; import org.apache.aurora.scheduler.storage.entities.IResourceAggregate; private static final Map<String, IResourceAggregate> SLOT_SIZES = ImmutableMap.of( "small", IResourceAggregate.build(new ResourceAg...
0
import org.apache.ambari.server.orm.OrmTestHelper; private OrmTestHelper m_helper; m_helper = m_injector.getInstance(OrmTestHelper.class); m_helper.getOrCreateRepositoryVersion(stackId.getStackName(), stackId.getStackVersion());
0
zkServer.dumpMonitorValues(response::put); .dump(response::put);
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.felix.dm.Service;
0
* Copyright 2004,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
@Column(name = "output_log") @Basic private String outputLog = null; @Column(name = "error_log") @Basic private String errorLog = null; public String getOutputLog() { return outputLog; } public void setOutputLog(String outputLog) { this.outputLog = outputLog; } public String getErrorLog() { retur...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MapUtils.java,v 1.33 2003/09/09 21:05:51 scolebourne Exp $ * @version $Revision: 1.33 $ $Date: 2003/09/09 21:05:51 $ * @param map the map to transform, must not be null ...
0
import java.util.ArrayList; public boolean beginUpdatingLogsUsed(ArrayList<DfsLogger> copy, boolean mincFinish) {
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
* @version CVS $Id: CastorTransformer.java,v 1.2 2003/03/16 18:03:55 vgritsenko Exp $
0
public interface IOSGiInstallManager { IOSGiInstall findInstall( String id ); String[] getInstallIDs(); IOSGiInstall[] getInstalls(); IOSGiInstall getDefaultInstall(); IOSGiInstallType findInstallType( String location );
0
private static final String STORM_HOST = "storm.host"; private static final String STORM_PORT = "storm.port"; private static final String STORM_SSL_ENABLED = "storm.sslEnabled"; private String stormURL; String sslEnabled = viewContext.getProperties().get(STORM_SSL_ENABLED); String hostname = viewContext...
0
return createServletFactoryBeanDefinition((Element) source, holder, ctx, embeddedServletBeanName); private BeanDefinitionHolder createServletFactoryBeanDefinition(Element source, BeanDefinitionHolder holder, ParserContext ctx, String embeddedServletBeanName) { String ns = source.getNamespaceURI(); ...
0
* @version $Revision: 1.6 $ $Date: 2004/05/10 20:09:54 $ public WebdavFileProvider() super(); return new WebDavFileSystem(rootName, fileSystemOptions);
0
import org.apache.http.params.BasicHttpParams; HttpParams params = new BasicHttpParams();
0
import org.apache.sshd.util.test.JUnitTestSupport; public class AuthorizedKeyEntryLoginOptionsParseTest extends JUnitTestSupport {
0
import java.util.Map; public class MapHandler implements ResultSetHandler<Map<String,Object>> { public Map<String,Object> handle(ResultSet rs) throws SQLException {
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.junit.Assert;
0
username = userAuth.getUsername();
0
private static String providerName = null; * Gets the default Provider for obtaining the security algorithms */ public static String getProviderId() { return providerName; } /** * Sets the default Provider for obtaining the security algorithms */ public static void setProvide...
0
package org.apache.cocoon.portal.factory; import org.apache.cocoon.portal.aspect.AspectalizableDescription; * This is a description of a {@link Producible} object. * @version CVS $Id: ProducibleDescription.java,v 1.1 2003/05/20 14:06:43 cziegeler Exp $ public interface ProducibleDescription extends Aspectalizable...
0
CoderUtils.encodeToBase64(triggerIdCoder, new TriggerId<>(window(0, 10), 0)), CoderUtils.encodeToBase64(triggerIdCoder, new TriggerId<>(window(10, 20), 0)), assertThat(item0.getWindows(), Matchers.<BoundedWindow>contains(window(0, 10))); assertThat(item1.getWindows(), Matchers.<BoundedWi...
0
* @since 2.2 * @since 2.2 * @since 2.2 * @since 2.2 * @since 2.2
0
JList<String> classNamesJList = new JList<>(); JList<String> pass3aJList = new JList<>(); JList<String> pass3bJList = new JList<>();
0
accumulo.getConfig().getZooKeepers(); ZooLock zl = new ZooLock(accumulo.getConfig().getZooKeepers(), 30000, "digest", "secret".getBytes(), parent); ZooReaderWriter zk = ZooReaderWriter.getInstance(accumulo.getConfig().getZooKeepers(), 30000, "digest", "secret".getBytes()); accumulo.getConfig().getZooKee...
0
import java.io.InputStream; ApacheData data = (ApacheData)dereference(context); try (InputStream is = new ByteArrayInputStream(data.getXMLSignatureInput().getBytes())) { Document doc = db.parse(is);
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
@Nullable WindowingDesc<Object, W> windowing,
0
* @version CVS $Id: FileSavingEnvironment.java,v 1.4 2003/08/17 13:43:00 upayavira Exp $ protected boolean modified = true; protected long sourceLastModified = 0L; long lastModified, this.sourceLastModified = lastModified; public FileSavingEnvironment(String uri, ...
0
* * @deprecated (4.3) do not use. @Deprecated
0
private transient final Log log = LogFactory.getLog(getClass()); if (this.log.isDebugEnabled()) { this.log.debug("Authentication schemes in the order of preference: " if (this.log.isDebugEnabled()) { this.log.debug(id + " authentication scheme selected"); ...
0
* @version $Id$
0
* @version $Revision$ $Date$
0
* @since 1.0
0
Job job = JobUtil.getJob(getConf()); job.setJobName(getClass().getSimpleName());
0