Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/test/org/apache/commons/jelly/tags/junit/FailTag.java,v 1.3 2003/10/09 21:21:31 rdonkin Exp $
* $Revision: 1.3 $
* $Date: 2003/10/09 21:21:31 $
* any, must include the following acknowledgement:
* Alternately, th... | 0 |
import org.apache.sshd.common.Closeable;
protected Closeable getInnerCloseable() {
return builder()
.close(super.getInnerCloseable())
.run(toString(), () -> Socket.close(socket))
.build(); | 0 |
public interface MiniClusterOnlyTests {} | 0 |
* @version CVS $Id: SourcePropsWritingTransformer.java,v 1.3 2003/11/15 04:21:29 joerg Exp $
* @param par Parameters for the transformer | 0 |
public class XMLX509CertificateTest { | 0 |
props.put("instance.name",name); | 0 |
int total = summary.getTaskTotal();
boolean skip = summary.isStageSkippable();
Map<HostRoleStatus, Integer> counts = calculateStatusCounts(summary.getTaskStatuses());
HostRoleStatus stageStatus = calculateSummaryStatus(counts, total, skip); | 0 |
public class ProviderWriteTests
extends AbstractProviderTestCase | 0 |
chunked.close();
public void negative_chunksize_not_permitted() throws Exception{
ChunkedOutputStream chunked = new ChunkedOutputStream(new ByteArrayOutputStream(), 0);
chunked.close();
chunked.close(); | 0 |
Copyright 2000-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 |
if(readCounter > -1){
lh.setLast(readCounter); | 0 |
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRecordType;
import org.apache.beam.sdk.values.BeamRecord;
protected BeamKafkaTable(BeamSqlRecordType beamSqlRowType) {
public BeamKafkaTable(BeamSqlRecordType beamSqlRowType, String bootstrapServers,
public abstract PTransform<PCollection<KV<byte[], byte[]>>... | 0 |
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
final Bundle bundle = ref.getBundle();
if ( bundle != null )
{
final BundleContext ctx = bundle.getBundleContext();
if ( ctx != null )
{
f = ... | 0 |
* @throws IOException if an error occurs while writing to the stream
* @throws IOException if an error occurs while reading from the stream
* @throws ClassNotFoundException if an object read from the stream can not be loaded | 0 |
// May need to first transition to UPGRADED from UPGRADING | 0 |
* org.w3c.dom.svg.SVGAnimatedEnumeration#setBaseVal(short)}. | 0 |
* @version CVS $Id: CopletDataFieldHandler.java,v 1.4 2003/08/19 14:09:34 cziegeler Exp $
public class CopletDataFieldHandler extends AbstractFieldHandler { | 0 |
public <T, E extends Exception> T read(Work<T, E> work) throws StorageException, E {
return delegate.read(work); | 0 |
protected static final Configuration EMPTY_CONFIG;
static {
DefaultConfiguration config = new DefaultConfiguration("empty");
config.makeReadOnly();
EMPTY_CONFIG = config;
}
* @see org.springframework.beans.factory.config.BeanPostProcessor#postProcessAfterInitialization(Object, S... | 0 |
/*
* Copyright (c) 1999 World Wide Web Consortium
* (Massachusetts Institute of Technology, Institut National de Recherche
* en Informatique et en Automatique, Keio University).
* All Rights Reserved. http://www.w3.org/Consortium/Legal/
*
* $Id$
*/
package org.w3c.flute.util;
import org.w3c.css.sac.CSSExceptio... | 1 |
import javax.swing.JOptionPane;
javax.swing.JOptionPane.showMessageDialog(null, "Starting latest Batik");
(resources.getString(CSS_PARSER_CLASS_NAME_KEY));
// Let the user know that we are
// Note that frame may be null, which is
// a valid a... | 0 |
/** The variable name to hold the list of tokens */
/** the delimiter that separates the tokens */ | 0 |
/**
* Construct an instance with the specified name
* @param name name of the test
*/
/**
* Create a Test Suite
* @return the test suite.
*/
/**
* Static main.
* @param args arguments
*/ | 0 |
import com.google.cloud.dataflow.sdk.util.ExecutableTrigger;
return WindowingStrategy.of(typedFn, ExecutableTrigger.create(typedTrigger)); | 0 |
return Collections.EMPTY_LIST;
return Collections.EMPTY_LIST;
return Collections.EMPTY_LIST; | 0 |
ElementValue default_value;
/**
* @param annotation_type the subclass type of the annotation
* @param name_index Index pointing to the name <em>Code</em>
* @param length Content length in bytes
* @param file Input stream
* @param constant_pool Array of constants
*/
AnnotationDe... | 0 |
* Tests for {@link Partition}.
input.apply(Partition.of(5, new IdentityFn()));
input.apply(Partition.of(0, new IdentityFn())); | 0 |
import org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode;
if (e.getErrorCode().equals(SecurityErrorCode.TABLE_DOESNT_EXIST))
return new org.apache.accumulo.proxy.thrift.TableNotFoundException(e.toString()); | 0 |
import org.apache.sshd.common.RuntimeSshException;
boolean authed;
try {
authed = authenticator.authenticate(session, username, clientKey, clientHostName, clientUsername, certs);
} catch (Error e) {
log.warn("doAuth({}@{}) failed ({}) to consult authenticator for {} key={... | 0 |
String namespaceId = Tables.getNamespaceId(master.getInstance(), tableId); | 0 |
* @version CVS $Id: DOMStreamer.java,v 1.5 2003/03/11 06:50:00 jefft Exp $
String nodeName = node.getNodeName(); // SAX 1 node name, for debugging
throw new SAXException("[NamespaceNormalizingDOMStreamer] Encountered a DOM Element '"+nodeName+"' without a localName. DOM Lev... | 0 |
new MagicNumberFileFilter("0", -1); | 0 |
*
*
*
*
* @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster</a>
* @return the parent window | 1 |
import com.google.common.net.HostAndPort;
final HostAndPort location = HostAndPort.fromString(opts.location);
final Instance inst = opts.getInstance();
final ServerConfigurationFactory conf = new ServerConfigurationFactory(inst);
final ClientContext context = new AccumuloServerContext(conf) {
Tabl... | 0 |
/*
import java.net.MalformedURLException;
public String getCachedBundleURL()
return m_refDir.toURL().toString();
catch (MalformedURLException ex)
// This should never happen.
return null; | 0 |
boolean useDrawRenderedImage = false;
// For some reason using the transform version
// causes a gStackUnderflow error but if I just
// use the drawImage with an x & y it works.
g2d.drawImage(subBI, iR.x, iR.y, ... | 0 |
import org.apache.accumulo.core.conf.SiteConfiguration;
ZooReaderWriter zk = new ZooReaderWriter(new SiteConfiguration()); | 0 |
import org.apache.batik.dom.GenericDOMImplementation;
import org.apache.batik.dom.util.SAXDocumentFactory;
"org.apache.batik.css.parser.Parser";
/**
* The gui resources file name
*/
public final static String RESOURCES =
"org.apache.batik.apps.regsvggen.resources.Messages";
/**
... | 0 |
in.apply("KvSwap", ParDo.of(new OldDoFn<KV<K, V>, KV<V, K>>() { | 0 |
if (m_grouping.parallelScheduler != null) {
int taskParallelism = m_grouping.parallelScheduler.maxDegreeOfParallelism;
if (taskParallelism == Integer.MAX_VALUE) {
taskParallelism = ctx.getDefaultMaxDegreeOfParallelism();
}
hostSets = SetUtils.split(tw.getHost... | 0 |
import org.apache.cocoon.portal.coplet.CopletInstance;
import org.apache.cocoon.portal.coplet.CopletInstanceFeatures;
public void contextualize(Context aContext) throws ContextException {
this.context = aContext;
public void prepare(PortalManagerAspectPrepareContext renderContext, PortalService service)... | 0 |
import org.apache.hc.core5.function.Supplier;
| 0 |
import java.io.IOException;
* Parses the current reader representing an angle.
protected void doParse() throws ParseException, IOException {
current = reader.read();
current = reader.read();
current = reader.read();
current = reader.read();
current = reader.read();
current = read... | 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
* "Lice... | 0 |
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.Struct; | 0 |
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.stub.StreamObserver; | 0 |
* It uses file's path as the primary key.
// Convert to a URI because the location of a bundle
// is typically a URI. At least, that's the case for
// autostart bundles.
String location = b.getLocation();
if (location != null)
{
URI uri;
try
... | 0 |
* {@code null} if the index is out of range | 0 |
if (divisor == 0.0f)
= CSSUtilities.getComputedStyle(filterElement);
GraphicsNodeRenderContext rc =
| 0 |
@Test(timeout = (NUM_LOCATION_PASSES + 2) * LOCATION_DELAY) | 0 |
import org.apache.commons.lang3.StringUtils;
addAttributeData(parent, result, qualifiedName(name));
String prefix =
(name.getPrefix() != null) ? prefixName(name.getPrefix(),
null) : null;
if (prefix == null || StringUtils.startsWith... | 0 |
import org.apache.felix.dependencymanager.test2.components.Ensure;
import org.apache.felix.dependencymanager.test2.integration.common.TestBase; | 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 |
import org.apache.ambari.server.orm.dao.MemberDAO;
import org.apache.ambari.server.orm.dao.PrivilegeDAO;
import org.apache.ambari.server.orm.entities.MemberEntity;
import org.apache.ambari.server.orm.entities.PrincipalEntity;
import org.apache.ambari.server.orm.entities.PrivilegeEntity;
import java.util.LinkedList;
imp... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastHashMap.java,v 1.7 2002/08/12 18:00:46 pjack Exp $
* $Revision: 1.7 $
* $Date: 2002/08/12 18:00:46 $
* @version $Id: TestFastHashMap.java,v 1.7 2002/08/12 18:00:46 pjack... | 0 |
c.newInstance();
private boolean available = false;
private DaemonController daemonController = null;
private String[] args = 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 u... | 0 |
package org.apache.beam.sdk.runners;
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.options.DirectPipelineOptions;
* {@link org.apache.beam.sdk.Pipeline#run()}. | 0 |
import org.apache.sshd.common.session.Session;
StringBuilder sb = new StringBuilder(Session.MAX_VERSION_LINE_LENGTH + Integer.SIZE);
sb.append("SSH-2.0-software");
do {
sb.append("01234567890123456789012345678901234567890123456789");
} while (sb.length() < Session.MAX_VERSION... | 0 |
* @return the query string part of the filename
* @return the path and its query string
* @return the uri | 0 |
LOG.debug("Analyzing upgrade item {} with tasks: {}.", entity.getText(), entity.getTasks()); | 0 |
package org.apache.cocoon.blocks; | 0 |
* @version CVS $Id: EP_RepeatLeft.java,v 1.2 2003/03/11 19:05:01 vgritsenko Exp $ | 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 |
/*
* $HeadURL$
* $Revision$
* $Date$
*
* ====================================================================
*
* Copyright 1999-2006 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... | 0 |
* @throws Exception
* @throws Exception | 0 |
List<String> inclusiveNamespaces = new ArrayList<>();
List<String> inclusiveNamespaces = new ArrayList<>();
List<String> inclusiveNamespaces = new ArrayList<>();
List<String> inclusiveNamespaces = new ArrayList<>();
List<String> inclusiveNamespaces = new ArrayList<>()... | 0 |
/***
* Registers a notification handler to which will be sent
* notifications of received telnet option negotiation commands.
* <p>
* @param notifhand - TelnetNotificationHandler to be registered
***/
public void registerNotifHandler(TelnetNotificationHandler notifhand)
{
... | 0 |
* Thrown when there is a failure condition during the encoding process. This exception is thrown when an Encoder
* encounters a encoding specific exception such as invalid data, inability to calculate a checksum, characters outside
* of the expected range.
* @param message
* a useful message rel... | 0 |
@Override
@Override | 0 |
import org.apache.http.impl.DefaultConnectionReuseStrategy;
import org.apache.http.impl.DefaultHttpResponseFactory;
HttpService httpService = new HttpService(
httpproc,
new DefaultConnectionReuseStrategy(),
... | 0 |
* commmit the transaction and make sure
/**
*
* @return transaction log's elapsed sync time in miliseconds
*/
long getTxnLogSyncElapsedTime(); | 0 |
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class) | 0 |
* Copyright (c) 2002 The Apache Software Foundation. All rights | 0 |
return new IF_ACMPEQ(super.getTarget()); | 0 |
(AffineTransform.getRotateInstance( Math.toRadians( theta ) ));
= AffineTransform.getRotateInstance( Math.toRadians( theta ), cx, cy);
(AffineTransform.getShearInstance(Math.tan( Math.toRadians( skx ) ), 0));
(AffineTransform.getShearInstance(0, Math.tan( Math.toRadians( ... | 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 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"); you ma... | 0 |
* @version $Id$ | 0 |
import org.apache.http.nio.protocol.BasicAsyncRequestHandler;
import org.apache.http.nio.protocol.UriHttpAsyncRequestHandlerMapper;
UriHttpAsyncRequestHandlerMapper registry = new UriHttpAsyncRequestHandlerMapper();
UriHttpAsyncRequestHandlerMapper registry = new UriHttpAsyncRequestHandlerMapper();
... | 0 |
public String hello();
public int add();
| 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 |
import org.apache.aurora.gen.RoleSummary;
import org.apache.aurora.gen.RoleSummaryResult;
public Response getRoleSummary() {
Set<RoleSummary> summaries = Sets.newHashSet();
RoleSummary summary = new RoleSummary();
summaries.add(summary);
.setResult(Result.roleSummaryResult(new RoleSummaryResul... | 0 |
import com.twitter.common.stats.StatsProvider;
import org.apache.aurora.scheduler.async.AsyncModule;
import org.apache.aurora.scheduler.testing.FakeStatsProvider;
new AsyncModule(),
bind(StatsProvider.class).toInstance(new FakeStatsProvider()); | 1 |
/*
* 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 ap... | 0 |
private String m_id;
m_id = repository + ":" + path + "/" + name;
public String getID() {
return m_id;
}
put(Resource.ID, getID()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MapUtils.java,v 1.25 2003/06/20 07:50:21 scolebourne Exp $
* <li>{@link #transformedSortedMap(SortedMap, Transformer, Transformer)}
* <li>{@link #typedSortedMap(SortedMap, Clas... | 0 |
* Implements a response intercepter that logs the upload id if the upload id header exists and it
* is the first request (does not have upload_id parameter in the request). Only logs if debug level
* is enabled. | 1 |
* Copyright 2006-2010 The Apache Software Foundation.
import javax.xml.crypto.dsig.dom.DOMValidateContext;
DOMValidateContext vc = validator.getValidateContext
(file, new KeySelectors.RawX509KeySelector());
vc.setProperty("javax.xml.crypto.dsig.cacheReference", Boolean.TRUE);
boolean core... | 0 |
PCollection<Long> longs = p.apply("mkLines", GenerateSequence.from(0).to(count));
p.apply("mkOtherLines", GenerateSequence.from(0).to(count))
p.apply("VarLengthLongs", GenerateSequence.from(0).to(5)).setCoder(VarLongCoder.of()); | 0 |
LOG.info("Starting servlet context destroy");
//stop services
stopServices();
super.contextDestroyed(servletContextEvent);
LOG.info("Stopping services");
} | 0 |
return parserError("assignment", getDetail()); | 0 |
import org.apache.felix.dm.annotation.api.ServiceDependency; | 0 |
.onResultOf(IJobInstanceUpdateEvent::getTimestampMs);
storage.write((NoResult.Quiet) storeProvider ->
saveJobUpdate(storeProvider.getJobUpdateStore(), update, ROLLING_FORWARD));
storage.write((NoResult.Quiet) storeProvider ->
storage.write((NoResult.Quiet) storeProvider ->
storage.write((N... | 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.batik.dom.svg.SVGDOMImplementation;
import org.w3c.dom.DOMImplementation;
import org.w3c.dom.Document; | 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 |
import java.util.List;
import java.util.Map;
* @return A <u>snapshot</u> of the currently bound forwarded local ports
* as "pairs" of port + bound {@link SshdSocketAddress}
*/
List<Map.Entry<Integer, SshdSocketAddress>> getLocalForwardsBindings();
/**
* @return A <u>snapshot</u> o... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.