Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* | 0 |
* Licensed under the Apache License, Version 2.0 (the "License")
*
initSubNodeList(createSubNodeList((ConfigurationNode) parent.getNode(),
name));
if (name.getPrefix() != null)
if (!WILDCARD.equals(name.getName()))
| 0 |
assertEquals(builder, writer.getBuilder()); | 0 |
public WildcardFilter(final String wildcard) {
public WildcardFilter(final String[] wildcards) {
public WildcardFilter(final List<String> wildcards) {
public boolean accept(final File dir, final String name) {
for (final String wildcard : wildcards) {
public boolean accept(final File file) {... | 1 |
@ServiceDependency(service=Sequencer.class, filter="(test=simple)") | 0 |
dep.addAttribute(new Attribute("Id", m_dependencies[i].getId())); | 0 |
* builder.setPTransformLabel("myTransform");
* builder.setLabel(MonitoringInfoConstants.Labels.PTRANSFORM, "myTransform"); MonitoringInfo mi =
* builder.build();
/**
* Sets the IntDistributionData of the DistributionData in the MonitoringInfo, and the appropriate
* type URN.
*/
public SimpleMonitoringIn... | 0 |
protected FakeClock clock = new FakeClock();
new StateManager(DbStorageTestUtil.setupStorage(this), clock); | 0 |
* @version $Revision$ | 0 |
*
*
*
*
*
*
*
*
*
*
*
*
*
* | 0 |
(last instanceof ATHROW) )) {
throw new StaticCodeInstructionConstraintException("Execution must not fall off the bottom of the code array. This constraint is enforced statically as some existing verifiers do - so it may be a false alarm if the last instruction is not reachable.");
}
if (int... | 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 applicabl... | 0 |
import org.apache.beam.sdk.util.SerializableUtils;
private static class NonSerializable {}
private static class NonSerializableTranslator
implements SerializableFunction<String, NonSerializable> {
@Override
public NonSerializable apply(String from) {
return new NonSerializable();
}
}
... | 0 |
public List<UnboundedJmsSource> split( | 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.cocoon.core.container.spring.CocoonRequestAttributes;
import org.apache.cocoon.core.container.spring.Container;
import org.apache.cocoon.environment.Context;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Request;
public void service(ServiceManager ava... | 0 |
sources.add(state(sourceNamespace, address));
sources.add(state(sourceNamespace, address));
sources.add(state(sourceNamespace, address)); | 0 |
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables; | 0 |
bw = context.createBatchWriter(tableName, bwConfig); | 0 |
import org.apache.beam.sdk.testing.ValidatesRunner;
@Category({ValidatesRunner.class, UsesUnboundedPCollections.class})
@Category(ValidatesRunner.class) | 0 |
Stage s = new Stage(requestId, "/tmp", "cluster1", 1L, "context", clusterHostInfo); | 1 |
@Deprecated | 0 |
public class VerifierFactoryListModel implements VerifierFactoryObserver, | 0 |
TimerProcessor<String> timerProcessor = firedTimers::put; | 0 |
ZooKeeperServer.ChangeRecord cr = zks.outstandingChanges.remove(0);
if (zks.outstandingChangesForPath.get(cr.path) == cr) {
zks.outstandingChangesForPath.remove(cr.path);
} | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
clearBean(); | 0 |
new Object[]{str, null, prefixResolver, XPath.SELECT, null, funcTable}; | 1 |
return new HashSet<>(GANGLIA_CLUSTER_NAME_MAP.containsKey(component) ?
GANGLIA_CLUSTER_NAME_MAP.get(component) :
Collections.<String>emptyList()); | 0 |
public static final int ACTIVE = 0;
public static final int CLOSING = 1;
public static final int CLOSED = Integer.MAX_VALUE;
int getStatus();
| 0 |
import java.sql.SQLException;
import org.apache.ambari.server.H2DatabaseCleaner;
H2DatabaseCleaner.resetSequences(injector);
public void teardown() throws AmbariException, SQLException {
H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector); | 0 |
return getTable(tableRef, null);
}
@Override
public Table getTable(TableReference tableRef, @Nullable List<String> selectedFields)
throws InterruptedException, IOException { | 0 |
cookie.setDomain(".co.com");
Assert.assertTrue(h.match(cookie, new CookieOrigin("apache.co.com", 80, "/stuff", false)));
cookie.setDomain("co.com");
Assert.assertFalse(h.match(cookie, new CookieOrigin("apache.co.com", 80, "/stuff", false)));
cookie.setDomain("apache.com");
... | 0 |
import org.apache.ambari.server.api.services.Result;
import org.apache.ambari.server.api.services.ResultStatus;
import org.apache.ambari.server.api.util.TreeNode;
import org.apache.ambari.server.controller.spi.Resource;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVPrinter; | 0 |
/** The current synchronized upstream processing time or {@code null} if unknown. */
@Nullable
public abstract Instant currentSynchronizedProcessingTime();
/** The current event time for the input or {@code null} if unknown. */
@Nullable
public abstract Instant currentEventTime(); | 0 |
executeWork(worker, progressUpdater);
/** Executes the work and report progress. For testing only. */
void executeWork(WorkExecutor worker, DataflowWorkProgressUpdater progressUpdater)
throws Exception {
progressUpdater.startReportingProgress();
// Blocks while executing the work.
try {
... | 0 |
import java.util.ArrayList;
import org.apache.xml.security.utils.resolver.*; //for javadoc | 0 |
* @deprecated This has been deprecated. Use the org.apache.felix.status
* API instead. | 0 |
import java.util.Map;
import org.apache.avalon.excalibur.pool.Poolable;
import org.apache.avalon.excalibur.pool.Recyclable;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.ServiceSelector;
import org.apache.avalon.framework.service.Serviceable;
import org.apache.coc... | 0 |
package org.apache.beam.sdk.extensions.sql.interpreter.operator.comparison;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlExpression;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlPrimitive;
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow; | 0 |
package org.apache.hc.core5.http.impl.nio;
import org.apache.hc.core5.http.nio.HttpAsyncRequestConsumer; | 1 |
package org.apache.sshd.server.auth.password;
import org.apache.sshd.server.auth.AbstractUserAuth; | 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... | 0 |
(currTransY != prevTransY)); | 0 |
* Copyright 2002-2005 The Apache Software Foundation. | 0 |
import java.nio.file.Paths;
* @see #detectTargetFolder(Path)
public static Path detectTargetFolder(Class<?> anchor) {
return detectTargetFolder(getClassContainerLocationPath(anchor));
* @return A {@link Path} of the location of the class bytes container
* @throws IllegalArgumentException If l... | 0 |
* @version $Id$ | 0 |
try {
return pArray.getBytes("UTF8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
}
/**
String str = null;
try {
str = new String(encode, "UTF8");
} catch (UnsupportedEncodingException ue) {
... | 0 |
String SVG_HORIZ_ORIGIN_X_DEFAULT_VALUE = "0";
String SVG_HORIZ_ORIGIN_Y_DEFAULT_VALUE = "0"; | 0 |
if (queryThreadPool.isShutdown()) {
String shortMsg = "The BatchScanner was unexpectedly closed while this Iterator was still in use.";
log.error(shortMsg + " Ensure that a reference to the BatchScanner is retained so that it can be closed when this Iterator is exhausted."
+ " ... | 0 |
import com.google.common.annotations.VisibleForTesting;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | 0 |
final int buffersize = params.getIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, -1);
} catch (final SocketException ignore) {
} catch (final SocketException ignore) {
final Socket tmpsocket = this.socket;
final Socket sock = this.socket;
} catch (fi... | 0 |
public void testFail_badCryptoService() {
m.put(Property.INSTANCE_CRYPTO_SERVICE.getKey(), "DoesNotExistCryptoService");
public void testPass_defaultCryptoService() {
m.put(Property.INSTANCE_CRYPTO_SERVICE.getKey(),
Property.INSTANCE_CRYPTO_SERVICE.getDefaultValue()); | 0 |
protected final HttpParams params;
this.params = params;
ConnPerRoute connPerRoute = ConnManagerParams.getMaxConnectionsPerRoute(params);
int maxTotalConnections = ConnManagerParams.getMaxTotalConnections(params);
| 0 |
* multiple values are added for this property. (With the
* <code>setListDelimiter()</code> method the delimiter character can be
* specified; per default a comma is used. The
* <code>setDelimiterParsingDisabled()</code> method can be used to disable
* list splitting completely.)</li>
* <li>Allows to specify how m... | 0 |
public abstract class STOMPHostEvent extends STOMPEvent {
public STOMPHostEvent(Type type) { | 1 |
hints.put(BatikHints.KEY_BACKGROUND, Color.white); | 0 |
*
*
parentMatched = parentMatch( key, parentPattern );
private boolean parentMatch( String key, String parentPattern ) | 0 |
final String challenge = "Basic";
final Header header = new BasicHeader(AUTH.WWW_AUTH, challenge);
final AuthScheme authscheme = new BasicScheme();
final int[] germanChars = { 0xE4, 0x2D, 0xF6, 0x2D, 0xFc };
final StringBuilder buffer = new StringBuilder();
for (final int... | 0 |
synchronized public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { | 0 |
public static <K, V> OrderedMap<K, V> unmodifiableOrderedMap(final OrderedMap<K, V> map) {
private UnmodifiableOrderedMap(final OrderedMap<K, V> map) {
private void writeObject(final ObjectOutputStream out) throws IOException {
private void readObject(final ObjectInputStream in) throws IOException, Clas... | 0 |
import static org.apache.beam.sdk.testing.CombineFnTester.testCombineFn;
testCombineFn(new NullCombiner(), Arrays.asList(3, 3, 5), 45);
testCombineFn(new NullCombiner(), Arrays.asList(null, 3, 5), 30);
testCombineFn(new NullCombiner(), Arrays.asList(3, 3, null), 18);
testCombineFn(new NullCombiner(), Ar... | 0 |
@Override
@Override
default:
break;
default:
break;
... | 0 |
import org.apache.http.impl.nio.codecs.AbstractContentEncoder; | 0 |
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Method;
protected transient LocalizableSupport localizableSupport =
protected transient DOMImplementation implementation;
ad.localizableSupport = new LocalizableSupport(RESOURCE... | 1 |
public TabletLocation _locateTablet(Text row, boolean skipRow, boolean retry, boolean lock, TCredentials credentials) throws AccumuloException,
AccumuloSecurityException, TableNotFoundException {
| 0 |
* Structure used to store an {@link org.apache.http.HttpResponse} in a cache.
* Some entries can optionally depend on system resources that may require
* explicit deallocation. In such a case {@link #getResource()} should return
* a non null instance of {@link Resource} that must be deallocated by calling
* Re... | 0 |
import org.apache.beam.sdk.io.fs.PathValidator;
* @deprecated use {@link org.apache.beam.sdk.io.fs.NoopPathValidator}.
@Deprecated | 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 |
EvaluationContext evaluationContext)
final EvaluationContext evaluationContext) {
final EvaluationContext evaluationContext) {
private final EvaluationContext evaluationContext;
EvaluationContext evaluationContext,
public TransformResult finishBundle() throws IOException { | 0 |
final XTestArray01[] array = new TestArrayAccess01[1]; | 1 |
public RequestStatus deleteResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, | 0 |
/**
* Removes a ProtocolCommandListener.
*
* Delegates this incorrectly named method - removeProtocolCommandistener (note the missing "L")- to
* the correct method {@link SocketClient#removeProtocolCommandListener}
* @param listener The ProtocolCommandListener to remove
*/
public... | 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 |
package org.apache.ambari.metrics.adservice.seriesgenerator; | 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 |
@Test
public void testHTTPCLIENT_1997() {
Assert.assertTrue(DefaultHostnameVerifier.matchIdentity(
"service.apps.dev.b.cloud.a", "*.apps.dev.b.cloud.a"));
Assert.assertTrue(DefaultHostnameVerifier.matchIdentityStrict(
"service.apps.dev.b.cloud.a", "*.apps.dev.b.cl... | 0 |
package org.apache.jcp.xml.dsig.internal.dom; | 0 |
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import org.apache.ambari.server.api.services.stackadvisor.recommendations.RecommendationResponse.BindingHostGroup;
import org.apache.ambari.server.api.services.stackadvisor.recommendations.RecommendationResponse.HostGroup; | 0 |
List<KeyValue> currentBatch = ThriftScanner.scan(instance, credentials, scanState, timeOut, ServerConfigurationUtil.getConfiguration(instance)); | 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 |
public abstract class FilesCacheTestsBase extends AbstractProviderTestCase | 0 |
if (reset) {
((ByteArrayOutputStream)this._writer).reset();
}
byte [] sol=((ByteArrayOutputStream)this._writer).toByteArray();
if (reset) {
((ByteArrayOutputStream)this._writer).reset();
}
return sol;
| 0 |
AppliedPTransform.of(
Collections.emptyMap(),
Collections.emptyMap(),
Flatten.pCollections(),
AppliedPTransform.of(
Collections.emptyMap(),
Flatten.pCollections(),
Matchers.hasEntry(
.of(
... | 0 |
public UsernamePasswordCredentials(final String usernamePassword) {
public UsernamePasswordCredentials(final String userName, final String password) {
public boolean equals(final Object o) { | 0 |
public static URI getArtifactURI( ArtifactRepository repository, Artifact artifact ) | 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 |
expect(context.getZooKeeperRoot()).andReturn("zkroot").anyTimes(); | 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 |
<T> T get( Class<T> key );
<T> T put( Class<T> key, T value ); | 0 |
JSONObject response = atlasClientV1.callAPIWithBodyAndParams(AtlasClient.API_V1.VERSION, null, (String[]) null); | 0 |
/* $Id$
* | 0 |
import org.apache.sshd.common.util.security.SecurityUtils; | 0 |
return getDefaultCoder(
typeDescriptor, getTypeToCoderBindings(contextTypeDescriptor.getType(), contextCoder));
ParameterizedType fnType = (ParameterizedType)
TypeDescriptor.of(fn.getClass()).getSupertype(SerializableFunction.class).getType();
return getDefaultCoder(
fn.getClass(),
... | 0 |
import cz.seznam.euphoria.core.client.dataset.HashPartitioner;
import cz.seznam.euphoria.guava.shaded.com.google.common.collect.Iterables;
// apply custom partitioner if different from default HashPartitioner
if (!(operator.getPartitioning().getPartitioner().getClass() == HashPartitioner.class)) {
tuples ... | 0 |
return this.servletContext.getInitParameter(path); | 0 |
if (SecurityHelper.getSysPerm(state, SecurityHelper.getSysUserName(state), SystemPermission.CREATE_USER))
hasPermission = true;
if (hasPermission)
throw new AccumuloException("Got a security exception when I should have had permission.", ae);
if (!exists)
throw new ... | 1 |
c.bytes = bytes.clone(); | 0 |
import org.apache.http.message.LineParser;
/**
* The line parser to use for created connections.
* <code>null</code> indicates the default parser.
*/
protected LineParser lineParser;
/**
* Obtains the line parser to be used by the connections.
*
* @return the line parser, or ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.