Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @version $Id$
0
FTPFile[] listFiles(String relPath) throws IOException;
0
/** Simple mock implementation of {@link IKinesisProducer} for testing. */ public KinesisProducerMock() {} @Override public ListenableFuture<UserRecordResult> addUserRecord( String stream, String partitionKey, ByteBuffer data) { @Override public ListenableFuture<UserRecordResult> addUserRecord(UserRecor...
1
* @author <a href="mailto:imario@apache.org">Mario Ivankovits</a> * @version $Revision: 1.2 $ $Date: 2004/05/21 20:54:34 $
0
/* $Id$ *
0
@Override public Object getTableObject() { return table; }
0
* @param _originalException * @param _originalException
0
package org.apache.beam.sdk.transforms.windowing; import org.apache.beam.sdk.transforms.SerializableFunction; import org.apache.beam.sdk.util.TimeDomain;
0
* try(ClientChannel channel = session.createChannel(ClientChannel.CHANNEL_SHELL)) { Throwable t = record.getThrown(); if (t != null) { t.printStackTrace(pw); if (GenericUtils.isEmpty(command) && isArgumentedOption("-p", argName)) { ...
0
configProps.setProperty(Configuration.KDC_PORT.getKey(), Integer.toString(KDC_TEST_PORT));
0
* @param socket Socket associated with request * @param serviceRegistrationResolver resolver for services. * @param logger the logger
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 org.apache.beam.sdk.values.PBegin; extends PTransform<PBegin, PCollection<KV<URI, String>>> { public PCollection<KV<URI, String>> apply(PBegin input) {
0
/** * Copyright 2013 Apache Software Foundation
0
ColorModel srcCM = cr.getColorModel(); ColorSpace g2dCS = null; if (g2dCM != null) g2dCS = g2dCM.getColorSpace(); if (gc == null) return null; // Can't tell * @param destP The Place for the upper left corner of srcRect in dst.
1
/** The target authentication handler. */ private AuthenticationHandler targetAuthHandler; /** The proxy authentication handler. */ private AuthenticationHandler proxyAuthHandler; protected abstract AuthenticationHandler createTargetAuthenticationHandler(); protected abstract Authenticati...
0
* flushing during shutdown is a performance optimization, its not required. The method will make an attempt to initiate flushes of all tables and give up if
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ByteListIterator.java,v 1.3 2003/11/07 17:24:13 rwaldhoff Exp $ * @version $Revision: 1.3 $ $Date: 2003/11/07 17:24:13 $ * @deprecated This code has been moved t...
0
* @param preserve Whether requested to preserve the permissions and timestamp
0
if (!(cl.hasOption("file") || cl.hasOption("members")) && !cl.hasOption("add") && !cl.hasOption("remove")) {
0
* Allow list parsing methods to create basic FTPFile entries if parsing fails. * <p> * In this case, the FTPFile will contain only the unparsed entry {@link FTPFile#getRawListing()} * and {@link FTPFile#isValid()} will return {@code false} * <p> * If true, the FTPFile for any unparseable e...
0
protected int remainingCapacity() { return buffer.capacity() - buffer.length(); } @Override protected int capacityIncrement() {
0
import org.apache.felix.framework.resolver.Content; public synchronized Content getContent() throws Exception
0
String filename = url.getFile().replace('/', File.separatorChar); filename = decodeUrl(filename); return new File(filename); return file.length(); return BigInteger.valueOf(file.length()); return file.length(); // will be 0 if file does not exist return BigInteger...
0
private static Logger logger = Logger.getLogger(StringUtil.class);
0
final DualTreeBidiMap<String, Integer> deserialised = (DualTreeBidiMap<String, Integer>) in.readObject();
0
super(org.apache.commons.bcel6.Const.LSHL);
0
* If these checks pass, the tokens in the {@code Connection} header will * be examined. In the absence of a {@code Connection} header, the * non-standard but commonly used {@code Proxy-Connection} header takes * it's role. A token {@code close} indicates that the connection cannot * be reused. If there is no such ...
0
* @version $Revision$
0
import java.text.ParseException; import java.text.SimpleDateFormat; import org.apache.commons.logging.LogFactory; // **** This has been changed due to BEANUTILS-449 **** //convertValueToType(converter, "(B)", String.class, localizedDateValue, localizedDatePattern, expectedValue);
0
* A {@link Coder} that encodes BigQuery {@link TableRow} objects in their native JSON format. * {@inheritDoc} * * @throws NonDeterministicException always. A {@link TableRow} can hold arbitrary * {@link Object} instances, which makes the encoding non-deterministic.
0
* @version $Revision$ $Date$
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
.pruningPrefix("com.google.auth")
0
package org.w3c.dom.svg; import org.w3c.dom.DOMException; public interface SVGMatrix { public float getA( ); public void setA( float a ) throws DOMException; public float getB( ); public void setB( float b ) throws DOMException; public float getC( ); ...
1
protected Map<String, Object> getAttributes(Path file, int flags, LinkOption... options) throws IOException { protected Map<String, Object> resolveMissingFileAttributes(Path file, int flags, Map<String, Object> current, LinkOption... options) throws IOException { protected Object resolveMissingFileAttribute...
0
import org.apache.felix.ipojo.extender.queue.Job; public <T> Future<T> submit(Job<T> callable, Callback<T> callback, String description) { public <T> Future<T> submit(Job<T> callable, String description) { public <T> Future<T> submit(Job<T> callable) {
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
/* * 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
* @version $Id$ assertEquals(file.toURI().toURL(), config.getURL()); factory.setConfigurationURL(new File(dir, "testDigesterConfiguration2.xml").toURI().toURL()); URL url = new URL(TARGET_DIR.toURI().toURL() config.load(file.toURI().toURL());
0
public void testNoStagingLocationAndNoTempLocationFails() { DataflowPipelineOptions options = PipelineOptionsFactory.as(DataflowPipelineOptions.class); options.setRunner(DataflowPipelineRunner.class); options.setProject("foo"); thrown.expect(IllegalArgumentException.class); thrown.expectMessage("...
0
return new SwitchTransformer<>(predicates, transformers, defaultTransformer); return new SwitchTransformer<>(false, preds, transformers, defaultTransformer);
1
protected ElementValue(final int type, final ConstantPool cpool) public static ElementValue readElementValue(final DataInput input, final ConstantPool cpool) throws IOException
0
* http://www.apache.org/licenses/LICENSE-2.0
0
for (Object element : elements) { Element currentElement = (Element) element; for (Object element : elements) { Element currentElement = (Element) element; nodeToPaint.getGlobalTransform();
0
import org.apache.beam.sdk.values.WindowingStrategy;
0
@Deprecated String[] subjectAlts = getSubjectAlts(cert, host); !isIPAddress(host); * Extracts the array of SubjectAlt DNS or IP names from an X509Certificate. * @param hostname * @return Array of SubjectALT DNS or IP names stored in the certificate. privat...
0
Map<TreeSet<String>,Long> diskUsage = TableDiskUsage.getDiskUsage(getServerConfig().getConfiguration(), tables, fs, conn, false);
0
Object framework = URLHandlers.getFrameworkFromContext(Util.getFrameworkUUIDFromURL(url.getHost())); framework = URLHandlers.getFrameworkFromContext(Util.getFrameworkUUIDFromURL(u.getHost())); long bundleId = Util.getBundleIdFromRevisionId(Util.getRevisionIdFromURL(u.getHost()));
0
import org.apache.beam.runners.direct.InProcessPipelineRunner; String directOut = runPipeline(InProcessPipelineRunner.class);
0
import java.util.SortedMap; import java.util.TreeMap; private SortedMap<String, List<Map<String, String>>> getRepos(Request request) { SortedMap<String, List<Map<String, String>>> result = new TreeMap<String, List<Map<String, String>>>(); private SortedMap<String, List<Map<String, String>>> createResultForOpera...
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 java.io.InterruptedIOException; throw new InterruptedIOException("Connection already shutdown");
0
public final class Selectors { * A {@link FileSelector} that selects the base file/folder and its direct children. * A {@link FileSelector} that selects only the direct children of the base folder. * A {@link FileSelector} that selects all the descendants of the base folder, but does not select the base ...
1
/* * 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 by applic...
0
// We cannot safely trust any other "instanceof" mechanism. We need to transitively verify // the ancestor hierarchy. JavaClass e = Repository.lookupClass(cname); JavaClass t = Repository.lookupClass(Type.THROWABLE.getClassName()); JavaClas...
0
return new AccumuloReloadingVFSClassLoader(dynamicCPath, vfs, wrapper, 1000, true);
0
PropertyUpgradeBehavior upgradeBehavior = property.getPropertyAmbariUpgradeBehavior(); if (upgradeBehavior.isDelete()) { if (!toRemoveProperties.containsKey(configType)) { toRemoveProperties.put(configType, new HashSet<String>()); toRemoveProperties.ge...
0
import cz.seznam.euphoria.core.client.dataset.windowing.Batch; import cz.seznam.euphoria.core.client.dataset.windowing.Time; assertEquals(Batch.get(), join.getWindowing()); .windowBy(Time.of(Duration.ofHours(1))) assertTrue(join.getWindowing() instanceof Time);
0
public synchronized IModule[] getModules() public synchronized boolean hasModule(IModule module) public synchronized IModule getCurrentModule() public synchronized void addModule(IModule module) public synchronized int getState() public synchronized void setState(int i) public synchronized B...
0
final StringBuilder buf = new StringBuilder(); final SSLIOSession tlsSession = tlsSessionRef.get(); if (tlsSession != null) { buf.append(tlsSession); } else { buf.append(ioSession); } final IOEventHandler handler = getHandler(); if (handler...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/CharacterArrayConverter.java,v 1.6 2003/10/09 20:43:16 rdonkin Exp $ * $Revision: 1.6 $ * $Date: 2003/10/09 20:43:16 $ * Alternately, this acknowledgement may appear i...
0
ExtendedSelector { selector = sel; simpleSelector = simple; return ((ExtendedSelector)selector).getSpecificity() + ((ExtendedSelector)simpleSelector).getSpecificity(); */ return selector; */ return simpleSelector;
1
import org.apache.beam.runners.dataflow.worker.graph.CreateExecutableStageNodeFunction; Function<MutableNetwork<Node, Edge>, MutableNetwork<Node, Edge>> transformToRunnerNetwork; Function<MutableNetwork<Node, Edge>, Node> sdkFusedStage; if (DataflowRunner.hasExperiment(options, "use_executable_stage_b...
0
// <!> TODO only when binding is enabled BridgeEventSupport.addDOMListener(ctx, element);
0
LOG.warning(String.format("Unknown key type: %s", fields[0])); continue;
0
options.setRunner(DirectRunner.class);
0
import java.util.concurrent.TimeUnit; assertThat(queryResult.get(2, TimeUnit.MINUTES).size(), equalTo(3));
0
import java.sql.Types; import org.apache.beam.dsls.sql.TestUtils; import org.apache.beam.dsls.sql.mock.MockedBoundedTable; public static final Date THE_DATE = new Date(100000); sqlEnv.registerTable("ORDER_DETAILS", MockedBoundedTable.of( Types.BIGINT, "order_id", Types.INTEGER, "si...
0
tr.rotate(Math.PI * angle / 180);
0
void endStream(List<? extends Header> trailers) throws IOException;
1
/* * 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
if ("XMLSignatureFactory".equals(type)) { if ("DOM".equals(algo)) { } else if ("KeyInfoFactory".equals(type)) { if ("DOM".equals(algo)) { } else if ("TransformService".equals(type)) { } else if ("http://www.w3.or...
0
import java.nio.charset.StandardCharsets; zk.create(path, "test".getBytes(StandardCharsets.UTF_8), Ids.OPEN_ACL_UNSAFE, zk.create("/a", "test".getBytes(StandardCharsets.UTF_8), Ids.OPEN_ACL_UNSAFE, assertArrayEquals("unexpected data", "test".getBytes(StandardCharsets.UTF_8), contents...
0
// RequestResourceFilter columns.clear(); columns.add(new DBColumnInfo("request_id", Long.class, null, null, false)); columns.add(new DBColumnInfo("service_name", String.class, 255, null, true)); columns.add(new DBColumnInfo("component_name", String.class, 255, null, true)); columns.add(new DBCo...
0
import org.apache.felix.bundlerepository.RepositoryAdmin;
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 ...
0
package org.apache.felix.sigil.model.common; import static org.apache.felix.sigil.model.common.Expressions.and; import static org.apache.felix.sigil.model.common.Expressions.not; import static org.apache.felix.sigil.model.common.Expressions.or; import static org.apache.felix.sigil.model.common.Ops.APPROX; import stati...
0
@Override
0
* If an object cannot be added to the bag, an IllegalArgumentException is thrown.</p> * <pre>Bag bag = PredicatedBag.decorate(new HashBag(), NotNullPredicate.INSTANCE);</pre></p> * This class is Serializable from Commons Collections 3.1.</p> * are validated.</p> * @param <E> the type of the elements in the...
0
* </p> * <p> * <strong>Example 1 - One configuration per table</strong> * </p> * BasicConfigurationBuilder&lt;DatabaseConfiguration&gt; builder = * new BasicConfigurationBuilder&lt;DatabaseConfiguration&gt;(DatabaseConfiguration.class); * <p> * <strong>Example 2 - Multiple configurations per table</strong> ...
0
import cz.seznam.euphoria.core.client.functional.UnaryFunctor; import cz.seznam.euphoria.operator.test.accumulators.SnapshotProvider; import java.util.Map; @Test public void testCounterTest() { execute(new AbstractTestCase<Integer, Integer>() { @Override protected Partitions<Integer> getInput() { ...
0
import org.apache.beam.dsls.sql.interpreter.operator.arithmetic.BeamSqlDivideExpression; import org.apache.beam.dsls.sql.interpreter.operator.arithmetic.BeamSqlMinusExpression; import org.apache.beam.dsls.sql.interpreter.operator.arithmetic.BeamSqlModExpression; import org.apache.beam.dsls.sql.interpreter.operator.arit...
0
* @version $Revision$ $Date$
0
import org.apache.batik.transcoder.image.ImageTranscoder; import org.apache.batik.transcoder.image.PNGTranscoder; * alternate stylesheet. * Returns the <tt>ImageTranscoder</tt> the Test should * use public ImageTranscoder getTestImageTranscoder(){ ImageTranscoder t = super.getTestImageTranscoder(...
0
Connector conn = Monitor.getContext().getConnector(principal, at);
0
* &lt;fb:value id="<i>widget-id</i>" path="<i>xpath-expression</i>"&gt; * &lt;fb:on-update&gt; * &lt;/fb:on-update&gt; * &lt;/fb:value&gt; * @version CVS $Id: ValueJXPathBindingBuilder.java,v 1.3 2004/04/01 12:59:57 mpo Exp $
0
defaultSchema.add(entry.getKey(), UdfImpl.create(method)); defaultSchema.add(functionName, UdfImpl.create(clazz, method));
0
import java.util.Map; private Map<String, Map<String, String>> configurations; @JsonProperty("configurations") public Map<String, Map<String, String>> getConfigurations() { return configurations; } @JsonProperty("configurations") public void setConfigurations(Map<String, Map<String, String>> configu...
0
/** A collection of utility classes. */
0
getDigester().getLogger().debug("[SetPropertyRule]{" + getDigester().getMatch() +
0
import java.nio.ByteBuffer; @Deprecated @Override public Connector getConnector(String user, byte[] pass) throws AccumuloException, AccumuloSecurityException { throw new UnsupportedOperationException(); } @Deprecated @Override public Connector getConnector(String user, ByteBuffer pass...
0
if (!entry.getKey().getRow().toString().startsWith(MetadataTable.ID.canonicalID()))
1
import org.apache.ambari.server.security.authentication.AmbariUserAuthentication;
0
interface SaxBit extends Serializable { void send(ContentHandler contentHandler) throws SAXException; public final static class StartDocument implements SaxBit { public final static class EndDocument implements SaxBit { public final static class PI implements SaxBit { public final static cla...
0
final HttpContext context) throws IOException, ClientProtocolException { final HttpContext localContext = context != null ? context : new BasicHttpContext(); final HttpRequest wrapped; acceptEncodingInterceptor.process(wrapped, localContext); final HttpRespons...
0
shellState.getReader().println("Removed "+pluginType+" on " + tableName); shellState.getReader().println(ent.getKey() + ": " + ent.getValue());
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/TestTypeValidator.java,v 1.6 2004/02/21 17:10:30 rleland Exp $ * $Revision: 1.6 $ * $Date: 2004/02/21 17:10:30 $ * Copyright 2001-2004 The Apache Software Foundation * Licensed und...
0
import java.util.Map; import org.apache.aurora.scheduler.storage.entities.IServerInfo; import org.apache.mesos.Protos.DiscoveryInfo; import org.apache.mesos.Protos.Port; @VisibleForTesting static final String DEFAULT_PORT_PROTOCOL = "TCP"; private final IServerInfo serverInfo; MesosTaskFactoryImpl( ...
0
import org.apache.beam.sdk.options.PipelineOptionsFactory; @Test public void testGameStatsOptions() { PipelineOptionsFactory.as(GameStats.Options.class); }
0