Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
"BR1800360305000010009795493C1", "SI56263300012039086", "UA213223130000026007233566001", "ST68000200010192194210112", // ditto "SV62CENR0000000000000700025", // ditto
0
import org.apache.ambari.server.state.fsm.InvalidStateTransitionException; } catch (InvalidStateTransitionException ex) { } catch (InvalidStateTransitionException ex) { throws InvalidStateTransitionException, AmbariException {
0
private volatile boolean isShutDown; private volatile boolean isShutDown = false; this.interrupt(); // remove the next reference and process it Reference ref = REFERENCE_QUEUE.remove();
0
public void testParseUTF8Ampersand1String() throws Exception { public void testParseUTF8Ampersand2String() throws Exception { testParseUTF8String('&'); } @Test public void testParseUTF8SemicolonString() throws Exception { testParseUTF8String(';'); } private void testParseUT...
0
package org.apache.aurora.scheduler.configuration.executor;
0
/* * 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 appl...
0
import java.lang.reflect.Method; import java.util.Iterator; import org.apache.felix.framework.Felix; public static Properties toProperties(Map map) { Properties result = new Properties(); for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) { Entry entry = (Entry)...
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
0
* @version $Id$
0
import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.coders.KvCoder; import org.apache.beam.sdk.values.KV; * {@link org.apache.beam.sdk.coders.KvCoder}. We have a special comparator
0
if (sanitizedConfiguration.isCron()) {
0
/* returns one of two primitives; SplittableParDos and ParDos with state and timers are replaced appropriately by the override factory. */
0
expect(mockFilter.isAllowed(jsonObj, inputMarker, null)).andReturn(true).anyTimes(); manager.setLogFeederProps(new LogFeederProps()); expect(mockFilter.isAllowed(jsonString, inputMarker, null)).andReturn(true).anyTimes(); manager.setLogFeederProps(new LogFeederProps());
0
* @deprecated since 1.4, replaced by * {@link org.apache.accumulo.core.iterators.user.SummingCombiner} with
0
public class ShortArrayConverter extends AbstractArrayConverter {
0
* Copyright (C) 2015 Google Inc.
0
import com.google.cloud.dataflow.sdk.testing.CoderProperties;
0
* {@link AsyncEntityConsumer} implementation that acts as a compatibility * layer for classic {@link InputStream} based interfaces. Blocking input * processing is executed through an {@link Executor}. * * @param <T> entity representation. * /** * Processes entity data from the given stream. * *...
0
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; @SuppressFBWarnings("unused") @SuppressFBWarnings("DM_EXIT") // we deliberately System.exit under memory private void shutDownDueToGcThrashing(int thrashingCount) { File heapDumpFile = tryToDumpHeap(); LOG.error( "Shutting down JVM after {...
0
private boolean supportKeyTabBrowserLogin = false; if (configuration.getString("atlas.authentication.method.kerberos.name.rules") != null) { if (configuration.getString("atlas.authentication.method.kerberos.keytab") != null) { if (configuration.getString("atlas.authentication.method.kerberos...
0
@Override
0
* @version $Revision$ $Date$
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 ...
0
package aQute.bnd.annotation; import java.lang.annotation.*; /** * This annotation can be applied to interface where an implementation should be * treated as a use policy, not an implementation policy. Many package have * interfaces that are very stable and can be maintained backward compatible for * implementers...
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 static com.google.common.base.Preconditions.checkArgument; import org.apache.beam.sdk.util.SerializableUtils; if (schema.getUUID() != null) { checkArgument(schema.getUUID().equals(id)); } else { schema = SerializableUtils.clone(schema); schema.setUUID(id); }
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 u...
0
package org.apache.commons.vfs.operations.vcs; import org.apache.commons.vfs.operations.FileOperation; /** * todo: add class description here * * @author Siarhei Baidun * @since 0.1 */ public interface VcsDelete extends FileOperation { /** * * @param force */ void setForce(final boolean force); }
0
p.moveTo(0, csize.height/24); p.lineTo(csize.width, csize.height/24); Shape s = JSVGCanvas.this.getAreaOfInterest(p); g2d.setXORMode(Color.white);
0
checkRawError(RAWMGS1, bomEnc, otherEnc, null, defaultEnc); checkRawError(RAWMGS1, bomEnc, otherEnc, bomEnc, defaultEnc); checkRawError(RAWMGS1, "UTF-16BE", "UTF-16", null, null); checkRawError(RAWMGS1, "UTF-16LE", "UTF-16", null, null);
0
10 * 1024 * 1024, null, -1);
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 org.apache.accumulo.core.client.AccumuloClient; AccumuloClient conn = getAccumuloClient(); public void testBatchWriterTimeout(AccumuloClient conn, String tableName) throws Exception { public void testBatchScannerTimeout(AccumuloClient conn, String tableName) throws Exception { getAccumuloClient().tab...
0
import java.io.FileOutputStream; import org.apache.commons.io.IOUtils; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; return downloadFileFromHdfs(conf, copy.getSourcePath(), copy.getDestPath(), /** * A helper function to copy th...
0
import com.google.cloud.dataflow.sdk.util.common.worker.StateSampler; import java.util.concurrent.atomic.AtomicInteger; private final UserCodeTimeTracker userCodeTimeTracker = new UserCodeTimeTracker(); private final AtomicInteger nextStateSamplerId = new AtomicInteger(); CounterSet counters = new CounterS...
0
import java.io.File; import org.apache.cocoon.environment.ObjectModelHelper; import org.apache.cocoon.processing.ProcessInfoProvider; import org.springframework.web.context.support.WebApplicationContextUtils; * String sitemapLocation) { buffer.append(" <cocoon:...
0
import org.apache.accumulo.core.client.ClientConfiguration; ClientContext context = new ClientContext(instance, credentials, new ClientConfiguration()); TableOperationsImpl topsImpl = new TableOperationsImpl(context); topsImpl.createMetadataScanner(tableName, range);
1
public static final Role YARN_CLIENT = valueOf("YARN_CLIENT");
0
* <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> import com.google.gson.Gson; import org.apache.hadoop.metadata.repository.RepositoryException; import javax.inject.Inject; import java.io.IOException; import java.io.InputStreamReader; import java.util.List; @Guice(modules = {BridgeModule.class}) @Injec...
0
import java.nio.charset.StandardCharsets; return new Value(String.format("r%09d", v).getBytes(StandardCharsets.UTF_8)); Value value = new Value((i + "_" + j + "_" + k + "_" + l + "_" + ts + "_" + true + "_" + run).getBytes(StandardCharsets.UTF_8)); value = new Value((i + "_" + j + "_" + ...
0
import java.util.Collections; if (cluster.addDesiredConfig(authName, Collections.singleton(baseConfig)) != null) {
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...
0
import org.apache.accumulo.core.security.thrift.Credentials; import org.apache.accumulo.trace.instrument.Tracer; private Credentials credentials; public InstanceOperationsImpl(Instance instance, Credentials credentials) { /* (non-Javadoc) * @see org.apache.accumulo.core.client.admin.InstanceOperations#setPrope...
0
* @version $Revision$
0
import java.util.Objects; @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof WritableCoder)) { return false; } WritableCoder<?> that = (WritableCoder<?>) other; return Objects.equals(this.type, that.type); } @Override ...
0
* {@inheritDoc} * * @param attributeName the attribute name has to be mapped * @param propertyName the target property name * {@inheritDoc}
0
@Override public void cleanup() { }
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 u...
0
import org.apache.beam.sdk.values.WindowingStrategy;
0
public int compare(final String o1, final String o2) {
0
* <li>{@link org.apache.http.params.CoreConnectionPNames#MAX_HEADER_COUNT}</li> * <li>{@link org.apache.http.params.CoreConnectionPNames#MIN_CHUNK_LIMIT}</li>
0
* public void processElement( * @Element CoCombineResult e, OutputReceiver<T> r) throws Exception { * r.output(...some T...);
0
@Override
1
import org.apache.beam.sdk.transforms.SerializableFunction; private final SerializableFunction<byte[], TestStream<T>> testStreamDecoder; public TestStreamSource( SerializableFunction<byte[], TestStream<T>> testStreamDecoder, byte[] payload) { this.testStreamDecoder = testStreamDecoder; TestStream<T> t...
0
int nb = manager.getIntProperty(FactoryManager.NIO_WORKERS, FactoryManager.DEFAULT_NIO_WORKERS);
0
public ArrayConverter(final Class<?> defaultType, final Converter elementConverter) { public ArrayConverter(final Class<?> defaultType, final Converter elementConverter, final int defaultSize) { public void setDelimiter(final char delimiter) { public void setAllowedChars(final char[] allowedChars) { ...
0
private static final long serialVersionUID = 1929664840821745262L;
0
import java.io.EOFException; import java.net.SocketTimeoutException; import org.apache.sshd.common.channel.WindowClosedException; @Test // see SSHD-621 public void testServerDoesNotSupportSftp() throws Exception { sshd.setSubsystemFactories(null); try (SshClient client = setupTestClient()) { ...
0
@Override @Override
0
boolean success =
1
* @since 1.1 }
0
static final long SECOND = 1000; static final long RESPONSE_TIME_MAX_ERR = 3 * SECOND; static final long MINUTE = 60 * SECOND; static final long LAST_CONTEXT_MAX_ERR = 3 * MINUTE; double avgResponseTime = 0.; int count = 0; count++; avgResponseTime += status.responseTime; avgResponseTim...
0
@SuppressWarnings("all") public class RecoveryStatus implements org.apache.thrift.TBase<RecoveryStatus, RecoveryStatus._Fields>, java.io.Serializable, Cloneable {
0
import net.jcip.annotations.ThreadSafe; @ThreadSafe // no public methods
0
Set<Cluster> clustersSetFromRequests = new HashSet<>(); clustersSetFromRequests.add(cluster); } // Create cluster widgets and layouts for (Cluster cluster : clustersSetFromRequests) { getManagementController().initializeWidgetsAndLayouts(cluster, null);
0
LOG.debug("Target upgrade catalog. {}", targetUpgradeCatalog);
1
* @deprecated Use {@link javax.servlet.http.Cookie} instead.
0
* Copyright (C) 2015 Google Inc.
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v 1.12 2002/01/27 04:12:42 craigmcc Exp $ * $Revision: 1.12 $ * $Date: 2002/01/27 04:12:42 $ * @version $Revision: 1.12 $ $Date: 2002/01/27 04:12:42 $ if ...
0
PROVISIONER, UPDATE_COORDINATOR,
0
import org.apache.commons.lang.StringUtils; * @version CVS $Id: SimpleLuceneXMLIndexerImpl.java,v 1.8 2004/03/28 14:28:04 antonio Exp $ String params[] = StringUtils.split(pattern, ", "); for (int index = 0; index < params.length; index++) { String tokenized_pattern ...
0
package org.apache.accumulo.examples.wikisearch.query; import org.apache.accumulo.examples.wikisearch.logic.ContentLogic; import org.apache.accumulo.examples.wikisearch.logic.QueryLogic; import org.apache.accumulo.examples.wikisearch.sample.Results; private static final String XSL = "/accumulo-wikisearch/style.xsl";
0
import org.apache.hc.core5.annotation.Contract; import org.apache.hc.core5.annotation.ThreadingBehavior; @Contract(threading = ThreadingBehavior.IMMUTABLE)
0
* scale &amp; position properly. Sets x and y attributes on the element
0
import org.apache.cocoon.portal.aspect.Aspectalizable; * @version CVS $Id: Layout.java,v 1.2 2003/05/07 20:24:02 cziegeler Exp $ public interface Layout extends Parameters, Aspectalizable {
0
this.aggregators = new ColumnToClassMapping<>(options, org.apache.accumulo.core.iterators.aggregation.Aggregator.class, context);
0
import org.apache.http.impl.io.IdentityInputStream; import org.apache.http.mockup.SessionInputBufferMockup; * Simple tests for {@link IdentityInputStream}. public class TestIdentitynputStream extends TestCase { public TestIdentitynputStream(String testName) { String[] testCaseName = { TestIdentitynputStrea...
0
private static long maxLookupTime = 0L; if (maxLookupTime < duration) { maxLookupTime = duration; if (maxLookupTime < duration) { maxLookupTime = duration;
0
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a>
0
* {@link com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn}
0
* @since 5.2
0
private static org.slf4j.Logger LOG = LOG.debug("signatureMethodURI = " + sa.getAlgorithmURI()); LOG.debug("jceSigAlgorithm = " + sa.getJCEAlgorithmString()); LOG.debug("jceSigProvider = " + sa.getJCEProviderName()); LOG.debug("PublicKey = " + pk); ...
0
* // loop while there is data in the buffer
0
import org.apache.sshd.util.BaseTestSupport; public class SimpleGeneratorHostKeyProviderTest extends BaseTestSupport {
0
.pruningClassName("com.google.cloud.dataflow.sdk.util.common.ReflectHelpers") .pruningClassName("com.google.cloud.dataflow.sdk.TestUtils") .pruningClassName("com.google.cloud.dataflow.sdk.WindowMatchers");
0
* @version $Revision$ $Date$
0
shellState.getReader().printString(String.format("%-15s => %10s%n", tableName, tableIds.get(tableName)));
0
import org.apache.ambari.logsearch.query.model.AnyGraphSearchCriteria; import org.apache.ambari.logsearch.query.model.AuditBarGraphSearchCriteria; import org.apache.ambari.logsearch.query.model.CommonSearchCriteria; import org.apache.ambari.logsearch.query.model.FieldAuditBarGraphSearchCriteria; import org.apache.ambar...
0
void reset();
0
import com.google.api.services.bigquery.model.TableRow; class TagWithUniqueIds extends DoFn<KV<ShardedKey<String>, TableRow>, KV<ShardedKey<String>, TableRowInfo>> { context.output(KV.of(context.element().getKey(), new TableRowInfo(context.element().getValue(), uniqueId)));
0
import org.apache.hc.core5.annotation.ThreadSafe; import org.apache.hc.core5.concurrent.Cancellable; import org.apache.hc.core5.http.io.HttpClientConnection;
0
* @param engine The CSS engine.
1
final HttpConnectionFactory<HttpRoute, ManagedHttpClientConnection> connFactory) { final HttpConnectionFactory<HttpRoute, ManagedHttpClientConnection> connFactory) { final HttpConnectionFactory<HttpRoute, ManagedHttpClientConnection> connFactory, final HttpConnectionFacto...
0
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.math; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression; import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlPrimitive;
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
public static final String FULLTEXT_INDEX = "fulltext_index";
0
import org.apache.atlas.web.dao.UserDao; import org.apache.atlas.web.model.User; import javax.inject.Inject; private final UserDao userDao; @Inject public UserService(UserDao userDao) { this.userDao = userDao; }
0
{ } { } { } { } { } { } { } { } { } { } { } { } { ...
0
public abstract class SimpleFunction<InputT, OutputT> extends InferableFunction<InputT, OutputT> implements SerializableFunction<InputT, OutputT> {
0