Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
if ((cmd.getRole().equals(Role.HIVE_CLIENT.toString()) || cmd.getRole().equals(Role.WEBHCAT_SERVER.toString()) || cmd.getRole().equals(Role.HCAT.toString())) &&
0
* FIXME - This class can only handle the case if the sitemap is named "sitemap.xmap"!!! Properties globalVariables, String sitemapUri) { buffer.append("\" sitemapUri=\""); buffer.append(sitemapUri); ...
0
try { request = this.requestFactory.getServletRequest(request); } catch (Exception e) { if (getLogger().isErrorEnabled()) { getLogger().error("Problem in multipart filter. Unable to create request.", e); } Requ...
0
store.getUnsafeTaskStore().saveTasks(
0
final Collection<?> param = (Collection<?>) params.getParameter( final boolean singleHeader = params.getBooleanParameter(
0
import org.apache.sshd.client.config.keys.ClientIdentityLoaderManager; ClientIdentityLoaderManager,
0
return true; }
0
DirectPipelineResult result = new DirectPipelineResult(executor, context); EvaluationContext evaluationContext) {
0
manager = WatermarkManager.create(clock, graph, AppliedPTransform::getFullName); WatermarkManager.create(clock, graph, AppliedPTransform::getFullName); new AppliedPTransformInputWatermark("underTest", ImmutableList.of(mockWatermark));
0
public InvalidCredentialsException(final String message) { public InvalidCredentialsException(final String message, final Throwable cause) {
0
* @version CVS $Id: QuartzJobExecutor.java,v 1.7 2004/03/22 12:45:32 unico Exp $ boolean release = false; release = true; if (release && null != manager) {
0
package org.apache.felix.obrplugin;
0
*/ package org.apache.commons.bcel6.verifier.tests;
0
import java.util.concurrent.TimeUnit; scanner.setTimeout(getTimeout(cl), TimeUnit.MILLISECONDS);
0
private boolean validateNotEmpty(String givenValue, boolean allIsWell, StringBuilder buf, String errorMessage) { private boolean validateNotNull(Object givenValue, boolean allIsWell, StringBuilder buf, String errorMessage) { private boolean validateNotZero(int givenValue, boolean allIsWell, StringBuilder buf, Str...
0
public String component; public ServerStatus(String component, String serverName, State state) { this.component = component; public String getComponent() { return this.component; } public void setComponent(String component) { this.component = component; }
0
public Variant(final String cacheKey, final HttpCacheEntry entry) {
0
filter = clipedNode.getGraphicsNodeRable(true);
0
* Data transmitter based on sockets and <code>java.nio</code>. * * * <!-- empty lines above to avoid 'svn diff' context problems -->
0
import org.apache.ambari.server.utils.StageUtils; import java.util.ArrayList; import java.util.HashMap; String actionName, String serviceName, String componentName, List<String> hosts, Map<String, String> parameters) { this(clusterName, commandName, servi...
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
Buffer buf = session.createBuffer(SshConstants.SSH_MSG_GLOBAL_REQUEST);
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.ManagedChannel; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.inprocess.InProcessChannelBuilder; import org.apache.beam.vendor.grpc.v1p13p1.io.grpc.stub.StreamObserver;
0
import org.apache.felix.scr.impl.ComponentCommands; private ComponentCommands scrCommand; public void setScrCommand(ComponentCommands scrCommand) scrCommand.updateProvideScrInfoService(infoAsService()); scrCommand.updateProvideScrInfoService( infoAsService() ); @Override
0
* @param <K> the type of the keys in this map * @param <V> the type of the values in this map
0
import org.apache.accumulo.core.client.impl.Table; static List<TabletStats> generateFakeTablets(TServerInstance tserver, Table.ID tableId) { for (int i = 0; i < tableInfo.tableMap.get(tableId.canonicalID()).onlineTablets; i++) { public DefaultLoadBalancer(Table.ID table) { public List<TabletStats> getOnli...
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 may not...
0
* @version $Revision$ $Date$
0
String port = getPort(clusterName, componentName, hostName, httpsEnabled); if (port == null) { LOG.warn("Unable to get JMX metrics. No port value for " + componentName); return resource; } private String getPort(String clusterName, String componentName,...
0
/* * Copyright 1999-2005 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...
0
return getEdgeLabel(dataType.getName(), aInfo.name); } public String getEdgeLabel(String typeName, String attrName) { return EDGE_LABEL_PREFIX + typeName + "." + attrName; } public String getEdgeLabel(ITypedInstance typedInstance, AttributeInfo aInfo) throws MetadataException { ...
0
* A {@link WindowFn} that windows values into possibly overlapping fixed-size
0
import com.google.common.collect.ImmutableList; import java.io.IOException; import java.io.Serializable; import java.nio.channels.FileChannel; import java.nio.channels.SeekableByteChannel; import java.nio.file.Files; import java.nio.file.StandardOpenOption; import java.util.Arrays; import java.util.List;
0
if (portValue != null && !portValue.trim().isEmpty()) {
0
import org.junit.Assert;
1
import org.apache.accumulo.core.client.Accumulo; import org.apache.accumulo.server.ServerUtil; accumuloClient = Accumulo.newClient().usingClientInfo(context.getClientInfo()) .usingToken(principal, at).build(); ServerUtil.init(context, app);
0
final RequestLine requestline = new RequestLine("GET", "/stuff", HttpVersion.HTTP_1_1); final RequestLine requestline = new RequestLine("GET", "/stuff", HttpVersion.HTTP_1_1); final StatusLine statusline1 = new StatusLine(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK"); final StatusLine st...
0
/* $Id$ *
0
import com.esotericsoftware.kryo.serializers.JavaSerializer; import com.google.common.base.Function; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import java.util.Arrays; import java.util.Set; import javax.annotation.Nullable; import org.apache.beam.sdk.coders.Coder; import org.ap...
0
ZooKeeperInstance instance = new ZooKeeperInstance(accumuloCluster.getConfig().getInstanceName(), accumuloCluster.getConfig().getZooKeepers());
0
@Override @Override @Override @Override
0
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience;
0
import org.apache.cocoon.forms.FormsConstants; import org.apache.cocoon.forms.util.I18nMessage;
0
public void testSetIterator() throws Exception { public void testAddIterator() throws Exception { public void testGetIteratorSettings() throws Exception { public void testSetRegex() throws Exception { public void testEmptyColumnFamily() throws Exception {
0
package org.apache.beam.sdk.util; import org.apache.beam.sdk.options.GcsOptions; import org.apache.beam.sdk.options.PipelineOptionsFactory; import org.apache.beam.sdk.testing.FastNanoClockAndSleeper; import org.apache.beam.sdk.util.gcsfs.GcsPath;
0
final byte[] inputBytes = input.getBytes();
1
this.rethrow(e, sql, (Object[])params); public void fillStatement(PreparedStatement stmt, Object... params) String... propertyNames) throws SQLException { * @deprecated Use {@link #query(Connection,String,ResultSetHandler<T>,Object...)} instead public <T> T query(Connection conn, St...
0
private static final Pattern MISSING_KEY_PATTERN = Pattern.compile( "^(!)?([a-zA-Z]+=)" ); Map instructions = OSGiHeader.parseHeader( MISSING_KEY_PATTERN.matcher( header ).replaceFirst( "$1*;$2" ) );
0
* This is the representation of an <CODE>xenc:EncryptionMethod</CODE> * element. It's additionally the factory for encryption/wrap/transport * algorithms.
0
import org.apache.commons.collections.AbstractTestCollection; * @version $Revision: 1.4 $ $Date: 2003/11/02 16:20:36 $
0
import org.apache.excalibur.source.SourceResolver; * @version CVS $Id: StandardSessionContextProvider.java,v 1.9 2004/03/19 14:16:55 cziegeler Exp $ /** The Source Resolver */ protected SourceResolver resolver; context = new SimpleSessionContext(this.xpathProcessor, this.resolver); ...
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
0
/** {@link org.apache.commons.logging} logging facility */ static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(X509CertificateResolver.class.getName()); log.debug("Can I resolve " + element.getTagName() + "?"); log.debug("I can't"); log.deb...
0
* Copyright 2002-2005 The Apache Software Foundation.
0
import org.apache.bcel.generic.ConstantPoolGen; import org.apache.bcel.generic.INVOKESTATIC; import org.apache.bcel.generic.InstructionList; import org.apache.bcel.generic.MethodGen; import org.apache.bcel.generic.Type;
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
* @throws NonDeterministicException a {@link CustomCoder} is presumed nondeterministic. throw new NonDeterministicException( this, + " or they are presumed nondeterministic.");
1
import org.apache.felix.dm.annotation.api.Component; @Component
0
* {@code HttpAsyncService} is a fully asynchronous HTTP server side protocol * {@code HttpAsyncServerProtocolHandler} translates individual events fired * Upon receiving an incoming request {@code HttpAsyncService} verifies * {@code HttpAsyncService} relies on {@link HttpProcessor} to generate * Creates new in...
0
if (!evictionLock.tryLock()) return; if (bytesToFree <= 0) return; if (this.overflow() == that.overflow()) return 0; if (cache == null) break;
1
package org.apache.cocoon.component; import org.apache.avalon.framework.component.*; import javax.naming.directory.*; import java.util.Map; import org.apache.cocoon.ProcessingException; /** * The <code>EntryManager</code> is an Avalon Component for managing the Entries in a Javax Naming Directory. * This is the i...
0
/* $Id$ * * 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"); ...
0
* {@inheritDoc} This implementation returns the configuration's * {@code NodeModel}. It is guarded by the current {@code Synchronizer}. */ @Override public NodeModel<T> getNodeModel() { beginRead(false); try { return getModel(); } finally ...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
0
null);
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
/* * 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
package org.apache.atlas.falcon; import org.apache.atlas.repository.MetadataRepository; import org.apache.atlas.typesystem.IReferenceableInstance; when(client.getEntityList(EntityType.CLUSTER.name(), null, null, null, null, null, null, null)).thenReturn(getEntityList());
1
* A composite {@link Trigger} that executes its sub-triggers in order. * Only one sub-trigger is executing at a time, * and any time it fires the {@code AfterEach} fires. When the currently executing
0
private Logger logger; this.logger = logger; protected final Logger getLogger() { return this.logger; } /** * Parses and resolves the scheme specific part of a block URI * with respect to the base URI of the current sitemap. The scheme * specific part of...
0
return true; // ACCUMULO-3645 compact for empty files too
0
import org.apache.felix.dm.annotation.api.dependency.ServiceDependency;
0
public FileUtilsCleanSymlinksTestCase(final String name) { private void setupSymlink(final File res, final File link) throws Exception { final List<String> args = new ArrayList<String>();
1
Collections.<AlertHistoryEntity>emptyList());
0
public class SqlDateConverter implements Converter {
0
thread.setDaemon( true );
0
formatter.format("%1$016x-%2$08x", Long.valueOf(this.count), Integer.valueOf(rndnum));
0
@Contract(threading = ThreadingBehavior.SAFE)
0
getClient().tableOperations().create(tableName); BinaryIT.runTest(getClient(), tableName); ConcurrencyIT.runTest(getClient(), getUniqueNames(1)[0]); ShutdownIT.runAdminStopTest(getClient(), getCluster()); BulkIT.runTest(getClient(), getClientInfo(), cluster.getFileSystem(), MapReduceIT.runTest(g...
0
* ACCUMULO-2907 Remove unnecessary security warning from console message unless its actually appropriate. The warning message should only be displayed when * the value of <code>instance.security.authenticator</code> differs between the SiteConfiguration and the DefaultConfiguration values.
0
void close();
0
private static final String DEPL_SERVICE = "org.osgi.service.deploymentadmin.DeploymentAdmin"; catch ( /*Deployment*/ Exception e ) catch ( /*Deployment*/ Exception e )
0
package org.apache.accumulo.test.randomwalk.unit; import org.apache.accumulo.test.randomwalk.State; import org.apache.accumulo.test.randomwalk.Test;
0
private final Configuration stackConfig = new Configuration(new HashMap<>(), new HashMap<>()); private final Configuration bpConfiguration = new Configuration(new HashMap<>(), new HashMap<>(), stackConfig); private final Configuration topoConfiguration = new Configuration(new HashMap<>(), new HashMap<...
0
public class TestDualTreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> extends AbstractTestSortedBidiMap<K, V> { /** * {@inheritDoc} */ @Override public DualTreeBidiMap<K, V> makeObject() { return new DualTreeBidiMap<K, V>();
0
package org.apache.felix.ipojo.transaction.test.service; import javax.transaction.Transaction; public interface CheckService { public void doSomethingGood(); public void doSomethingBad() throws NullPointerException; public void doSomethingBad2() throws UnsupportedOperationException; ...
0
package org.apache.beam.sdk.extensions.sql.interpreter.operator; import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow;
0
firstResponse.setJobMessages(new ArrayList<>()); secondResponse.setJobMessages(new ArrayList<>());
0
import javax.servlet.http.HttpSession; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.thread.ThreadSafe; import org.apache.cocoon.environment.ObjectModelHelper; HttpSession session = ObjectModelHelper.getRequest(objectModel).getSession(); HttpSes...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/log/src/java/org/apache/commons/jelly/tags/log/InfoTag.java,v 1.2 2003/01/25 18:02:25 morgand Exp $ * $Revision: 1.2 $ * $Date: 2003/01/25 18:02:25 $ * $Id: InfoTag.java,v 1.2 2003/01/25 18:02:25 morgand Exp $ im...
0
import org.apache.hc.core5.http.ssl.TLS;
0
import java.util.List; import org.apache.beam.sdk.values.PCollectionView; import com.datatorrent.api.Operator; List<PCollectionView<?>> sideInputs = transform.getSideInputs(); doFn, output.getWindowingStrategy(), sideInputs); if (!sideInputs.isEmpty()) { Operator.InputPort<?>[] sideInputPorts = ...
0
* or more contributor license agreements. See the NOTICE file * regarding copyright ownership. The ASF licenses this file * with the License. You may obtain a copy of the License at * KIND, either express or implied. See the License for the
0
* Discover any resources that match the given requirements. * * @param requirements * @return List of resources matching the filter */ Resource[] discoverResources(Requirement[] requirements); /**
0
* Copyright 2016-2017 Seznam.cz, a.s.
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 java.util.AbstractMap.SimpleImmutableEntry; assertEquals("Check failed", new SimpleImmutableEntry<>(true, expected), KeyUtils.checkFingerPrint(test, key));
0
import org.apache.commons.jelly.JellyTagException; import org.jaxen.JaxenException; public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (stylesheet instanceof JellyStylesheet) { // dom4j only seems to throw Exception try { Object source...
0
.getPropertyId("Repositories", "mirrors_list");
0
import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.options.PipelineOptionsFactory; private PipelineOptions options; options = PipelineOptionsFactory.create(); BigQueryTableInserter inserter = new BigQueryTableInserter(bigquery, options); BigQueryTableInserter inserter = new Bi...
0