Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
log.warn("exception while scanning tablet {}", (scanSession == null ? "(unknown)" : scanSession.extent), e);
0
import java.io.IOException; options.getElasticsearchTcpPort())); ElasticsearchTestOptions options, ReadOrWrite rOw) throws IOException { }
0
* @version $Id: CountingInputStream.java,v 1.5 2003/11/23 09:20:20 bayard Exp $ this.count += found; this.count += found; this.count++;
0
final SocketAddress address = session.getRemoteAddress();
0
import org.apache.sshd.common.FactoryManagerHolder; import org.apache.sshd.common.PropertyResolver; public abstract class Nio2Service extends AbstractInnerCloseable implements IoService, FactoryManagerHolder { private final FactoryManager manager; private final IoHandler handler; private final AsynchronousC...
0
* This is a simple example of generating an Enveloped XML * Signature using the JSR 105 API. The resulting signature will look // Create a DOM XMLSignatureFactory that will be used to generate the (Transform.ENVELOPED, (TransformParameterSpec) null)), (CanonicalizationMethod.INCLU...
1
import org.apache.felix.webconsole.internal.servlet.OsgiManager; String appRoot = (String) request.getAttribute( OsgiManager.ATTR_APP_ROOT );
0
/** * @deprecated since 2.0; this command shouldn't be used; users should configure debug logging with * their log configuration file instead */ @Deprecated public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) { shellState.printException(new IllegalArgumentExce...
0
import org.apache.beam.sdk.transforms.DoFn; DoFn<InputT, OutputT> fn, // Unlike for OldDoFn, there is no ReduceFnExecutor that is a new DoFn, // and window-exploded processing is achieved within the simple runner DoFnRunners.simpleRunner(
0
import java.util.Set; /** * Fills the given set with the attribute names found in this selector. */ public void fillAttributeSet(Set attrSet) { }
0
import org.junit.BeforeClass; private static KeyPair rsaKeyPair; private static boolean bcInstalled; @BeforeClass public static void setup() throws Exception { } catch (Exception e) { public KeyWrapEncryptionCreationTest() throws Exception { org.apache.xml.security.Init.init(); ...
0
* * Copyright (c) 2001-2003 The Apache Software Foundation. All rights * notice, this list of conditions and the following disclaimer. * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgement: * "This product includes software develope...
0
import com.google.cloud.dataflow.sdk.testing.PAssert; PAssert.that(words).containsInAnyOrder(Arrays.asList("a", "m", "n", "b", "c", "d"));
0
private final int tid; private final int seq;
0
* @version CVS $Id$ return null;
0
throw new SecurityException("Script() objects are not supported"); // acc = new AccessController(acc, acc.getDomainCombiner());
0
* @param methodName * The service method name. * @param isOneway * Is the method oneway. Map<String,ProcessFunction<FakeService,?>> procs = new HashMap<String,ProcessFunction<FakeService,?>>(); Map<String,ProcessFunction<FakeService,?>> procs = new HashMap<String,ProcessFunction<F...
0
* @version $Id$
0
* @version $Revision$
0
import com.thinkaurelius.titan.core.attribute.Cmp; import com.tinkerpop.blueprints.GraphQuery; System.out.println("===================="); GraphQuery graphQuery = graph.query() .has("name", Cmp.EQUAL, "harish"); for (Vertex v : graphQuery.vertices()) { ...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory }
0
import org.apache.ambari.server.utils.SecretReference; // we need to have real passwords, not references if(clusterConfigurations != null) { StringBuilder errorMessage = new StringBuilder(); boolean containsSecretReferences = false; for (Map.Entry<String, Map<String, String>> configEntry : clu...
0
* A lexicoder for signed integers. The encoding sorts Integer.MIN_VALUE first and Integer.MAX_VALUE last. The encoding sorts -2 before -1. It corresponds to * the sort order of Integer. *
0
import org.apache.aurora.scheduler.storage.CronJobStore; private Optional<String> rewriteJob(JobConfigRewrite jobRewrite, CronJobStore.Mutable jobStore) { error = rewriteJob(command.getJobRewrite(), storeProvider.getCronJobStore()); return storeProvider.getCronJobStore().fetchJob(jobKey);
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
return Utils.reserveNamespace(env, namespaceId, tid, false, true, TableOperation.COMPACT_CANCEL) + Utils.reserveTable(env, tableId, tid, false, true, TableOperation.COMPACT_CANCEL); Utils.unreserveTable(env, tableId, tid, false); Utils.unreserveNamespace(env, namespaceId, tid, false);
0
+ "<tr><td>Password:&nbsp;</td><td><input type='password' name='pass'></td><td>" + "<input type='hidden' name='" + CSRF_KEY + "' value='" + csrfToken + "'/><input type='submit' value='Enter'></td></tr></table></form></div>";
0
public class Task {
0
new SplitRecoveryIT().run(new ServerContext());
0
List<ServiceTestInvocation> listInvocations = new ArrayList<>();
1
case RootServiceComponentConfiguration: return resourceProviderFactory.getRootServiceHostComponentConfigurationResourceProvider();
0
/** * Copyright 2016 Seznam a.s. * * 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
.addTransition(State.INSTALL_FAILED, State.INSTALL_FAILED, ServiceComponentHostEventType.HOST_SVCCOMP_OP_IN_PROGRESS, new ServiceComponentHostOpInProgressTransition())
0
byte[] hmacKey = "secret".getBytes("ASCII"); byte[] hmacKey = "secret".getBytes("ASCII"); byte[] hmacKey = "secret".getBytes("ASCII"); byte[] hmacKey = "secret".getBytes("ASCII"); byte[] hmacKey = "secret".getBytes("ASCII"); byte[] hmacKey = "secret".getBytes("ASCII");
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
private static final LogicalEndpoint OUTPUT_LOCATION = LogicalEndpoint.of("777L", "555L"); .setPtransformId(OUTPUT_LOCATION.getPTransformId())) .setPtransformId(OUTPUT_LOCATION.getPTransformId())
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
0
Histogram<String> srqHist = new Histogram<>(); Histogram<String> fsrHist = new Histogram<>();
0
"Block cache sizes %,d" + " and mutation queue size %,d is too large for this JVM" + " configuration %,d", "Maximum tablet server" + " map memory %,d block cache sizes %,d and mutation queue size %,d is" + " too large for this JVM configuration %,d", ...
0
private static final String SPECIAL_CHARS = "\\(\\)<>@,;:'\\\\\\\"\\.\\[\\]"; private static final String WORD = "((" + VALID_CHARS + "|')+|" + QUOTED_USER + ")";
0
int currentPingPort = register.getCurrentPingPort(); // Set ping port for agent hostObject.setCurrentPingPort(currentPingPort);
0
@Override
1
import org.apache.beam.sdk.transforms.display.DisplayData; @Override public void populateDisplayData(DisplayData.Builder builder) { super.populateDisplayData(builder); String fileNamePattern = String.format("%s%s%s", baseOutputFilename, fileNamingTemplate, getFileExtension(extension)); builder....
0
import org.apache.xml.security.test.dom.TestUtils; String systemId = "target/test-classes/org/apache/xml/security/c14n/in/xyz"; Document doc = TestUtils.read(fileIn, systemId, false);
0
* elements. This class can also be used to simply add * {@link org.apache.commons.collections.ResettableIterator ResettableIterator}
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/DelegatingConnection.java,v 1.11 2003/03/06 19:25:34 rwaldhoff Exp $ * $Revision: 1.11 $ * $Date: 2003/03/06 19:25:34 $ import java.sql.CallableStatement; import java.sql.Connection; import ja...
0
public UnmodifiableListIteratorTest(final String testName) { } catch (final IllegalArgumentException ex) {}
0
ZooKeeperInstance(ClientConfiguration config, ZooCacheFactory zcf) { this.clientConf = config;
0
private final String connectionUri;
0
// We output on keys 0-numShards.
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
requestEntity.setClusterId(clusterDAO.findByName("test_cluster1").getClusterId()); stageEntity.setClusterId(clusterDAO.findByName("test_cluster1").getClusterId());
0
@Override @Override @Override
0
private static final String[] EXPECTED_RESULT = new String[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}; System.out.println(resultPath); .apply(CountingInput.upTo(10)) .apply(ParDo.of(new DoFn<Long, String>() { p.run();
0
if (!result) {
0
private static int ATTEMPTS = 0; while (servers.isEmpty()) { for (String tserver : children) { String path = zkRoot + Constants.ZTSERVERS + "/" + tserver; byte[] data = ZooUtil.getLockData(zc, path); if (data != null) { String strData = new String(data, UTF_8); ...
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
private static Map<Resource.Type, String> keyPropertyIds = new HashMap<>(); private static Set<String> propertyIds = new HashSet<>(); Set<Resource> resources = new HashSet<>(); return new HashSet<>(keyPropertyIds.values());
0
* @version $Id$
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private final Logger log = LoggerFactory.getLogger(getClass());
0
private static final String PATH_PATTERN = "/^(/[-\\w:@&?=+,.!/~*'%$_;]*)?$/";
0
import org.apache.cocoon.generation.ServiceableGenerator; * @version CVS $Id: ConfigurationGenerator.java,v 1.5 2003/09/04 09:38:34 cziegeler Exp $ extends ServiceableGenerator {
0
private final BundleContext m_context; private final Logger m_logger; * @param logger public DependencyManager(BundleContext context, Logger logger) { m_logger = logger; return new ServiceImpl(m_context, m_logger); return new ServiceDependency(m_context, m_logger); } ...
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
0
m_serviceReference = (ServiceReference) EasyMock.createNiceMock( ServiceReference.class ); m_serviceInstance = (FakeService) EasyMock.createNiceMock( FakeService.class ); ImmediateComponentManager icm = new ImmediateComponentManager( null, null, metadata );
0
* Autogenerated by Thrift Compiler (0.9.0)
0
* @deprecated Since 1.5. It's now possible to use multiple classes in the {@link Service} annotation.
0
* Autogenerated by Thrift Compiler (0.11.0)
0
for(final List<ContextHandler> handlerList : this.contextMap.values()) { // check whether the servlet context helper is visible to the whiteboard bundle // see chapter 140.2 boolean visible = h.getContextInfo().getServiceId() < 0; // internal ones are always visible ...
0
import java.util.Set; HierarchicalConfiguration<?> config) * {@inheritDoc} This implementation checks for additional reserved * attribute names. Note that in some cases the presence of other attribute * names determine whether a name is reserved or not. For instance, per * default the a...
0
// don't use Guava's ImmutableList.of as output may be null CoderHelpers.toByteArrays(Collections.singleton(output), coder));
0
import org.apache.beam.sdk.annotations.Experimental;
0
public void testIsViewValidationEnabled() throws Exception { final Properties ambariProperties = new Properties(); Configuration configuration = new Configuration(ambariProperties); Assert.assertFalse(configuration.isViewValidationEnabled()); ambariProperties.setProperty(Configuration.VIEWS_VALIDATE,...
0
* {@code false} otherwise
0
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.cocoon.CascadingIOException; import org.apache.cocoon.util.ClassUtils; public class RepositoryClassLoader extends URLClassLoader { protected final Log log = LogFactory.getLog(getClass());
0
import java.lang.reflect.Constructor; Constructor constructor = m_action.getConstructor(targetClass, new Class[]{URL.class, framework.getClass().getClassLoader().loadClass( Felix.class.getName())}); m_action.setAccesssible(construc...
0
String stagingSessionToken = "token"; stagingSessionToken,
0
// Expected /** * Tests Base64.encodeToString() and Base64.decodeFromString() methods. * * @throws Exception */ public void testChunkedEncodeMultipleOf76() throws Exception { byte[] expectedEncode = Base64.encodeBase64(Base64TestData.DECODED, true); // convert to...
0
* Execute the given class against the cluster with the provided arguments and waits for * completion. Returns the exit code of the process. * Execute the given class against the cluster with the provided arguments and waits for * completion. Returns the exit code of the process with the stdout. * Issue a...
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
properties.put("javax.persistence.jdbc.url", configuration.getLocalDatabaseUrl());
0
/* * Copyright (c) 2004 World Wide Web Consortium, * * (Massachusetts Institute of Technology, European Research Consortium for * Informatics and Mathematics, Keio University). All Rights Reserved. This * work is distributed under the W3C(r) Software License [1] in the hope that * it will be useful, but WITHOUT A...
0
URL url = new URL("http://localhost:31000/api/atlas/admin/stack");
0
CURVE_SIZES.put(Integer.valueOf(256), NISTP256); CURVE_SIZES.put(Integer.valueOf(384), NISTP384); CURVE_SIZES.put(Integer.valueOf(521), NISTP521); return CURVE_SIZES.get(Integer.valueOf(fieldSize));
0
PCollection<String> inputWords = p.apply(Create.of(WORDS).withCoder(StringUtf8Coder .of())); PCollection<String> inputWords = p.apply(Create.of(WORDS).withCoder(StringUtf8Coder .of()));
0
import org.apache.beam.model.jobmanagement.v1.ArtifactApi; import org.apache.beam.model.jobmanagement.v1.ArtifactApi.ArtifactMetadata; import org.apache.beam.model.jobmanagement.v1.ArtifactApi.CommitManifestResponse; import org.apache.beam.model.jobmanagement.v1.ArtifactApi.Manifest; import org.apache.beam.model.jobman...
0
* @since 4.0
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterators;
0
import static com.google.common.base.Preconditions.checkNotNull; import com.fasterxml.jackson.annotation.JsonCreator; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; impor...
0
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a>
0
import org.apache.avalon.framework.service.WrapperServiceManager; * @version CVS $Id$ EnvironmentHelper.enterProcessor(processor, new WrapperServiceManager(this.manager), env); EnvironmentHelper.enterProcessor(processor, new WrapperServiceManager(this.manager), env);
0
private static SecurityPermission ZOOWRITER_PERMISSION = new SecurityPermission( "zookeeperWriterPermission"); public void recursiveDelete(String zPath, NodeMissingPolicy policy) throws KeeperException, InterruptedException { public boolean putPersistentData(String zPath, byte[] data, NodeExistsPolicy...
0
protected CollectionCoder(Coder<T> elemCoder) {
0
* @version CVS $Id: ContinuationsManagerImpl.java,v 1.3 2003/03/16 17:49:11 vgritsenko Exp $
0
.withTableDescription(null) null, CreateDisposition.CREATE_IF_NEEDED, WriteDisposition.WRITE_EMPTY, null); null, null); null, CreateDisposition.CREATE_IF_NEEDED, WriteDisposition.WRITE_EMPTY, null); schema, CreateDisposition.CREATE_IF_NEEDED, WriteDisposition.WRITE_EMPTY,...
0
@Override public byte[] decode(final byte[] pArray) { if (pArray == null || pArray.length == 0) { return pArray; } return ApacheModifiedMiGBase64.decode(pArray); } @Override public byte[] encode(final byte[] pArray) { if (pArray == null || pArray.length =...
0
public class ReferenceIdentityMap<K, V> extends AbstractReferenceMap<K, V> implements Serializable { super(ReferenceStrength.HARD, ReferenceStrength.SOFT, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, false); public ReferenceIdentityMap(ReferenceStrength keyType, ReferenceStrength valueType) { ...
0
private final int tid; private final int seq;
0
private static final long serialVersionUID = 270153155050617200L;
0
private final Charset charset; * @param charset the Charset to be used for reading the file public Tailer(final File file, final Charset charset, final TailerListener listener, final long delayMillis, this.charset = charset; listener.handle(new String(lineBuf.toByteArray...
0