Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import java.io.IOException; this.log(LogService.LOG_ERROR, "cannot start rmi connector", e); this.log(LogService.LOG_ERROR, "cannot stop rmi connector", e); try { // The first call to stop() will close any open connections, but will // throw an exception if there were open co...
0
c14n.setWriter(os);
0
import org.apache.mesos.v1.Protos.ExecutorID;
0
AtlasClient.REFERENCEABLE_ATTRIBUTE_NAME, tableEntity.set(HiveDataModelGenerator.NAME, oldTable.getTableName().toLowerCase()); tableEntity.set(AtlasClient.REFERENCEABLE_ATTRIBUTE_NAME, oldTableQFName); newEntity.set(HiveDataModelGenerator.NAME, newTable.getTableName().toLowerCas...
0
Copyright (C) 1999-2004 The Apache Software Foundation. All rights reserved. * * replace-properties no|false,anything else * xpath: xpath expression for context node * unless-path: xpath expression that must return empty node set * unless: (deprecated) xpath expression that must return empty node set * if-prop:...
0
public static final Multiplicity COLLECTION = new Multiplicity(0, Integer.MAX_VALUE, false); public static final Multiplicity SET = new Multiplicity(0, Integer.MAX_VALUE, true);
1
referenceType, xmlSecStartElement); processElementPath(internalSignatureReferenceVerifier.getStartElementPath(), inputProcessorChain, internalSignatureReferenceVerifier.getStartElement(), referenceType); Referenc...
0
if (ex.getCause() != null && ex.getCause() instanceof BadLocationStateException) { Map<Key,Value> future = new HashMap<Key,Value>(); Map<Key,Value> assigned = new HashMap<Key,Value>(); KeyExtent extent = new KeyExtent(row, new Value(new byte[] {0})); Iterator<Entry...
0
sb.append("<ingestMB>").append(summary.ingestByteRate / 1000000.0).append("</ingestMB>\n"); sb.append("<queryMB>").append(summary.queryByteRate / 1000000.0).append("</queryMB>\n"); sb.append("<scans>").append(summary.scans.running + summary.scans.queued).append("</scans>"); sb.append("<scansessi...
0
return false;
0
Frame.setThis(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
assertEquals(11, resp.getUpgradePacks().size());
0
new StreamingModeExecutionStateRegistry(null);
0
super(ImmutableSet.of(ALERTS_SUMMARY, ALERTS_SUMMARY_HOSTS)); Map<Long, Map<String, AlertSummaryDTO>> perHostSummaryMap = new HashMap<>(); Map<Long, AlertHostSummaryDTO> hostsSummaryMap = new HashMap<>(); Map<String, Cluster> resourcesClusterMap = new HashMap<>(); Map<String, Integer> map = ...
1
import org.apache.accumulo.core.trace.TraceUtil; import org.apache.htrace.Sampler; import org.apache.htrace.Trace; import org.apache.htrace.TraceScope; TraceUtil.enableClientTraces("localhost", "testTrace", mac.getClientProperties()); long rootTraceId; try (TraceScope root = Trace.startSpan("traceTest...
0
* @version $Id$
0
package org.apache.zookeeper.jmx.server.quorum;
0
@RequiresSession @RequiresSession
0
zoo.putPersistentData(zkInstanceRoot + Constants.ZMONITOR, EMPTY_BYTE_ARRAY, NodeExistsPolicy.FAIL); zoo.putPersistentData(zkInstanceRoot + Constants.ZMONITOR_LOCK, EMPTY_BYTE_ARRAY, NodeExistsPolicy.FAIL);
0
final ZipConfigurationWriter pw = new ZipConfigurationWriter( zip ); addBinaries( pw ); final ConfigurationPrinter cp, final String mode ) private void addBinaries( final ZipConfigurationWriter cf ) t...
0
DocumentBuilder documentBuilder = createDocumentBuilder(); Document signatureDocument = documentBuilder.newDocument();
0
import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.ManagedChannel; import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.Server; import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.Status; import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.StatusRuntimeException; import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.inprocess...
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 ...
0
when(listRequest.setPageToken(eq((String) null))).thenReturn(listRequest);
0
import org.apache.ambari.server.api.MethodOverrideFilter; root.addFilter(new FilterHolder(new MethodOverrideFilter()), "/api/*", 1); root.addFilter(new FilterHolder(new MethodOverrideFilter()), "/proxy/*", 1);
0
* Copyright 2002-2005 The Apache Software Foundation.
0
import com.jcraft.jsch.JSch;
0
import javax.xml.XMLConstants; import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import javax.xml.validation.Validator; import org.apache.commons.io.FileUtils; import org.xml.sax.SAXException; public static final String PROPERTY_SCHEMA_PATH ...
0
MockAccumulo acu = null; Map<String,MockBatchWriter> bws = null; public MockMultiTableBatchWriter(MockAccumulo acu) { this.acu = acu; bws = new HashMap<String,MockBatchWriter>(); } @Override public BatchWriter getBatchWriter(String table) throws AccumuloException, AccumuloSecurityException, Ta...
1
* $Revision: 1.7 $ * $Date: 2003/10/09 21:04:44 $ * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * permission of the Apache Software Foundation. * @version $Id: PoolablePreparedStatement.java,v 1.7 2003/10/09 21:...
0
import org.apache.hc.core5.http.ProtocolVersion; private final ReasonPhraseCatalog reasonCatalog; public HttpResponse newHttpResponse(final ProtocolVersion transportVersion, final int status, final String reasonPhrase) { final HttpResponse response = new BasicHttpResponse(status, reasonPhrase); ...
0
for (String ignored_package : ignored_packages) { if (class_name.startsWith(ignored_package)) {
0
List<String> localNames = new ArrayList<>(); List<String> localNames = new ArrayList<>(); List<String> localNames = new ArrayList<>(); List<String> localNames = new ArrayList<>(); List<String> localNames = new ArrayList<>(); List<String> localNames = new ArrayList<>(); ...
0
import akka.actor.ActorRef; import org.apache.ambari.view.hive2.actor.message.job.SaveDagInformation; private final ActorRef operationController; IATSParser ats, ActorRef operationController) { this.operationController = operationController; saveJobInfoIfNeeded(atsHiveQuery, atsTezDag, vie...
0
list.add(Integer.valueOf(1)); list.add(Integer.valueOf(2)); list.add(Integer.valueOf(3)); list.add(Integer.valueOf(4)); list.add(Integer.valueOf(5)); list.add(Integer.valueOf(1)); list.add(Integer.valueOf(2)); list.add(Integ...
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
/** * Return the properties added by Maven. * @return Returns a properties object or null if the properties can't be found/read. */ public static Properties getPOMProperties(String groupId, String versionId) { final String resourceName = "META-INF/maven/" + groupId + "/" + versionId + "/...
0
import org.apache.hc.core5.io.Closer;
0
import org.apache.beam.sdk.values.TypeDescriptor; private static final TypeDescriptor<Long> TYPE_DESCRIPTOR = new TypeDescriptor<Long>() {}; @Override public TypeDescriptor<Long> getEncodedTypeDescriptor() { return TYPE_DESCRIPTOR; }
0
* Copyright 2000-2009 The Apache Software Foundation
0
import org.apache.sshd.util.test.JUnitTestSupport; public class NumberUtilsTest extends JUnitTestSupport {
0
import java.util.concurrent.CompletionStage; ExecutorService executor = List<CompletionStage<Void>> futures = new LinkedList<>(); futures.add(MoreFutures.runAsync( () -> { batch.execute(); }, executor)); MoreFutures.get(MoreFutures.allAsList(futures));
0
import org.apache.commons.vfs2.RandomAccessContent;
0
String type = rm.getType(); String type = rm.getType(); byte inputBytes[] = resource.getBytes(); }
0
import javax.servlet.http.HttpSession; private HttpSession session; this.session = request.getSession(false);
0
* * * * The SendmailAction class sends email. Please use the {@link Sendmail Sendmail} * action instead. The action needs four parameters: * Action attempts to get all of these parameters from the sitemap, but * if they do not exist there it will read them from the request parameters. * * <p>It also supports a...
0
List<String> algorithms = new ArrayList<>(BuiltinDigests.VALUES.size()); try (ClientSession session = client.connect(getCurrentTestName(), TEST_LOCALHOST, port).verify(7L, TimeUnit.SECONDS).getSession()) { session.addPasswordIdentity(getCurrentTestName()); session.auth().verify(5...
0
public void cleanup()
0
package org.apache.commons.digester3; /* * 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 Licens...
0
import org.osgi.framework.BundleContext; public void testLogSetup() { final MockBundleContext bundleContext = new MockBundleContext(); ConfigurationManager configMgr = createConfigurationManager( null ); // default value is 2 bundleContext.setProperty( "felix.cm.loglevel", null ...
0
* @param requests the request object which defines the service to be created * @param requests the request object which defines the component to be created * @param requests the request object which defines the host to be created * @param requests the request object which defines the host component to b...
0
import org.apache.cocoon.configuration.PropertyHelper;
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 FixedSizeSortedMapTest(final String testName) { final SortedMap<K, V> map = new TreeMap<K, V>();
0
return this._constructionElement.getAttributeNS(null, Constants._ATT_ALGORITHM);
0
* // if not specified when creating an alert definition, the scope is // assumed to be ANY if (null == scope && bCreate) { scope = Scope.ANY; }
0
// ~ attached-windows are purged only when their trigger fires in which case // the trigger itself get's clear; however, attached windows have // maxTimestamp == Long.MAX_VALUE and we need to clean-up the registered // clean-up trigger to avoid mem-leak in long running streams ctx.deleteEventTimeTim...
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.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterators;
0
super(LABEL, TITLE, CATEGORY_OSGI, CSS);
0
import java.io.File; if (!Server.run(SocketPort, new File(getTestDirectory()), 5000))
0
return Response.ok(ImmutableMap.of("scheduled", scheduled.build())).build();
0
* Transcodes the specified XML input in the specified output. All * <tt>TranscoderException</tt> exceptions not catched previously * are tagged as fatal errors (ie. call the <tt>fatalError</tt> * method of the <tt>ErrorHandler</tt>). * try { transcode(document, outpu...
0
final String app = "tserver"; Accumulo.setupLogging(app);
0
log.warn("notifyListener({}) failed ({}) to invoke {}: {}", this, t.getClass().getSimpleName(), l, t.getMessage()); if (log.isDebugEnabled()) { log.debug("notifyListener(" + this + ")[" + l + "] invocation failure details", t); }
0
public enum PropagationState { ACTIVE, DELETED }
1
* * @throws ParserConfigurationException if a DocumentBuilder cannot be created which satisfies the * configuration requested. * @see DocumentBuilderFactory#newDocumentBuilder() * @throws ParserConfigurationException if a DocumentBuilder cannot be created which satisfies the * ...
0
@Override
0
import org.apache.cocoon.portal.event.coplet.CopletDefinitionRemovedEvent; final String adapterName = instance.getCopletType().getCopletAdapterName(); final CopletAdapter adapter = this.portalService.getCopletAdapter(adapterName); adapter.init( instance ); /** * @see org.apache.cocoon...
0
public static JobInfo create( String jobId, String jobName, String retrievalToken, Struct pipelineOptions) { return new AutoValue_JobInfo(jobId, jobName, retrievalToken, pipelineOptions); public abstract String retrievalToken(); return ProvisionApi.ProvisionInfo.newBuilder() .setRetrievalToken...
0
import org.apache.http.impl.auth.HttpAuthenticator;
0
import static com.google.common.base.Preconditions.checkNotNull; Class<? extends PTransform> transformClass = application.getTransform().getClass(); TransformEvaluatorFactory factory = checkNotNull( factories.get(transformClass), "No evaluator for PTransform type %s", transformClass);
0
public static Transformer getTransformer( Transformer transformer, OutputStream outputStream, Map<String, Object> properties, String algorithm, XMLSecurityConstants.DIRECTION direction) throws XMLSecurityException { if (properties != null) { childTransformer.setPr...
0
ParDo.MultiOutput<Long, Long> parDo = ParDo.MultiOutput<Integer, Integer> pardo = ParDo.of(new SideOutputDummyFn(sideOutputTag)) ParDo.MultiOutput<String, String> parDo = ParDo
0
public class HttpRequestParser extends AbstractMessageParser {
0
import org.apache.zookeeper.CreateMode; CreateMode.EPHEMERAL_SEQUENTIAL);
0
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.stub.StreamObserver;
0
package com.twitter.nexus.scheduler.persistence; T t = null;
0
import com.google.cloud.dataflow.sdk.util.WindowingInternals;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableList.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $
0
* @version $Id$
0
import java.io.InputStream; Document importDoc = null; try (InputStream is = new ByteArrayInputStream(xmlStr.getBytes("UTF8"))) { importDoc = db.parse(is); } Document importDoc = null; try (InputStream is = new ByteArrayInputStream(xmlStr.getBy...
0
import org.apache.beam.sdk.transforms.windowing.BoundedWindow; /** * Returns a new {@link TimestampedValue} with the * {@link BoundedWindow#TIMESTAMP_MIN_VALUE minimum timestamp}. */ public static <V> TimestampedValue<V> atMinimumTimestamp(V value) { return of(value, BoundedWindow.TIMESTAMP_MIN_VALUE);...
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override
0
import org.apache.ambari.server.actionmanager.HostRoleStatus; public boolean isAllTasksCompleted(long requestId) { TypedQuery<Long> query = entityManagerProvider.get().createQuery( "SELECT task.taskId FROM HostRoleCommandEntity task WHERE task.requestId = ?1 AND " + "task.stageId=(select max(sta...
1
public class ApplicationManagerImpl implements ApplicationManager, ApplicationContextAware { public void init() throws Exception {
0
* Copyright (c) 2002, 2003 The Apache Software Foundation. All rights * @version $Revision: 1.4 $ $Date: 2003/02/12 07:56:15 $
0
if (nf.isNodeInclude(currentNode)!=1) {
0
* Validate a modulus check digit for a code. * Convert an integer value to a check digit. return Integer.toString(charValue);
0
package org.apache.beam.sdk.util; import org.apache.beam.sdk.coders.StringUtf8Coder; import org.apache.beam.sdk.coders.VarIntCoder; import org.apache.beam.sdk.testing.CoderProperties; import org.apache.beam.sdk.transforms.windowing.GlobalWindow; import org.apache.beam.sdk.util.TimerInternals.TimerData; import org.apac...
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
* Saves the character encoding to be used by the FTP control connection. * <p> * Please note that this has to be set before the connection is established.
0
public void testAlterNames() throws Exception { InstanceConfig instanceConfig = InstanceConfigTest.getInstanceConfigs(xml_with_instance_label).get(0); ViewEntity viewDefinition = ViewEntityTest.getViewEntity(); ViewInstanceEntity viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConf...
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString;
0
* @Deprecated
0
import org.apache.avalon.framework.service.ServiceException; public void testNestedExpressions() throws PatternException, ServiceException { context.enableLogging(getLogger()); VariableResolver resolver = VariableResolverFactory.getResolver(expr, manager); public void testNestedModuleAndSitemapE...
0
import org.apache.beam.sdk.transforms.PTransform;
0
this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) || this.charset.equalsIgnoreCase(HTTP.ASCII);
0
import org.apache.batik.transcoder.SVGAbstractTranscoder; public class PrintTranscoder extends SVGAbstractTranscoder super();
0