Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
key.seq = 1L;
0
* Attempts to close this channel are ignored, and {@link #isOpen} always
0
return keyId == null ? null : keyId.clone(); return keyPacket == null ? null : keyPacket.clone(); if ((tag & 6) != 6 && (tag & 14) != 14 && (tag & 5) != 5 && (tag & 7) != 7) {
0
m_repositoryVersion, null, 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...
1
import javax.naming.OperationNotSupportedException; /* (non-Javadoc) * @see org.osgi.service.startlevel.StartLevel#isBundleActivationPolicyUsed(org.osgi.framework.Bundle) **/ public boolean isBundleActivationPolicyUsed(Bundle bundle) { throw new UnsupportedOperationException("This feature has ...
1
import org.apache.sshd.util.test.NoIoTestCase; import org.junit.experimental.categories.Category; @Category({ NoIoTestCase.class })
0
package com.twitter.aurora.scheduler.thrift; import com.twitter.aurora.scheduler.thrift.FeatureToggleSchedulerController.Delegate; import com.twitter.aurora.scheduler.thrift.FeatureToggleSchedulerController.EnableUpdates; import com.twitter.aurora.scheduler.thrift.auth.CapabilityValidator.Capability; import com.twitter...
0
import org.apache.accumulo.server.mini.MiniAccumuloCluster;
0
import javax.servlet.SessionCookieConfig; SessionCookieConfig sessionCookieConfig = createNiceMock(SessionCookieConfig.class); expect(sessionCookieConfig.getName()).andReturn("SESSION_COOKIE").anyTimes(); expect(sessionManager.getSessionCookieConfig()).andReturn(sessionCookieConfig).anyTimes(); replay(...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import org.junit.Test; public class Base32Test { @Test @Test @Test @Test @Test @Test @Test
1
@Mojo(name = "start", defaultPhase = LifecyclePhase.PRE_INTEGRATION_TEST, requiresDependencyResolution = ResolutionScope.TEST) @Parameter(defaultValue = "${project.build.directory}", alias = "outputDirectory", property = "accumulo.outputDirectory", required = true) @Parameter(defaultValue = "testInstance"...
0
protected static final String HOST_ROLE_COMMAND_TABLE = "host_role_command"; /** * Alter host_role_command table to add original_start_time, which is needed because the start_time column now * allows overriding the value in ActionScheduler.java * @throws SQLException */ private void updateHostRoleCom...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestMultiHashMap.java,v 1.2 2002/02/22 02:18:50 mas Exp $ * $Revision: 1.2 $ * $Date: 2002/02/22 02:18:50 $ public Map makeEmptyMap() { public void testEntrySetIterator(...
0
/* * Copyright 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 app...
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 ma...
0
public abstract String getProperty(String key); String key = AccumuloVFSClassLoader.VFS_CONTEXT_CLASSPATH_PROPERTY + context; String uris = getProperty(key); String delegate = getProperty(key + ".delegation");
0
* Copyright 1999-2007 The Apache Software Foundation. import org.w3c.dom.NodeList; /** {@link org.apache.commons.logging} logging facility */ private String basedir; private boolean haveISOPadding; private boolean haveKeyWraps; private String tstBase64EncodedString; basedir = System.getProp...
0
/* * Copyright 2003-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 applicable la...
0
* @version $Revision: 1.2 $ $Date: 2002/11/21 04:31:38 $ extends AbstractProviderTestCase
0
Map<String,String> siteConfig = new HashMap<>();
1
* Copyright (C) 2015 Google Inc.
0
final StatusLine statusline = new BasicStatusLine(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK"); } catch (final IllegalArgumentException e) { /* expected */ } } catch (final IllegalArgumentException e) { /* expected */ } final BasicStatusLine orig = new BasicStatusLine(HttpVersion.HTTP_1...
0
private static class SimpleCacheEntry implements CacheEntry { private byte[] buffer; private Object index; SimpleCacheEntry(byte[] buffer) { this.buffer = buffer; } @Override public byte[] getBuffer() { return buffer; } @Override public Object get...
0
// We're holding some finished bits, but that should be it. tester.assertHasOnlyGlobalAndFinishedSetsAndPaneInfoFor( new IntervalWindow(new Instant(0), new Instant(50)));
0
@Deprecated
0
import java.util.Collections; import org.apache.sshd.common.util.threads.ExecutorService; @Override TcpipServerChannel channel = new TcpipServerChannel(getType(), ThreadUtils.noClose(getExecutorService())); public TcpipServerChannel(ForwardingFilter.Type type, ExecutorService executor) { ...
1
import java.util.HashMap; import java.util.Map; /** Processor attributes */ protected Map processorAttributes = new HashMap(); /** * @see org.apache.cocoon.Processor#getAttribute(java.lang.String) */ public Object getAttribute(String name) { return this.processorAttributes.get(name);...
0
@Test public void testDelete() { FakeCassandraService service = new FakeCassandraService(); service.load(); assertEquals(10000, service.getTable().size()); pipeline .apply( CassandraIO.<Scientist>read() .withCassandraService(service) .withKeyspac...
0
Copyright 2002-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 law...
0
import org.apache.hc.core5.concurrent.ComplexCancellable;
0
public List<FieldValueGetter> create(Class<?> targetClass, Schema schema) {
0
import org.apache.felix.framework.resolver.HostedCapability; import org.apache.felix.framework.resolver.HostedRequirement; new HostedCapability(this, caps.get(capIdx))); new HostedRequirement(this, reqs.get(reqIdx))); result = (nativeList.isEmpty())
0
* A {@link CodingFunction CodingFunction&ltInputT, OutputT&gt;} is a serializable function * {@inheritDoc} * * @throws NonDeterministicException when the underlying coder's {@code verifyDeterministic()} * throws a {@link NonDeterministicException}. For this to be safe, the intermediate * ...
0
// Will be needed when credentials are correctly constructed and scoped. @SuppressWarnings("unused") private static class PubsubGrpcClientFactory implements PubsubClientFactory { @Override public PubsubClient newClient( @Nullable String timestampLabel, @Nullable String idLabel, PubsubOptions optio...
0
* public Accum createAccumulator() { * return new Accum(); * } public Holder(V value) { set(value); } @Override public Integer apply(int[] accumulator) { return accumulator[0]; } @Override public int[] apply(I...
0
public static final int SINGLETON_STRATEGY = 0; public static final int SERVICE_STRATEGY = 1; public static final int STATIC_STRATEGY = 2; public static final int INSTANCE_STRATEGY = 3; switch (factoryPolicy) { case SINGLETON_STRATEGY: case SERVICE_STRATEGY: ...
0
import org.apache.beam.sdk.io.gcp.testing.BigqueryClient; .pruningPattern(BigqueryClient.class.getName())
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/Functions.java,v 1.2 2002/04/24 04:05:41 dmitri Exp $ * $Revision: 1.2 $ * $Date: 2002/04/24 04:05:41 $ import java.util.Set; * @version $Revision: 1.2 $ $Date: 2002/04/24 04:05:41 $
0
testLeaderElection(5, 5, 3000, 20000);
0
private final URLClassLoader classLoader; private final FileSystem fs; final Map<String, ?> emptyMap = Collections.emptyMap(); final Path jrePath = Paths.get(System.getProperty("java.home")); final Path jrtFsPath = jrePath.resolve("lib").resolve("jrt-fs.jar"); ...
0
package cz.seznam.euphoria.core.client.dataset; import cz.seznam.euphoria.core.client.operator.State; import java.util.HashSet; import java.util.Set; /** * Abstract window capable of registering states. */ public abstract class AbstractWindow<KEY, W extends AbstractWindow<KEY, W>> implements Window<KEY, W> { ...
0
package org.apache.felix.sigil.eclipse.ui.util; import org.apache.felix.sigil.eclipse.ui.SigilUI;
0
import org.apache.http.cookie.CookieRestrictionViolationException; throw new CookieRestrictionViolationException(
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Joiner; 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.Maps;
0
synchronized (sourcePath) { sourcePath.clear(); for (int i = 0; i < path.length; i++) { sourcePath.add(path[i]); } sourcePath.add(""); synchronized (sourcePath) { Iterator iter = sourcePath.iterator(); while (iter.ha...
0
filterRegion = SVGUtilities.convertFilterChainRegion(filterElement, filteredElement, filteredNode, uctx);
0
private final ControlClientPool<FnApiControlClient> pendingClients; pendingClients = QueueControlClientPool.createSynchronous(); FnApiControlClientPoolService.offeringClientsToPool(pendingClients.getSink(), headerAccessor); FnApiControlClient getClient = pendingClients.getSource().take()...
0
if (outputProducers.contains(this) && (!parts.isEmpty() || outputProducers.size() > 1)) { Set<String> otherProducerNames = new HashSet<>(); for (Node outputProducer : outputProducers) { if (outputProducer != this) { otherProducerNames.add(outputProducer.getFullName()); ...
0
import org.apache.felix.framework.util.MultiReleaseContent; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.security.ProtectionDomain; import java.util.ArrayList; import java.util.Collections; import java.util.Enumeration; import java.util....
0
return input .apply(GroupByKey.<K, InputT>create(fewKeys)) .apply(Combine.<K, InputT, OutputT>groupedValues(fn).withSideInputs(sideInputs));
0
* Sets a {@link Schema} on this {@link PCollection}.
0
import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import com.google.inject.Inject;
0
assertEquals("person", stmt.name.getSimple());
0
import org.apache.excalibur.source.SourceResolver; * @version CVS $Id: DefaultAuthenticationManager.java,v 1.6 2003/04/27 14:45:04 cziegeler Exp $ /** The Source Resolver */ private SourceResolver resolver; RequestState state = new RequestState( handler, applicationName, this.resolver ); ...
0
import static com.google.common.base.MoreObjects.toStringHelper; import org.apache.beam.sdk.runners.PTransformMatcher; overridesBuilder .add( PTransformOverride.of( PTransformMatchers.classEqualTo(Reshuffle.class), new ReshuffleOverrideFactory())) // Order is important. S...
0
public CacheEntry getBlock(String blockName, Loader loader) { Loader idxLoader = new Loader() { CacheEntry idxCacheEntry; @Override public Map<String,Loader> getDependencies() { idxCacheEntry = indexCache.getBlock(blockName); if (idxCacheEntry == null) { ...
0
private static final long serialVersionUID = 0L; @Override public boolean equals(Object other) { // Semantically, all default triggers are identical return other instanceof DefaultTrigger; }
0
final BasicFutureCallback<Object> callback = new BasicFutureCallback<>(); final BasicFuture<Object> future = new BasicFuture<>(callback); final BasicFutureCallback<Object> callback = new BasicFutureCallback<>(); final BasicFuture<Object> future = new BasicFuture<>(callback); fina...
0
import org.apache.xml.security.test.TestUtils; Element context = TestUtils.createDSctx(doc, "ds", Constants.SignatureSpecNS);
0
* @return The file. Never returns null. * * The base file to use to resolve relative paths. May be null. * * @return The file. Never returns null. * The base file to use to resolve relative paths. May be null. * @return The file. Never returns null. * ...
0
package org.apache.beam.sdk.transforms;
0
private static final String IMPLEMENTATION_QNAME = IMPLEMENTATION; private static final String SERVICE_QNAME = SERVICE; private static final String PROPERTY_QNAME = PROPERTY; private static final String REFERENCE_QNAME = REFERENCE; private static final String INTERFACE_QNAME = INTERFACE;
0
import java.util.Set; private Set<Integer> servers;
0
public abstract class AbstractEvent implements org.apache.batik.dom.dom3.events.Event { * Whether the event propagation must be stopped after the current * event listener group has been completed. * Whether the event propagation must be stopped immediately. */ protected boolean stopImme...
0
* Copyright 2016 Seznam.cz, a.s.
0
import org.apache.accumulo.core.client.AccumuloClient; AccumuloClient c = getClient(); private MasterMonitorInfo getStats(AccumuloClient c) throws Exception {
0
import org.apache.beam.runners.direct.DirectRunner; String directOut = runPipeline(DirectRunner.class);
0
// custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newInstance(tag); } // is it an Ant task? // an Ant DataType? // assume ...
0
package org.apache.beam.runners.flink.examples.streaming; import org.apache.beam.runners.flink.FlinkPipelineRunner; import org.apache.beam.runners.flink.translation.wrappers.streaming.io.UnboundedSocketSource;
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
setSignatureFactoriesNames(GenericUtils.isEmpty((Object[]) names) ? Collections.emptyList() : Arrays.asList(names));
0
metaScanner.setRange(new KeyExtent(tableId, null, null).toMetadataRange()); metaScanner.setRange(new KeyExtent(tableId, null, null).toMetadataRange());
0
* @use org.apache.accumulo.core.iterators.Filter
0
import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly; String lastTable = new KeyExtent(lastTablet, (Text) null).getTableId(); String currentTable = new KeyExtent(prevEndRowKey.getRow(), (Text) null).getTableId();
0
import org.apache.accumulo.core.cli.ScannerOpts; static class Opts extends ClientOnDefaultTable { private void execute(Opts opts, ScannerOpts scanOpts) throws Exception { scanner.setBatchSize(scanOpts.scanBatchSize); Opts opts = new Opts(); ScannerOpts scanOpts = new ScannerOpts(); opts.parseArgs(...
0
if (locale == null) { locale = getForm().getLocale(); }
0
import org.apache.accumulo.core.client.IteratorSetting; settings = IteratorUtil.generateInitialTableProperties(); /** * @deprecated since 1.4 {@link #attachIterator(String, IteratorSetting)} */ public void addAggregators(List<? extends org.apache.accumulo.core.iterators.conf.PerColumnIteratorConfig> aggre...
0
@SerializedName("role") private String role; /** * Sets both the {@code componentName} and the {@code role}. Status commands * use the {@code componentName}, while execution commands use the * {@code role}. It's simpler for the Python to just worry about {@code role}, * so this ensures that both are ...
0
service.getName(), getName(),
0
import org.apache.commons.vfs.util.Messages; final String message = Messages.getString( "vfs.impl/delete-temp.warn", file.getName() ); getLogger().warn( message, e );
0
SparkContextFactory.stopSparkContext(jsc);
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.model.pipeline.v1.Endpoints;
0
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; setIsDone(); } // null is the only value of type Void, but findbugs thinks // it violates the contract of CompletableFuture.complete @SuppressFBWarnings("NP_NONNULL_PARAM_VIOLATION") private void setIsDone() {
0
* @since 1.0
0
List<HookNotification> baseMsgs = super.getNotificationMessages(); if (CollectionUtils.isEmpty(baseMsgs)) { LOG.debug("Skipped processing of column-rename (on a temporary table?)"); return null; } List<HookNotification> ret = new ArrayList<>(baseMsgs); ...
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
attributeName ) );
0
* Beider-Morse phonetic encodings are optimised for family names. However, they may be useful for a wide range * of words. * "<code>dortlaj|dortlej</code>". Thus, the full, combined encoding is "{@code (ortlaj|ortlej)-(dortlaj|dortlej)}". * true if multiple encodings are to be combined with a '|', fa...
0
package org.apache.hadoop.metadata.types; import org.apache.hadoop.metadata.MetadataException; import org.apache.hadoop.metadata.MetadataException;
0
// NewDefinitions are allowed to have a : in their id because they can look up // class widgets from the library directly if (id.indexOf(':') != -1 && !(widgetDefinition instanceof NewDefinition)) {
0
connector = new ServerConnector(server, getConnectionFactories(conf)); private static AbstractConnectionFactory[] getConnectionFactories(AccumuloConfiguration conf) { HttpConnectionFactory httpFactory = new HttpConnectionFactory(); return new AbstractConnectionFactory[] {httpFactory}; SslConnectio...
0
expect(quotaManager.getQuotaInfo(ROLE, storageUtil.storeProvider)).andReturn(infoMock);
0
String inAttr = elt.getAttributeNS(null, SVG_IN_ATTRIBUTE);
0
import static com.google.common.base.Preconditions.checkNotNull; checkNotNull(classToBind, "Missing a class to bind to a JAXB context."); checkNotNull(rootElementName, "Missing a root element name."); checkNotNull(baseOutputFilename, "Missing a filename to write to.");
0
import org.apache.accumulo.core.conf.SiteConfiguration; AccumuloConfiguration conf = SiteConfiguration.getInstance();
1
import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; DefaultEntityDeserializer entitygen = new DefaultEntityDeserializer( DefaultEntityDeserializer entitygen = new DefaultEntityDeserializer( DefaultEntityDeserializer entitygen = new DefaultEntityDeseri...
0
static private class BaseProviderTestSuite extends ProviderTestSuite { public BaseProviderTestSuite(final ProviderTestConfig providerConfig) throws Exception final ProviderTestSuite sftpSuite = new BaseProviderTestSuite(standardTestCase); final ProviderTestSuite sftpStreamSuite = new BasePro...
0
new LinkedList<>();
0