Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.runners.core.construction.graph.PipelineNode.PCollectionNode;
PCollectionNode getPCollection(); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestSet.java,v 1.3 2003/07/12 15:11:25 scolebourne Exp $
* $Revision: 1.3 $
* $Date: 2003/07/12 15:11:25 $
* @version $Id: TestSet.java,v 1.3 2003/07/12 15:11:25 scolebou... | 0 |
public StartCronResponse startCronJob(JobKey jobKey, SessionKey session) throws TException {
logUserAction(session, "startCronJob|jobKey: %s", jobKey);
return delegate.startCronJob(jobKey, session); | 0 |
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a> | 0 |
LOG.debug(validationResult.get()); | 0 |
long stamp = wid.maxTimestamp() - 1; | 0 |
public class TagTransformer extends AbstractXMLProducer
implements Transformer, Serviceable, Configurable,
Disposable, Recyclable {
getLogger().fatal("recycle: internal Error, tagSelectorStack not empty");
ServiceSelector tagSele... | 0 |
import com.google.common.collect.ImmutableSet;
import org.apache.aurora.scheduler.base.Tasks;
import org.apache.aurora.scheduler.storage.Storage;
import org.apache.aurora.scheduler.storage.TaskStore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
private FakeStatsProvider statsProvider;
st... | 0 |
/**
* @since 2.0.0
*/
public IsolationException(Exception cause) {
super(cause);
}
public IsolationException() {
super();
} | 0 |
* @version $Id: TestConfigurationFactory.java,v 1.11 2004/06/02 16:42:25 ebourg Exp $
configuration = compositeConfiguration;
configuration = compositeConfiguration; | 0 |
"org.apache.hadoop.*", "com.sun.org.apache.xerces.*"}) | 0 |
import org.apache.batik.util.DoublyIndexedTable; | 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 |
@Nullable @org.apache.avro.reflect.Nullable public final Person newPerson;
@Nullable @org.apache.avro.reflect.Nullable public final Auction newAuction;
@Nullable @org.apache.avro.reflect.Nullable public final Bid bid; | 1 |
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import static com.fasterxml.jackson.annotation.JsonAutoDete... | 0 |
* @version CVS $Id: WidgetReplacingPipe.java,v 1.20 2003/12/26 18:12:18 vgritsenko Exp $
if (inWidgetElement) {
if (inWidgetElement) { | 0 |
* Copyright 1999-2006 The Apache Software Foundation | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/util/TypeUtils.java,v 1.12 2003/10/09 21:31:42 rdonkin Exp $
* $Revision: 1.12 $
* $Date: 2003/10/09 21:31:42 $
* any, must include the following acknowledgement:
* Alternately, th... | 0 |
import org.apache.felix.sigil.common.model.IModelElement;
import org.apache.felix.sigil.common.model.ModelElementFactory;
import org.apache.felix.sigil.common.model.eclipse.ISigilBundle;
import org.apache.felix.sigil.common.model.osgi.IPackageImport;
import org.apache.felix.sigil.common.model.osgi.IPackageModelElement; | 0 |
try (AccumuloClient c = createClient()) {
try (AccumuloClient c = createClient()) { | 0 |
return new InMemoryValue<>();
return new InMemoryBag<>(); | 0 |
* @version $Id$ | 0 |
final Map<byte[], BigInteger> map
| 0 |
import static org.junit.Assert.assertTrue;
assertTrue("Had more tasks to run", queued.isEmpty());
assertFalse("Had more tasks that needed to be submitted", itr.hasNext()); | 0 |
int maxLineLen,
int maxHeaderCount,
super(buffer, maxLineLen, maxHeaderCount);
public HttpRequestParser(
final SessionInputBuffer buffer,
final HttpRequestFactory requestFactory) {
this(buffer, -1, -1, requestFactory);
}
| 0 |
package org.apache.felix.gogo.command; | 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 |
/**
* DBCP-412
* Verify that omitting factory.setPool(pool) when setting up PDS does not
* result in NPE.
*/
public void testFixFactoryConfig() throws Exception {
Properties props = new Properties();
props.setProperty("user", "username");
props.setProperty("passw... | 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 static final
public static final
public static final
public static final
public static final
public static final
GVTAttributedCharacterIterator.TextAttribute TEXTPATH =
public static final
GVTAttributedCharacterIterator.TextAttribute ANCHOR_TYPE =
public static final
... | 0 |
public boolean tryClaim(Void position) {
public void processElement(
ProcessContext context, RestrictionTracker<SomeRestriction, Void> tracker) {}
ProcessContext context, RestrictionTracker<SomeRestriction, Void> tracker) { | 0 |
public PutResult put(InputStream stream, PutOptions options) throws Exception { | 0 |
INSTANCE_GUID_NOT_FOUND(404, "ATLAS4045E", "Given instance guid {0} is invalid/not found"), | 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.http.HttpResponse;
public void process(final HttpResponse response, final HttpContext context) | 0 |
metatypeLocation = NEW_LOCATION.replace(File.separatorChar, '/') + "/" + baseName; | 0 |
pool.setBlockWhenExhausted(false); | 1 |
char newbuffer[] = new char[Math.max(this.buffer.length << 1, newlen)];
expand(newlen);
if (str == null) {
str = "null";
}
int strlen = str.length();
int newlen = this.len + strlen;
if (newlen > this.buffer.length) {
expand(newlen);
... | 0 |
ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
ConfigurationBuilder configurationBuilder = new ConfigurationBuilder(context);
AuthConfigurationBuilder authConfigurationBuilder = new AuthConfigurationBuilder(context);
Map<String, String> authParams = authConfigura... | 0 |
@SuppressWarnings("serial") | 0 |
addRequestHandler(new PuttyRequestHandler()); | 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 |
package examples.unix; | 0 |
import java.util.Map;
import org.apache.avalon.framework.parameters.Parameters;
* @version CVS $Id: TestCronJob.java,v 1.2 2003/09/05 10:22:39 giacomo Exp $
extends AbstractLogEnabled
implements CronJob, Configurable, Component, ConfigurableCronJob {
/** Parameter key for the message */
public static final Str... | 0 |
final InetSocketAddress remoteAddress = new InetSocketAddress("localhost", this.server.getLocalPort());
final InetSocketAddress remoteAddress = new InetSocketAddress("localhost", this.server.getLocalPort());
final InetSocketAddress remoteAddress = new InetSocketAddress("localhost", this.server.g... | 0 |
Text tablet = new KeyExtent("0", new Text("m"), null).getMetadataEntry();
KeyExtent ke1 = new KeyExtent("0", new Text("m"), null);
KeyExtent ke2 = new KeyExtent("0", 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 ... | 0 |
private List<DependencyConditionInfo> dependencyConditions = new ArrayList<>(); | 0 |
// This is implemented by the ServletContext wrapper created in the Dispatcher | 0 |
import org.apache.hc.client5.http.sync.methods.HttpGet; | 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(permissionEntity.getSortOrder()).andReturn(1);
Assert.assertEquals(1, resource.getPropertyValue(PermissionResourceProvider.SORT_ORDER_PROPERTY_ID)); | 0 |
System.out.println(repos[i].getURI());
System.out.println("No repository URLs are set."); | 0 |
* Get database schema name
* @return @dbSchema
*/
String getDbSchema();
/** | 0 |
import java.util.Map;
import java.util.Optional;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.type.TypeReference;
public Map<String, String> toMap(Optional<ObjectMapper> mapper) {
Map<String, String> map =
mapper.orElseGet(ObjectMapper::new).convertValue(this, new TypeReference<... | 0 |
Set<RepositoryVersionEntity> changedRepositoryVersions = new HashSet<>();
new HashMap<>(); | 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.*;
public void removeTypes(Collection<String> typeNames) {
for(String typeName : typeNames) {
IDataType dataType = types.get(typeName);
types.remove(typeName);
step1();
step2();
| 0 |
@Test
public void testContentEncodingHeaderIsNotUpdatedByMerge() throws IOException {
final Header[] headers = {
new BasicHeader("Date", DateUtils.formatDate(requestDate)),
new BasicHeader("ETag", "\"etag\""),
new BasicHeader("Content-Encoding", "identity"... | 0 |
import java.util.Iterator;
import org.apache.commons.jexl3.introspection.JexlUberspect;
import org.apache.commons.jexl3.introspection.JexlSandbox;
public final class SandboxUberspect implements JexlUberspect {
/** The base uberspect. */
protected final JexlUberspect uberspect;
protected final JexlSandbox sa... | 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 |
import org.apache.hc.core5.net.NamedEndpoint;
NamedEndpoint endpoint, | 0 |
import org.apache.accumulo.server.ServerContext;
this(ServerContext.getInstance().getZooKeeperRoot()); | 0 |
* @deprecated Class now available as MultiValueMap in map subpackage.
* This version is due to be removed in collections v4.0.
* | 0 |
import static com.google.common.base.Preconditions.checkState;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.atomic.AtomicBoolean;
private static final Logger LOG = LoggerFactory.getLogger(TransformEvaluatorRegistry.clas... | 0 |
/*
* 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 |
* Copyright 2002,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 |
/**
* WTP 1.5 changes in wtpmodules.
* @throws Exception any exception thrown during test
*/
public void testProject20()
throws Exception
{
testProject( "project-20" );
}
| 0 |
private static final Pattern FILE_SCHEME_PATTERN =
Pattern.compile("(?<scheme>[a-zA-Z][-a-zA-Z0-9+.]*):.*");
Matcher matcher = FILE_SCHEME_PATTERN.matcher(spec); | 0 |
*
*
*
/**
* A Script <b>must</b> be thread safe so care should be taken on the
* @version $Revision: 1.12 $ | 1 |
Document doc = XMLUtils.newDocument(); | 0 |
* Represents a callback(ServiceReference, Service, ServiceReference, Service) that is invoked on a Component implementation class.
* The type of the class on which the callback is invoked on is represented by the T generic parameter.
public interface CbRefServiceRefService<T, S> extends SerializableLambda {
* H... | 0 |
/** The Log to which logging calls will be made. */
private static Log log = LogFactory.getLog(JellyContext.class);
| 0 |
import cz.seznam.euphoria.guava.shaded.com.google.common.collect.Sets;
return new TimeSliding<>(duration.toMillis(), step.toMillis());
long slide) {
public Set<TimeInterval> assignWindowsToElement(WindowedElement<?, T> el) {
Set<TimeInterval> ret =
Sets.newHashSetWithExpectedSize((int) (thi... | 0 |
* @since 3.0
* @version $Id$ | 0 |
this.open = false;
Socket sock = this.socket;
doFlush();
try {
sock.shutdownOutput();
} catch (IOException ignore) {
}
try {
sock.shutdownInput();
} catch (IOException igno... | 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 |
* @version $Revision$ | 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 |
public boolean isRepeatable() {
return false;
}
@Override | 0 |
import com.google.cloud.dataflow.sdk.options.PipelineOptions;
PipelineOptions options = PipelineOptionsFactory.create();
options,
cloudSource,
BatchModeExecutionContext.fromOptions(options),
null,
null);
TextReader<?> textReader = (TextReader<?>) reader; | 0 |
* @version $Revision$ $Date$ | 0 |
formattedResults.apply(TextIO.write().to(options.getOutput())); | 0 |
context.windowingInternals().setTimer(timer, timestamp, domain);
context.windowingInternals().deleteTimer(timer, domain);
return Instant.now(); | 0 |
Class classForName( String className, Map<String, Object> context ) | 0 |
import org.apache.cocoon.objectmodel.ObjectModel;
protected static void characters(ObjectModel objectModel, ExecutionContext executionContext,
TextEvent event, CharHandler handler)
Object val = expr.getValue(objectModel); | 0 |
* Return length data stored in the buffer
*
* @return data length
*/
int length();
/**
* Returns total capacity of the buffer
*
* @return total capacity
*/
int capacity();
/**
* Returns available space in the buffer.
*
* @return available space.
... | 0 |
Copyright 1999-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 ... | 0 |
* A {@link Coder} for {@link CountSum}.
/** An accumulator that observes its merges and outputs. */ | 0 |
import org.apache.felix.scrplugin.annotations.ScannedAnnotation; | 0 |
public FileSystem getImplementation() {
return impl;
}
| 0 |
import com.google.gson.Gson;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
String ajaxRequestHeader = request.getHeader("X-Requested-With");
if (isWebUserAgent(request.getHeader("User-Agent")) && !"XMLHttpRequest".equals(ajaxRequestHeader)) {
response.sendRedirect(request.get... | 0 |
import org.apache.beam.sdk.annotations.Experimental;
import org.apache.beam.sdk.annotations.Experimental.Kind;
@Experimental(Kind.FILESYSTEM)
@Experimental(Kind.FILESYSTEM) | 0 |
public static final String NAME = "publickey";
return NAME;
buf.putString(UserAuthPublicKeyFactory.NAME); | 0 |
package org.apache.accumulo.cloudtrace.instrument.impl;
import org.apache.accumulo.cloudtrace.instrument.Span;
import org.apache.accumulo.cloudtrace.instrument.Tracer;
} | 0 |
package org.apache.beam.sdk.transforms;
import org.apache.beam.sdk.values.PInput;
import org.apache.beam.sdk.values.POutput; | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Sets; | 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 |
public void testResponseBasics() {
final BasicHttpResponse response = new BasicHttpResponse(200, "OK");
Assert.assertEquals(200, response.getCode());
Assert.assertEquals("OK", response.getReasonPhrase());
}
@Test
public void testResponseStatusLineMutation() {
final Basic... | 0 |
Process ingest = cluster.exec(TestIngest.class, "-u", "root", "-p", ROOT_PASSWORD, "-i", cluster.getInstanceName(), "-z", cluster.getZooKeepers(),
"--rows", "" + OPTS.rows);
Process ingest = cluster.exec(TestIngest.class, "-u", "root", "-p", ROOT_PASSWORD, "-i", cluster.getInstanceName(), "-z", cluste... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.