Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.apache.felix.dm.samples.annotation; public interface ServiceInterface { public void doService(); }
0
new AreaOfInterestHintKey();
0
package org.apache.bcel.classfile; import java.io.DataOutputStream; import java.io.IOException; import org.apache.bcel.Constants; public class ClassElementValue extends ElementValue { // For primitive types and string type, this points to the value entry in // the cpool // For 'class' this points to the class entr...
0
* @version $Revision: 1.3 $ $Date: 2004/08/02 19:49:21 $ /** * Renders a string representation of this object. * @return a <code>String</code> representation of this object */
0
suite.addTest(TestHeaderGroup.suite());
0
this.timeout = timeoutMillis < 0 ? 0 : timeoutMillis;
0
* While creating new cluster, cluster definition must specify name, stack name * -- stack revision = latest revision * each role, specified stack for cluster configuration should exist * Get the stack associated with cluster * @response.representation.200.doc Get the stack associated wi...
0
import org.apache.cocoon.portal.coplet.CopletInstanceData; import org.apache.cocoon.portal.event.CopletInstanceEvent; * @version CVS $Id: LinkEvent.java,v 1.2 2003/05/26 12:49:13 cziegeler Exp $ extends AbstractActionEvent implements CopletInstanceEvent { protected String link; public LinkEvent(CopletInstanceD...
0
private final boolean ssoIntegrationRequiresKerberos; boolean credentialStoreSupported, boolean credentialStoreEnabled, boolean ssoIntegrationSupported, boolean ssoIntegrationDesired, boolean ssoIntegrationEnabled, boolean ssoIntegrationRequiresKerberos) { this.ss...
0
import org.apache.commons.vfs.test.AbstractProviderTestConfig; import org.apache.commons.vfs.test.ProviderTestSuite; import org.apache.commons.vfs.FileSystemManager; import org.apache.commons.AbstractVfsTestCase; import junit.framework.Test; import java.io.File; * @version $Revision: 1.3 $ $Date: 2002/11/25 05:50:03 $...
0
StringBuilder sb = new StringBuilder();
0
try { // getClient() call must come after converMutations in case it throws a TException if (sessionId != null) * private void invalidateSession(SessionID sessionId, String location)...
0
cfg.setMemory(ServerType.TABLET_SERVER, cfg.getMemory(ServerType.TABLET_SERVER) * 3, MemoryUnit.BYTE); log.info("Found " + unassignedTablets + " unassigned tablets, sleeping 3 seconds for tablet assignment"); assertTrue("Expected difference in tablets to be less than or equal to " ...
0
import org.apache.aurora.common.testing.easymock.EasyMockTest;
0
import org.osgi.converter.TypeReference; * @return A {@link Deserializing} object to specify the source for the * decode operation. * @return A {@link Deserializing} object to specify the source for the * decode operation. * @return A {@link Deserializing} object to specify the source for the ...
0
* Check if host exists * @param hostname Name of the host requested * @return is host exists */ public boolean hostExists(String hostname); /**
0
if (++i == args.length) { } if (++i == args.length) { } if (++i == args.length) { } if (++i == args.length) { } if (++i == args.length) { ...
0
package org.apache.jcp.xml.dsig.internal.dom;
0
import java.util.ArrayList; import java.util.List; import java.util.regex.Pattern; static Pattern standaloneRegEx = Pattern.compile( "^org.apache.ZooKeeperService:name0=StandaloneServer_port-?\\d+$" ); static Pattern instanceRegEx = Pattern.compile( "^org.apache.ZooKeeperService:nam...
0
public class FinalUpgradeCatalog extends AbstractFinalUpgradeCatalog {
0
* Insert a composite layout's elements into the resulting XML. Elements (items) * are processed in order. Concrete descendents of this class need to implement the * actual handling of layout elements. * * <h2>Applicable to:</h2> * <ul> * <li>{@link org.apache.cocoon.portal.layout.CompositeLayout}</li> * </ul>...
0
public void putClass(Annotation annotation, EntryParam param) String value = AnnotationCollector.parseClassAttrValue(annotation.get(param.toString())); put(param, value); * * @param annotation the annotation containing an array of classes * @param param the attribute name correspo...
0
import com.google.common.collect.Lists;
0
import org.apache.ambari.server.controller.ControllerModule; Injector injector = Guice.createInjector(new ControllerModule());
0
import org.apache.accumulo.test.randomwalk.Environment;
0
createLink(link, target, true, attrs); createLink(link, existing, false); } protected void createLink(Path link, Path target, boolean symLink, FileAttribute<?>... attrs) throws IOException { Path t = unroot(target); /* * For a symbolic link preserve the relative path ...
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 CoordinationException endNestedCoordinations(final CoordinationImpl c) CoordinationException partiallyFailed = null; if ( partiallyFailed != null) { nested.fail(partiallyFailed); } partiallyFailed = ce;
0
@Override
0
dict.put("mandatory:", "common"); dict.put("mandatory:", "common,test"); dict.put("mandatory:", "common"); dict.put("mandatory:", "common,test"); dict.put("mandatory:", "common"); dict.put("mandatory:", "common,test");
0
public Wire(final Log log, final String id) { public Wire(final Log log) { private void wire(final String header, final InputStream instream) public void output(final InputStream outstream) public void input(final InputStream instream) public void output(final byte[] b, final int off, final int ...
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
Iterables.filter( availableSideInputs, sideInputCandidate -> { if (sideInputCandidate == null) { return false; } return Iterables.contains(sideInputCandidate.getWindows(), sideInputWindow); ...
0
import org.apache.hc.core5.http.nio.SessionInputBuffer; import org.apache.hc.core5.http.nio.SessionInputBufferImpl;
1
public void testDoubleStart() throws Exception { writer.startDefaultLocalityGroup(); writer.startDefaultLocalityGroup(); public void testAppendStartDefault() throws Exception { writer.append(new Key("r1", "f1", "q1"), new Value("1".getBytes()));
0
import static com.google.common.base.Preconditions.checkNotNull; .intercept(FixedValue.reference(checkNotNull(field.getType())))
0
}catch(Exception e){ logger.error(e,e.getCause());
0
import java.awt.geom.Rectangle2D;
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
* <p> * Unlike RExecClient and RCommandClient, it is * *
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/jms/src/java/org/apache/commons/jelly/tags/jms/StopwatchTag.java,v 1.3 2003/10/09 21:21:20 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/09 21:21:20 $ * any, must include the following acknowledgement: * ...
0
import java.util.concurrent.ExecutionException; public void ensureMetricsThreadDoesntLeak() throws ExecutionException, InterruptedException { metricsExecutorService.submit(() -> {}).get();
0
relNode.buildBeamPipeline(planCreator); return planCreator.getPipeline();
0
import com.google.cloud.dataflow.sdk.util.common.worker.PartialGroupByKeyOperation.StructuralByteArray; @Override public Object structuralValue(byte[] value) { return new StructuralByteArray(value); }
0
/* * $HeadURL: $ * $Revision: $ * $Date: $ * * ==================================================================== * * 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 ...
0
* @since 3.0 * @since 3.2
0
import com.twitter.aurora.scheduler.storage.entities.IJobKey; static String getJobDashboardUrl(IJobKey jobKey) { return VIZ_JOB_URL_PREFIX.get() + MesosTaskFactoryImpl.getJobSourceName(jobKey);
0
it = getReversedDependencyManagers(); Iterator it = getReversedDependencyManagers();
0
* Flink operator for executing splittable {@link DoFn DoFns}. Specifically, for executing the * {@code @ProcessElement} method of a splittable {@link DoFn}. protected DoFnRunner<KeyedWorkItem<byte[], KV<InputT, RestrictionT>>, OutputT> createWrappingDoFnRunner( TimerInternalsFactory<byte[]> timerInternals...
1
private Set<String> priorityServices = new LinkedHashSet<>(); private Set<String> excludeServices = new HashSet<>(); List<StageWrapper> result = new ArrayList<>(stageWrappers); Set<String> clusterServices = new LinkedHashSet<>(serviceMap.keySet());
1
HttpRoutePlanner routePlanner = null; ConnectionBackoffStrategy connectionBackoffStrategy = null; BackoffManager backoffManager = null; routePlanner = getRoutePlanner(); connectionBackoffStrategy = getConnectionBackoffStrategy(); backoffManager = getBackoffMan...
0
private static final String NAME_REGEX = "[a-zA-Z][a-zA-Z0-9_ ]*"; private static final Pattern NAME_PATTERN = Pattern.compile(NAME_REGEX); private static final String InvalidTypeNameErrorMessage = "Name must consist of a letter followed by a sequence of [ letter, number, '_' ] character...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger log = LoggerFactory.getLogger(AdminUtil.class); log.error(e.getMessage(),e);
0
/** * Sends an intermediate informational HTTP response through this channel. * * @param response an intermediate (1xx) HTTP response. * @param context the actual execution context. */ void sendInformation(HttpResponse response, HttpContext context) throws HttpException, IOException; ...
0
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
0
package org.apache.accumulo.tserver; import org.apache.accumulo.tserver.FileManager.ScanFileManager;
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
LOG.debug("Changing value for config {} property {} from [{}] to [{}]", configType, propertyName, oldValue, newValue); LOG.debug("setMissingConfigurations: no user configuration found for type = {}. This may be caused by an error in the blueprint configuration.", configType); LO...
1
@Override public Iterator<Node> iterator() { @Override @Override @Override
0
* Note that ConvertUtils really is designed to do string-&gt;object conversions, * and offers very little support for object-&gt;string conversions. The
0
pipeline.apply(Create.empty(VarLongCoder.of()));
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
QuotedPrintableDecoder.decode(encodedData, 0, encodedData.length, out);
0
coder = input.getPCollection().getCoder();
0
/** The default title of the coplet. */ /** The type of this coplet (cocoon, jsr168, wsrp etc.). */ /** Attributes (configuration) of this coplet. */
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
import org.apache.http.util.Args; Args.notNull(requestProducer, "Request producer"); Args.notNull(responseConsumer, "Response consumer"); Args.notNull(localContext, "HTTP context"); Args.notNull(httppocessor, "HTTP processor"); Args.notNull(reuseStrategy, "Connection reuse strate...
0
* Get the view instance label (display name). * * @return the view instance label */ public String getLabel(); /**
0
try (AutoCloseable bundleFactoryCloser = stageBundleFactory; AutoCloseable closable = stageContext) {
0
* $Revision: 1.2 $ * $Date: 2003/12/22 14:41:17 $ * @version $Revision: 1.2 $ $Date: 2003/12/22 14:41:17 $ public class TestPStmtPoolingBasicDataSource extends TestBasicDataSource { super.tearDown(); // nothing to do here
0
import org.apache.hc.client5.http.cache.CacheResponseStatus; import org.apache.hc.client5.http.cache.HttpCacheContext; import org.mockito.Mockito; final HttpCacheContext context = HttpCacheContext.create(); verify(mockExecChain, Mockito.times(2)).proceed( Assert.assertEquals(CacheResponseStatus....
0
@Override public List<String> getErrorList() { return errorList; }
0
* @version $Revision$
1
try (AccumuloClient c = createAccumuloClient()) { try (AccumuloClient c = createAccumuloClient()) { try (AccumuloClient c = createAccumuloClient()) { try (AccumuloClient c = createAccumuloClient()) { try (AccumuloClient c = createAccumuloClient()) { try (AccumuloClient c = createAccumuloClient()...
0
import java.awt.Point; import java.awt.geom.AffineTransform; /** * Returns the <code>AffineTransform</code> currently * applied to the drawing by the UserAgent. */ public AffineTransform getTransform() { return null; } /** * Returns the location on the screen of the * ...
0
if (sandwich.shouldUpdate || sandwich.animation != null && sandwich.animation.isDirty) {
0
import org.apache.hc.core5.io.ShutdownType; this.ioreactor.shutdown(ShutdownType.IMMEDIATE); ioreactor.shutdown(ShutdownType.GRACEFUL); ioreactor.shutdown(ShutdownType.GRACEFUL); ioreactor.shutdown(ShutdownType.GRACEFUL);
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.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(PropertyService.class); * The view context. */ if (LOG.isDebugEnabled()) { LOG.debug("PropertyService getResponse for view: " + context.getInstanceName()); } if (LOG.isDebugEnabl...
0
import static org.junit.Assert.assertTrue; if (repoVersion.getVersion().equals(INSTALLED_VERSION_2)) { assertEquals(RepositoryVersionState.INSTALLED, hostVersionEntity.getState()); } else if (repoVersion.getVersion().equals(INSTALLED_VERSION)) { assertTrue(changedHosts.contains(hostVersionE...
0
Properties p; p = new Properties(); } else { p = System.getProperties(); logDir = new File(p.getProperty("logDir", tmpDir.getAbsolutePath())); snapDir = new File(p.getProperty("snapDir", tmpDir.getAbsolutePath())); logDir.mkdirs...
0
import org.apache.cocoon.forms.validation.ValidationError; * @version $Id: LengthValidationRule.java,v 1.2 2004/03/09 14:58:45 cziegeler Exp $
0
* @deprecated Use {@link org.apache.beam.sdk.testing.TestPipeline#newProvider} for testing {@link * ValueProvider} code.
1
package cz.seznam.euphoria.core.client.dataset.windowing; import java.io.Serializable; /** * A {@link Windowing} strategy associates each input element with a window * thereby grouping input elements into chunks * for further processing in small (micro-)batches. * <p> * Subclasses should implement {@code equals(...
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
&& windowingStrategy.getTrigger() instanceof DefaultTrigger .withTrigger(inputStrategy.getTrigger().getContinuationTrigger());
0
int numRecords = 100; p.apply(GenerateSequence.from(0).to(numRecords)) assertThat(resultSet.getLong(0), equalTo((long) numRecords));
0
import static java.lang.String.format; getDigester().getLogger().debug( format( "[SetPropertiesRule]{%s} Setting property '%s' to '%s'", getDigester().getMatch(), attributeName, ...
0
List<FileItem> fileItems = Util.parseUpload(upload, List<FileItem> fileItems = Util.parseUpload(upload, "\r\n" +
0
* Copyright (c) OSGi Alliance (2002, 2013). All Rights Reserved. * @author $Id: 42f3c6bbf682a69ea3914c737d5b0001694383db $ * <li>Change the active start level to the intermediate start level value.</li> * <li>Start bundles at the intermediate start level whose autostart setting * indicate they must be started. ...
0
Properties props = null; if (m_resourceFilter != null) { props = new Properties(); props.setProperty(Resource.FILTER, m_resourceFilter); }
0
IteratorEnvironment env) { public void next() { public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) {
0
* @version CVS $Id: Target.java,v 1.9 2003/10/31 21:41:59 vgritsenko Exp $ public Target(String type, String root, String sourceURI, String destURI) throws IllegalArgumentException {
0
put("kafka-broker", new HashMap<String, String>() {{ put("listeners", "PLAINTEXT://localhost:6667"); }}); Assert.assertEquals("PLAINTEXTSASL://localhost:6667", helper.replaceVariables("${kafka-broker/listeners|replace(\\bPLAINTEXT\\b,PLAINTEXTSASL)}", configurations)); }
0
import org.apache.zookeeper.ZKTestCase; import org.junit.Assert; public class ClientPortBindTest extends ZKTestCase implements Watcher { @Test Assert.assertTrue("waiting for server up", Assert.assertTrue("count == 0", startSignal.getCount() == 0); Assert.assertTrue("waiting for serve...
0
Copyright 2001,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
public void testPrimitiveInt() { public void testPrimitiveTypeUnMatch1() { public void testPrimitiveTypeUnMatch2() { public void testPrimitiveTypeUnMatch3() { public void testPrimitiveTypeUnMatch4() {
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.hadoop.fs.FileSystem; import org.apache.hadoop.io.Text; // private static final Logger log = Logger.getLogger(SortingRFileOutputFormat.class);
0
package aQute.bnd.service; import aQute.lib.osgi.*; public interface SignerPlugin { /** * Sign the current jar. The alias is the given certificate * keystore. * * @param builder The current builder that contains the jar to sign * @param alias The keystore certificate alias * ...
0