Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* @param algorithm to use
* @param key the key to use
* @param algorithm to use
* @param key the key to use
* @param algorithm to use
* @param key the key to use
* @param algorithm to use.
* @param key the key to use | 0 |
* Flatten.PCollections} that takes no input {@link PCollection PCollections}.
PCollectionList<T>, PCollection<T>, Flatten.PCollections<T>> {
Flatten.PCollections<T> transform) { | 0 |
import java.util.Objects;
this.stream = Objects.requireNonNull(stream); | 0 |
import java.io.FileInputStream;
import java.util.Enumeration;
import java.util.Properties;
private Properties prop = null;
prop = new Properties();
try {
prop.load(new FileInputStream("startfile"));
}
catch (Exception e) {
// Cannot find startfile.properties.
... | 0 |
* {@code PropertiesConfiguration}, {@code XMLPropertiesConfiguration}
* @version $Id$
@Override
@Override
Iterator<String> keys = getKeys();
String key = keys.next();
writeProperty(writer, key, (List<?>) value);
private void writeProperty(PrintWriter out, String key, L... | 0 |
/** Whether or not inheritance is enabled */ | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.MoreObjects;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists; | 0 |
assertThat(underlying.inputElems, emptyIterable());
assertThat(underlying.inputElems, emptyIterable()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestListIteratorWrapper.java,v 1.3 2003/08/31 17:28:40 scolebourne Exp $
* $Revision: 1.3 $
* $Date: 2003/08/31 17:28:40 $
* any, must include the following acknowl... | 0 |
package org.apache.ambari.infra.solr.commands;
import org.apache.ambari.infra.solr.AmbariSolrCloudClient; | 0 |
* @return true if options are valid, false otherwise (IllegalArgumentException preferred)
* @exception IllegalArgumentException
* if there are problems with the options | 0 |
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.map.BeamSqlMapExpression;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.map.BeamSqlMapItemExpression;
// map functions
case "MAP":
return new BeamSqlMapExpression(subExps);
switch (subExps.get(0).g... | 0 |
Key outputKey =
new Key(key, new Text("colf"), new Text(String.format("col_%07d", index)), timestamp); | 0 |
import cz.seznam.euphoria.flink.streaming.StreamingElement;
extends RichSinkFunction<StreamingElement<?, T>>
public void invoke(StreamingElement<?, T> elem) throws Exception { | 0 |
final Profile processedProfile = this.processProfile(profile);
this.storeUserProfile(layoutKey, processedProfile);
this.storeUserProfile(layoutKey, processedProfile);
return processedProfile; | 0 |
package org.apache.commons.beanutils2.locale.converters;
import org.apache.commons.beanutils2.ConversionException;
* <p>Standard {@link org.apache.commons.beanutils2.locale.LocaleConverter}
* {@link org.apache.commons.beanutils2.ConversionException}
* Create a {@link org.apache.commons.beanutils2.locale.Locale... | 1 |
import static com.google.common.base.Preconditions.checkArgument;
class TransformEvaluatorRegistry implements RootTransformEvaluatorFactory {
public Collection<CommittedBundle<?>> getInitialInputs(AppliedPTransform<?, ?, ?> transform) {
checkState(
!finished.get(), "Tried to get initial inputs for a finis... | 0 |
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken;
import org.apache.accumulo.core.client.security.tokens.PasswordToken; | 0 |
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.ClassicHttpResponse;
ClassicHttpRequest generateRequest() throws IOException, HttpException;
void responseReceived(ClassicHttpResponse response) throws IOException, HttpException; | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
import org.apache.beam.sdk.testing.NeedsRunner;
import org.junit.experimental.categories.Category;
@Category(NeedsRunner.class)
@Category(NeedsRunner.class)
@Category(NeedsRunner.class)
@Category(NeedsRunner.class) | 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 |
/*
* 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 |
if (range == null)
return; | 1 |
package org.apache.felix.sigil.config;
import org.apache.felix.sigil.model.eclipse.ISigilBundle;
import org.apache.felix.sigil.model.osgi.IBundleModelElement;
import org.apache.felix.sigil.model.osgi.IPackageExport;
import org.apache.felix.sigil.model.osgi.IPackageImport;
import org.apache.felix.sigil.model.osgi.IRequi... | 0 |
* @version $Id: UnixFTPEntryParser.java,v 1.5 2002/08/08 20:01:41 brekke Exp $
+ "((?:[0-9])|(?:[0-2][0-9])|(?:3[0-1]))\\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 may not... | 0 |
import org.apache.accumulo.core.summary.SummaryReader;
@Parameter(names = {"--summary"}, description = "Print summary data in file")
boolean printSummary = false;
if (opts.printSummary) {
SummaryReader.print(iter, System.out);
}
| 1 |
* A {@link Coder} using Google Protocol Buffers 2 binary format.
* <p>To use, specify the {@link Coder} type on a PCollection containing Protocol Buffers messages. | 0 |
import com.google.cloud.dataflow.sdk.transforms.windowing.Trigger;
private Trigger<W>.TriggerContext context(BitSet finishedSet) {
Trigger<W>.TriggerContext context = context(finishedSet);
private class TriggerContextImpl extends Trigger<W>.TriggerContext {
trigger.getSpec().super();
public Trigger<W>... | 0 |
if (old.isFile() && old.getParent() != null) | 0 |
suite.addTest(TestXmlRuleInfo.suite()); | 0 |
* @throws IllegalArgumentException
* @throws IllegalArgumentException | 0 |
import org.apache.batik.dom.AbstractNode;
// Importation ////////////////////////////////////////////////////
/**
* Exports this node to the given document.
*/
protected Node export(Node n, AbstractDocument d) {
super.export(n, d);
((AbstractElement)n).initializeAttributes();
super.exp... | 0 |
@Deprecated
@Deprecated
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
private LogsearchSimpleAuthenticationProvider simpleAuthenticationProvider; | 0 |
import org.apache.batik.util.DoublyIndexedTable; | 0 |
import org.springframework.stereotype.Component;
@Component | 0 |
/**
* Comment for <code>serialVersionUID</code>.
*/
private static final long serialVersionUID = 3256443620654331699L; | 0 |
// test XMLSignatureFactory.newSignatureProperties(List, String)
props = factory.newSignatureProperties(null, id);
fail("Should raise a NPE for null content");
props = factory.newSignatureProperties(list, id);
fail("Should raise an IAE for empty content");
... | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/DoubleArrayConverter.java,v 1.2 2002/07/13 02:22:08 craigmcc Exp $
* $Revision: 1.2 $
* $Date: 2002/07/13 02:22:08 $
* @version $Revision: 1.2 $ $Date: 2002/07/13 02:22:0... | 0 |
import java.util.HashMap;
Map<Long, IoSession> mina = new HashMap<>(managedMap);
Map<Long, org.apache.sshd.common.io.IoSession> sessions = new HashMap<>(mina.size());
protected void handleConfigurationError(
SocketSessionConfig config, String propName, Object propValue, RuntimeIoExceptio... | 0 |
@Deprecated
@Deprecated | 0 |
* Creates a <code>Paint</code> according to the specified parameters. | 0 |
import org.apache.accumulo.core.client.admin.SamplerConfiguration;
public final SamplerConfiguration samplerConfig;
Map<String,Map<String,String>> ssio, Authorizations authorizations, SamplerConfiguration samplerConfig, long batchTimeOut) {
this.samplerConfig = samplerConfig; | 1 |
/**
* Tells if a node must be outputed in c14n.
* @param n
* @return 1 if the node should be outputed.
* 0 if node must not be outputed,
* -1 if the node and all it's child must not be output.
*
*/
public int isNodeInclude(Node... | 1 |
import org.apache.beam.sdk.coders.AtomicCoder;
private static class TestDummyCoder extends AtomicCoder<TestDummy> {
private static class MyIntegerCoder extends AtomicCoder<MyInteger> { | 0 |
this, null);
String str = this.context.getProperty( DirectoryWatcher.ENABLE_CONFIG_SAVE );
if (str == null)
str = this.context.getProperty( DirectoryWatcher.DISABLE_CONFIG_SAVE );
if (str != null)
return Boolean.valueOf(str);
* @return <code>true<... | 0 |
import java.util.Set;
import org.apache.ambari.server.actionmanager.Request;
import org.apache.ambari.server.controller.internal.CalculatedStatus;
serverHostName = StageUtils.getHostName();
* Cleans up orphaned shared data Maps due to completed or failed request
* contexts. We are unable to use {@link Request... | 0 |
import com.google.cloud.dataflow.sdk.options.DataflowWorkerLoggingOptions.WorkerLogLevelOverrides;
options.setWorkerLogLevelOverrides(new WorkerLogLevelOverrides()
.addOverrideForName("A", DataflowWorkerLoggingOptions.Level.DEBUG)
.addOverrideForName("B", DataflowWorkerLoggingOptions.Level.ERROR)); | 0 |
* A <code>BeanInfo</code> for the <code>JSVGCanvas</code>.
* Constructs a new <code>BeanInfo</code> for a <code>JSVGCanvas</code>. | 0 |
context.addInput(PropertyNames.COMPRESSION_TYPE, transform.getCompressionType().toString()); | 0 |
* @version CVS $Id: ContinuationsManagerImpl.java,v 1.6 2003/06/19 07:27:47 crossley Exp $
try {
random = SecureRandom.getInstance("SHA1PRNG");
}
catch(java.security.NoSuchAlgorithmException nsae) {
// maybe we are on IBM's SDK
random = SecureRandom.getInstan... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/locale/LocaleConvertTestSuite.java,v 1.2 2003/10/05 13:32:24 rdonkin Exp $
* $Revision: 1.2 $
* $Date: 2003/10/05 13:32:24 $
*
* Copyright (c) 2001-2003 The Apache Software Founda... | 0 |
package org.apache.felix.ipojo.runtime.core.test.components;
import org.apache.felix.ipojo.annotations.Component;
@Component(immediate=true)
public class Immediate {
} | 0 |
private Option forceOpt, tableOpt;
public int execute(String fullCommand, CommandLine cl, Shell shellState) throws AccumuloException, AccumuloSecurityException, TableNotFoundException,
IOException, ParseException {
String tableName;
if (cl.hasOption(tableOpt.getOpt())) {
tableName = cl.getOpt... | 1 |
import org.apache.accumulo.server.util.MetadataTable;
for (String cq : MetadataTable.getDataFileSizes(ke, token).keySet()) {
files.add(ServerConstants.getTablesDir() + "/" + tableId + cq); | 0 |
throw new UnsupportedOperationException(); | 0 |
import org.apache.commons.lang.exception.NestableRuntimeException;
Throwable realEx = e;
// Did we had an exception reported to the error listener?
// this is the real exception
if (LocationUtils.isUnknown(loc)) {
// No location: i... | 0 |
public ConcurrentConnectionTest() {
super();
}
| 0 |
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.Server;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; | 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 |
public EditorViewPartListener(BundleResolverView bundleResolverView)
public void partActivated(IWorkbenchPartReference partRef)
checkRef(partRef);
public void partBroughtToTop(IWorkbenchPartReference partRef)
public void partClosed(IWorkbenchPartReference partRef)
public void partDeactivated... | 0 |
import java.util.concurrent.ExecutorService;
import org.apache.sshd.common.io.AbstractIoServiceFactoryFactory;
public class Nio2ServiceFactoryFactory extends AbstractIoServiceFactoryFactory {
this(null, true);
}
/**
* @param executors The {@link ExecutorService} to use for spawning threads.
*... | 0 |
* data will contain lineLength characters.
* If lineLength <=0, the encoded data is not divided into lines.
* If doEncode is false, lineLength is ignored.
* data will be terminated with this byte sequence (e.g. \r\... | 0 |
* The SVG context.
*/
protected transient SVGContext svgContext;
/**
/**
* Sets the SVG context to use to get SVG specific informations.
*
* @param ctx the SVG context
*/
public void setSVGContext(SVGContext ctx) {
svgContext = ctx;
}
/**
* Returns th... | 0 |
String charset) {
Args.notNull(data, "Input");
Args.notEmpty(charset, "Charset");
Args.notNull(data, "Input");
Args.notNull(data, "Input");
Args.notEmpty(charset, "Charset");
Args.notNull(data, "Input");
Args.notNull(data, "Input");
Args.notNull(da... | 0 |
return fieldIndices.isEmpty();
if (fieldIndices.isEmpty()) { | 0 |
* Key used to retrieve the value of the maximum concurrent open session count per username
*/
String MAX_CONCURRENT_SESSIONS = "max-concurrent-sessions";
/** | 0 |
* @author $Id$ | 0 |
private final ReadWriteLock rwLock;
private final Lock rlock;
private final Lock wlock; | 0 |
import org.apache.accumulo.core.spi.scan.ScanDispatcher.DispatchParmaters;
Comparator<ScanInfo> comparator = factory.createComparator(() -> sec.prioritizerOpts);
String scanExecutorName = dispatcher.dispatch(new DispatchParmaters() {
@Override
public ScanInfo getScanInfo() {
retu... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/UrlValidator.java,v 1.14 2003/08/03 17:29:40 dgraham Exp $
* $Revision: 1.14 $
* $Date: 2003/08/03 17:29:40 $
* @since Validator 1.1
* @version $Revision: 1.14 $ $Date: 2003/08/03... | 0 |
import java.io.FileInputStream;
import java.io.InputStreamReader;
import org.apache.accumulo.core.Constants;
InputStreamReader isReader = null;
isReader = new InputStreamReader(new FileInputStream(log), Constants.UTF8);
reader = new BufferedReader(isReader);
socket.getOutputStr... | 0 |
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.List; | 0 |
package org.apache.accumulo.examples.wikisearch.util; | 0 |
private static final String TEST_KEY = "myProperty";
private static final String TEST_COMMENT = "A comment for my test property";
private static final String TEST_VALUE = "myPropertyValue";
private PropertiesConfigurationLayout layout;
private LayoutTestConfiguration config;
private PropertiesBu... | 0 |
setWhen(PredicateUtils.fromMap((Map<?, ?>) item)); | 0 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
* <p>
* Implementations are expected to be thread-safe.
* </p>
@Contract(threading = ThreadingBehavior.SAFE) | 0 |
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
@Before
@Test | 0 |
TypeSystem ts = getTypeSystem(); | 0 |
Objects.requireNonNull(err, "No error stream"); | 0 |
private void printEndMethod(Attribute attr) {
private String get(InstructionHandle ih) {
private void put(InstructionHandle ih, String line) { | 0 |
float[] data = kernel.getKernelData(null);
StringBuffer kernelMatrixBuf = new StringBuffer( data.length * 8 ); | 0 |
* This method returns a copy of the variables managed by this lookup; so
* modifying this object has no impact on this lookup.
*
return new Variables(variables); | 0 |
log.debug("Received SSH_MSG_KEX_DH_GEX_REQUEST");
log.debug("Send SSH_MSG_KEX_DH_GEX_GROUP");
log.debug("Received SSH_MSG_KEX_DH_GEX_INIT"); | 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 |
import org.apache.hc.core5.annotation.NotThreadSafe;
import org.apache.hc.core5.util.Args; | 1 |
package org.apache.bookkeeper.bookie;
final static Logger LOG = Logger.getLogger(LedgerDescriptor.class);
LedgerCache ledgerCache;
LedgerDescriptor(long ledgerId, EntryLogger entryLogger, LedgerCache ledgerCache) {
this.entryLogger = entryLogger;
this.ledgerCache = ledgerCache;
EntryLogg... | 0 |
import org.springframework.context.annotation.Lazy;
@Lazy | 0 |
@VisibleForTesting
final TransactionalStorage txStorage; | 0 |
UtilWaitThread.sleep(5 * 1000); | 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 |
* An {@code ArtifactStagingService} which stages files to a local temp directory. TODO: refactor to
* use staging session tokens | 1 |
import org.apache.accumulo.core.data.impl.KeyExtent; | 1 |
import org.apache.atlas.repository.graphdb.GraphDBMigrator;
public ComplexAttributesTest(AtlasGraph graph, GraphDBMigrator migrator) {
super(graph, migrator); | 0 |
* and if none of the causes has a name, then the "name" attribute is considered.
* @version CVS $Id: ExceptionSelector.java,v 1.2 2003/04/10 13:59:32 sylvain Exp $
// If exception needs to be unrolled, and it has a cause,
// return the cause name, if not null (recursively)
... | 0 |
import java.util.LinkedHashSet;
Set<Bundle> bundles = new LinkedHashSet<>();
private void startBundles(Set<Bundle> bundles)
boolean logFailures = !consistentlyFailingBundles.equals(bundles); | 0 |
return ZipFileName.parseUri( uri ); | 0 |
import org.apache.felix.ipojo.test.scenarios.manipulation.service.BarService;
import org.apache.felix.ipojo.test.scenarios.manipulation.service.FooService;
String comp_name = "Manipulation-FooProviderType-1";
comp_name = "Manipulation-FooBarProviderType-1";
comp_name = "Manipulation-FooProviderT... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.