Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting;
0
import java.io.IOException; public void verify() throws IOException { public void verify(long timeout, TimeUnit unit) throws IOException { @Override // TODO for JDK-8 make this a default method public void verify(long timeoutMillis) throws IOException { Boolean result = verifyResult(Boolean.cl...
0
@Override @Override
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Lists; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Maps;
0
= bridgeContext.getViewCSS().getComputedStyle(filterElement, null); Color floodColor = CSSUtilities.convertFloodColorToPaint(decl); = bridgeContext.getViewCSS().getComputedStyle(filterElement, null); = new DefaultUnitProcessorContext(bridgeContext, cssDecl); St...
0
@Command(scope = "osgi", name = "install", description = "Installs one or more bundles") @Argument(index = 0, name = "urls", description = "Bundle URLs separated by whitespaces", required = true, multiValued = true) @Option(name = "-s", aliases={"--start"}, description="Starts the bundles after installation", r...
0
/** * Simple word count streaming test. */ options.setTimeout(TEST_TIMEOUT_MSEC); // run for one interval
0
Assert.assertEquals(41.088, val, 0.001); Assert.assertEquals(41.088, val1, 0.001);
0
import org.apache.batik.css.engine.CSSStylableElement; import org.apache.batik.css.engine.StyleMap; import org.apache.batik.css.engine.value.URIValue; import org.w3c.dom.css.CSSValue; result.append(new URIValue(lu.getStringValue(), resolveURI(engine.getCSSBaseU...
0
/* ==================================================================== * Copyright (c) 2001-2004 The Apache Software Foundation. All rights * @version $Revision: 1.11 $ $Date: 2004/01/14 21:34:25 $
0
import org.apache.accumulo.core.security.CredentialHelper; final AtomicBoolean scanning = new AtomicBoolean(false); MetaDataTableScanner scanner = new MetaDataTableScanner(instance, CredentialHelper.create(opts.principal, opts.getToken(), opts.instance), new Range());
0
PCollection<KV<K, CoGbkResult>> result = groupedTable.apply("ConstructCoGbkResultFn", ParDo.of(new ConstructCoGbkResultFn<K>(tupleTags))); return pCollection.apply("MakeUnionTable" + index, ParDo.of(new ConstructUnionTableFn<K, V>(index))).setCoder(unionTableEncoder);
0
import org.apache.aurora.gen.apiConstants; import org.apache.aurora.scheduler.configuration.executor.ExecutorConfig; import org.apache.aurora.scheduler.configuration.executor.ExecutorSettings; import org.apache.mesos.Protos; import org.apache.mesos.Protos.ExecutorID; import org.apache.mesos.Protos.ExecutorInfo; publi...
0
import org.apache.commons.jelly.JellyTagException; public void doTag(XMLOutput output) throws JellyTagException {
0
/** Field info */ /** Field version */ /** Field PROVIDER_NAME */
0
* The {@code namespaceURI} string constant. */ private static final String NAMESPACE_URI = "namespaceURI"; /** * Extract the {@code namespaceURI()} from annotation. * * @param annotation The annotation has to be introspected * @return The annotation {@code namespaceURI()} */ ...
0
}catch (KeeperException.InvalidACLException e) { System.err.println("Acl is not valid : "+e.getPath()); }catch (KeeperException.NoAuthException e) { System.err.println("Authentication is not valid : "+e.getPath()); }catch (KeeperException.BadArgumentsException e) { ...
0
import java.util.Map; import java.util.concurrent.TimeUnit; import org.apache.sshd.common.session.SessionHeartbeatController.HeartbeatType; public static void setupServerHeartbeat( SshServer sshd, Map<String, ?> options, PrintStream stdout) { long interval = PropertyResolverUtils.getLongProperty...
0
if (count <= 0) ServiceHolder holder = usage.m_svcHolderRef.get(); if (svc != null) { if (usage.m_svcHolderRef.compareAndSet(holder, null)) { holder.m_service = null; ...
0
import org.apache.http.client.utils.DateUtils;
0
// TODO: Ignore any NoClassDefFoundError errors as a workaround. (BEAM-2231)
0
import java.util.Collections; import java.util.Set; import org.apache.http.TrailerSupplier; @Override public TrailerSupplier getTrailers() { return null; } @Override public Set<String> getTrailerNames() { return Collections.emptySet(); }
0
package org.apache.felix.dependencymanager.test2.integration.api; import java.util.Hashtable; import org.apache.felix.dependencymanager.test2.components.Ensure; import org.apache.felix.dependencymanager.test2.integration.common.TestBase; import org.ops4j.pax.exam.junit.PaxExam; @RunWith(PaxExam.class) public class Shar...
0
import static com.google.common.base.Preconditions.checkArgument; checkArgument(!checked, "check() method should only be called once");
0
* * <p>The above command executes the example locally using direct runner. Running the pipeline in * other runners require additional setup and are out of scope of the SQL examples. Please consult * Beam documentation on how to run pipelines. * * <li>{@link Customer} represents a customer * <li>{@link Order}...
0
// running in PDE mode and the dependency is provided means, that it is provided by // the target platform. This case is covered by adding the plugin container else if (inPdeMode && dep.isProvided() ) { return; } ...
0
public AbstractQueryRunner(final boolean pmdKnownBroken) { public AbstractQueryRunner(final DataSource ds) { public AbstractQueryRunner(final DataSource ds, final boolean pmdKnownBroken) { public AbstractQueryRunner(final DataSource ds, final boolean pmdKnownBroken, final StatementConfiguration stmtConf...
0
ServiceRegistration<S> serviceRegistration = registrationManager.getServiceRegistration(); if ( serviceRegistration != null ) { getActivator().enterCreate( serviceRegistration.getReference() ); try { ...
0
private final List<KinesisRecord> records; private final String nextShardIterator; public GetKinesisRecordsResult(List<UserRecord> records, String nextShardIterator, final String streamName, final String shardId) { this.records = transform(records, new Function<UserRecord, KinesisRecord>() { @...
0
import java.util.HashMap; import org.apache.jute.BinaryInputArchive; import org.apache.jute.InputArchive; public QuorumServer(long id, InetSocketAddress addr, InetSocketAddress electionAddr) { this.electionAddr = electionAddr; public QuorumServer(long id, InetSocketAddress a...
0
ClientConnectionRequest connRequest = clcm.requestConnection(route, null);
0
* * @since 1.0.0 this.log("Block dispatcher was initialized successfully."); // the superclazz is null if class is instanceof Object, is // an interface, a primitive type or void
0
public MetricsFactory() { metricsSystem = MetricsSystemHelper.getInstance();
0
final XMLPropertyListConfiguration c = new XMLPropertyListConfiguration(); catch (final ConfigurationException cex)
0
this.keepAlive.set(this.connReuseStrategy.keepAlive(request, response, this.localContext));
0
* Holds sessions private String password; public Connection(String host, int port, Map<String, String> authParams, String username, String password) throws HiveClientException, HiveAuthRequiredException { this.password = password; public synchronized void openConnection() throws HiveClientException, Hi...
0
package org.apache.bcel.generic; super(org.apache.bcel.Const.LSHR);
1
action.setActivation(MutableBeanMetadata.ACTIVATION_LAZY);
0
package org.apache.felix.service.threadio;
0
cc.addConfigurationListener(new TestEventListenerImpl()); /** * Tests whether add property events are triggered. */ public void testEventAddProperty() { TestEventListenerImpl l = new TestEventListenerImpl(); cc.addConfigurationListener(l); cc.addProperty("test", "...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/TestTypeValidator.java,v 1.4 2003/08/23 02:24:07 rleland Exp $ * $Revision: 1.4 $ * $Date: 2003/08/23 02:24:07 $ * Copyright (c) 2001-2003 The Apache Software Foundation. All right...
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 m...
0
ExportTypeProcessor(AtlasTypeRegistry typeRegistry) {
0
import org.apache.cocoon.webapps.authentication.user.UserHandler; * @version CVS $Id: NewLoggedInAction.java,v 1.2 2003/05/01 09:49:14 cziegeler Exp $ UserHandler handler = authManager.isAuthenticated(handlerName); if ( handler != null ) { map = handler.getContext().getContextIn...
0
import org.apache.aurora.scheduler.maintenance.MaintenanceController;
0
ProtocolVersion version); RequestLine reqline); StatusLine statline); Header header);
0
Registry<String> reg = RegistryBuilder.<String>create().register("Stuff", "Stuff").build();
0
import java.nio.charset.StandardCharsets; out.write((s + "\n").getBytes(StandardCharsets.UTF_8));
0
package org.apache.commons.digester3.annotations.addressbook; import org.apache.commons.digester3.annotations.rules.BeanPropertySetter; import org.apache.commons.digester3.annotations.rules.ObjectCreate;
1
super(session, buffersize, fragmentSizeHint, allocator, chardecoder, charencoder, constraints, incomingContentStrategy, outgoingContentStrategy);
0
import org.apache.commons.configuration.io.FileSystem;
0
import org.apache.bcel.generic.ASTORE; import org.apache.bcel.generic.ATHROW; import org.apache.bcel.generic.BranchInstruction; import org.apache.bcel.generic.CodeExceptionGen; import org.apache.bcel.generic.GotoInstruction; import org.apache.bcel.generic.IndexedInstruction; import org.apache.bcel.generic.Instruction; ...
0
public Library getEnclosingLibrary() { return parent.getEnclosingLibrary(); public void setEnclosingLibrary(Library lib) {
0
if (migration.oldServer.equals(svr)) count++;
1
* Removes a user-defined attribute with the specified key. * * @param key The key of the attribute we want to remove * @return The old value of the attribute - <tt>null</tt> if not found. */ Object removeAttribute(Object 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
import java.nio.charset.StandardCharsets; new KeySelectors.SecretKeySelector("secret".getBytes(StandardCharsets.US_ASCII))); new KeySelectors.SecretKeySelector("secret".getBytes(StandardCharsets.US_ASCII))); new KeySelectors.SecretKeySelector("secret".getBytes(StandardCharset...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/URLConverter.java,v 1.3 2003/10/09 20:43:16 rdonkin Exp $ * $Revision: 1.3 $ * $Date: 2003/10/09 20:43:16 $ * Alternately, this acknowledgement may appear in the softw...
0
import org.apache.aurora.scheduler.async.preemptor.PendingTaskProcessor; import org.openjdk.jmh.annotations.Param; protected PendingTaskProcessor pendingTaskProcessor; pendingTaskProcessor = injector.getInstance(PendingTaskProcessor.class); saveTasks(settings.getTasks()); boolean result = false; ...
0
void submit(OutgoingMessage messageHead, boolean endStream, final FlushMode flushMode) throws HttpException, IOException;
0
/* * Copyright (C) 2015 Google Inc. * * 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 ...
0
long desiredSizeBytes = (bundleSize > 0) ? bundleSize : DEFAULT_BUNDLE_SIZE; if (bundleSize == 0) { List<? extends Source<T>> partitionedSources = source.split(desiredSizeBytes, options.get());
0
String s = svgSvgElement.getAttributeNS(null, SVG_WIDTH_ATTRIBUTE); String s = svgSvgElement.getAttributeNS(null, SVG_HEIGHT_ATTRIBUTE);
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
StreamRecord<WindowedValue<KV<Integer, Integer>>> windowedValueStreamRecord) {
0
view.getWindowMappingFn().getSideInputWindow(mainInputWindow);
0
package cz.seznam.euphoria.executor.local; /** Default strategy used in local executor. */
0
package org.apache.bcel.classfile; import org.apache.bcel.Const;
1
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument; import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
0
/* * $Header: /cvshome/build/org.osgi.service.prefs/src/org/osgi/service/prefs/PreferencesService.java,v 1.10 2006/06/16 16:31:30 hargrave Exp $ * * Copyright (c) OSGi Alliance (2001, 2006). All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
0
import org.apache.batik.util.SVGTypes; // ExtendedTraitAccess /////////////////////////////////////////////////// /** * Returns the type of the given attribute. */ public int getAttributeType(String ns, String ln) { if (ns == null) { if (ln.equals(SVG_CLIP_PATH_UNITS_ATTRIBU...
1
* Copyright (c) OSGi Alliance (2002, 2008). All Rights Reserved. * * @version $Revision: 5673 $
0
import java.util.HashSet; private final Set<String> entityAttributes; this.entityAttributes = new HashSet<>(); public Set<String> getEntityAttributes() { return entityAttributes; }
0
import com.google.common.collect.ImmutableMap; public BeamSqlPrimitive evaluate( Row inputRow, BoundedWindow window, ImmutableMap<Integer, Object> correlateEnv) { ReadableInstant date = opValueEvaluated(0, inputRow, window, correlateEnv);
0
import org.apache.aurora.scheduler.state.StateChangeResult; .andReturn(StateChangeResult.SUCCESS);
0
* @version $Revision$
1
import org.apache.batik.anim.values.AnimatableRectValue; import org.apache.batik.anim.values.AnimatableValue; import org.apache.batik.dom.anim.AnimationTarget; * Updates the animated value with the gien {@link AnimatableValue}. protected void updateAnimatedValue(AnimatableValue val) { if (val == null) ...
0
* ProtocolCommandListeners and the firing of ProtocolCommandEvents.
0
import static com.google.common.base.MoreObjects.toStringHelper; import java.util.Objects; * Return the field coder for {@code index}. */ public Coder getFieldCoder(int index){ return fieldCoders.get(index); } /** public boolean equals(Object o) { if (this == o) { return true; } i...
0
final ArrayList<FileObject> files = new ArrayList<FileObject>();
0
public static void main(String[] args)
0
/** * Performs a rollback on the <code>Connection</code> then closes it, * avoid closing if null. * @since DbUtils 1.1 */ public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); ...
0
w = ECCurves.octetStringToEcPoint(octets);
0
public Converting keysIgnoreCase() { del.keysIgnoreCase(); return this; } @Override
0
if (dbAccessor.tableHasData(tableName) && dbAccessor.tableHasColumn(tableName, hostNameColumnName)) {
0
new DistributedWorkQueue(ZooUtil.getRoot(master.getInstance()) + Constants.ZRECOVERY).addWork(file, source.getBytes());
0
package org.apache.atlas.model.notification; import org.codehaus.jackson.annotate.JsonAutoDetect; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.map.annotate.JsonSerialize; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import j...
1
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class KeyValueAndPeek implements org.apache.thrift.TBase<KeyValueAndPeek, KeyValueAndPeek._Fields>, java.io.Serializable, Cloneable, Comparable<KeyValueAndPeek> { public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
import java.util.ArrayList; Collection<ExecutorUpdate> updates = new ArrayList<>(); // Pull all available updates off of the queue before adding additional work. This ensures // both loops terminate. ExecutorUpdate pendingUpdate = allUpdates.poll(); while (pendingUpdate != null) ...
0
HttpAsyncRequestExecutionHandler<T> handler = new BasicAsyncRequestExecutionHandler<T>( HttpAsyncRequestExecutionHandler<T> handler = new BasicAsyncRequestExecutionHandler<T>(
0
private Configuration[] blockConfs; this.blockConfs = wiring.getChildren("block"); for (int i = 0; i < this.blockConfs.length; i++) { Configuration block = this.blockConfs[i]; for (int i = 0; i < this.blockConfs.length; i++) { Configuration blockConf = this.blockConfs...
0
import org.w3c.dom.Node; import java.util.Arrays; result = IdResolver.getElementBySearching(doc, id); IdResolver.registerElementById(result, id); static java.util.List names; static { String namespaces[]={ Constants.SignatureSpecNS, EncryptionConstants.EncryptionSpecNS, "http://s...
0
public static <E> PredicatedSortedBag<E> predicatedSortedBag(final SortedBag<E> bag, final Predicate<? super E> predicate) { protected PredicatedSortedBag(final SortedBag<E> bag, final Predicate<? super E> predicate) {
0
public static final String actionVerb = "Running"; @Override public StageWrapper.Type getStageWrapperType() { return StageWrapper.Type.SERVICE_CHECK; } @Override public String getActionVerb() { return actionVerb; }
0
import org.apache.hc.client5.http.classic.methods.HttpGet; import org.apache.hc.client5.http.impl.classic.CloseableHttpClient; import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse; import org.apache.hc.client5.http.impl.classic.HttpClients;
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
/* ==================================================================== * @version $Revision: 1.10 $ $Date: 2004/01/14 21:43:10 $
0
Map<String, Map<String, Map<String, String>>> configurationAttributes = new TreeMap<String, Map<String, Map<String, String>>>(); execCmd.setConfigurationAttributes(configurationAttributes); Map<String, Map<String, Map<String, String>>> configurationAttributes = new TreeMap<String, Map<...
0
getInstanceMethod = classRef.getMethod("getInstance", new Class<?>[0]); new Class<?>[0]);
0
import org.apache.accumulo.core.cli.ClientOnRequiredTable; import com.beust.jcommander.Parameter; static class Opts extends ClientOnRequiredTable { @Parameter(names="--output", description="output directory", required=true) String output; @Parameter(names="--columns", description="columns to extract, ...
0