Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java,v 1.19 2004/01/18 01:43:30 dmitri Exp $
* $Revision: 1.19 $
* $Date: 2004/01/18 01:43:30 $
import org.apache.commons.jxpath.NamespaceManager;
* @version $... | 0 |
synchronized (tableConfigs) {
synchronized (namespaceConfigs) {
synchronized (tableParentConfigs) {
| 0 |
@Processing(Processing.Type.BOUNDED)
@Test
public void batchJoinFullOuterMultipleOutputsPerCollectorFunction() {
execute(
new JoinTestCase<Integer, Long, KV<Integer, String>>() {
@Override
protected Dataset<KV<Integer, String>> getOutput(
Dataset<Integer> left, Datas... | 0 |
* extension is supported by the bridge. | 0 |
@Override | 0 |
} catch (final IOException ex) {
} catch (final IOException ex) {
} catch (final IOException ex) {
} catch (final IOException ex) {
} catch (final IOException ex) {
} catch (final IOException ex) { | 0 |
import org.apache.ambari.server.controller.ApiModel;
import io.swagger.annotations.ApiModelProperty;
public class QuickLinksConfigurationInfo implements ApiModel {
@ApiModelProperty(name = "file_name")
@ApiModelProperty(name = "default")
@ApiModelProperty(hidden = true) | 0 |
response.put(MetadataServiceClient.COUNT, result.size()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/OrderedMapIterator.java,v 1.1 2003/12/01 22:48:59 scolebourne Exp $
package org.apache.commons.collections;
* @version $Revision: 1.1 $ $Date: 2003/12/01 22:48:59 $ | 0 |
package org.apache.accumulo.server.test.randomwalk.concurrent;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.Random;
import org.apache.accumulo.server.test.randomwalk.State;
import org.apache.accumulo.server.test.randomwalk.Test;
public class Setup extends Test {
... | 1 |
import org.apache.cocoon.portal.coplet.CopletInstance;
import org.apache.cocoon.portal.coplet.CopletInstanceFeatures;
public void service(ServiceManager aManager) throws ServiceException {
super.service( aManager );
* @see org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter#streamContent... | 0 |
import mesos.Protos.*;
private SlaveID slaveId;
driver.init(executorDriver, executorArgs);
slaveId = executorArgs.getSlaveId();
.setTaskId(TaskID.newBuilder().setValue(killedTask.getId())).setSlaveId(slaveId)
.setState(TaskState.TASK_KILLED).build()); | 0 |
import com.google.inject.Inject;
import com.google.inject.persist.jpa.AmbariJpaPersistService;
| 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 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.felix.ipojo.metadata.Element;
Element[] provides = fact.getDescription().getElements("provides");
for (int i = 0; i < provides.length; i++) {
if (provides[i].getAttribute("specification").equals(m_specification)) {
Element[] props = factory.getDescription().getEleme... | 0 |
super(deferTo);
this.ignored_packages = DEFAULT_IGNORED_PACKAGES;
cl = getParent().loadClass(class_name); | 0 |
import org.apache.hc.core5.io.ShutdownType;
server.shutdown(ShutdownType.GRACEFUL);
requester.shutdown(ShutdownType.GRACEFUL); | 0 |
/* ====================================================================
* @version $Revision: 1.11 $ $Date: 2004/01/14 21:43:11 $ | 0 |
this.newObjectModel = (ObjectModel) manager.lookup(ObjectModel.ROLE);
if (this.internalPipelineDescription == null) {
if (this.processingPipeline != null) {
}
if (this.pipelineSelector != null) {
if (this.newObjectModel != null) {
this.currentMan... | 0 |
Copyright 2001,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 |
return UnmodifiableSortedBidiMap.unmodifiableSortedBidiMap(new DualTreeBidiMap<K, V>());
return UnmodifiableSortedBidiMap.unmodifiableSortedBidiMap(bidi); | 0 |
import org.apache.beam.runners.spark.translation.streaming.utils.TestOptionsForStreaming;
import org.junit.Rule;
import org.junit.rules.TemporaryFolder;
@Rule
public TemporaryFolder checkpointParentDir = new TemporaryFolder();
@Rule
public TestOptionsForStreaming commonOptions = new TestOptionsForStreaming();... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/ByteIteratorIterator.java,v 1.3 2003/11/07 20:09:15 rwaldhoff Exp $
*
* @deprecated This code has been moved to Jakarta Commons Primitives (http://jaka... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestPredicateUtils.java,v 1.5 2003/12/29 01:18:23 scolebourne Exp $
* @version $Revision: 1.5 $ $Date: 2003/12/29 01:18:23 $ | 0 |
.add(ResourceTypeHandler.class) | 0 |
import java.util.List;
boolean debugEnabled = log.isDebugEnabled();
ClientChannel clientChannel = getClientChannel();
if (debugEnabled) {
log.debug("negotiateVersion({}) no selector to override current={}", clientChannel, current);
}
List<Integer> availabl... | 0 |
* Copyright 2001-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 |
/**
* Gets whether there is an upgrade which has been suspended and not yet
* finalized.
*
* @return {@code true} if the last upgrade is in the
* {@link UpgradeState#SUSPENDED}.
*/
boolean isUpgradeSuspended(); | 0 |
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A> | 0 |
import org.apache.http.params.BasicHttpParams;
HttpParams params = new BasicHttpParams(); | 0 |
import java.util.concurrent.TimeUnit;
import org.apache.accumulo.core.client.BatchWriterConfig;
import org.apache.accumulo.core.client.Connector;
import org.apache.accumulo.core.client.MutationsRejectedException;
testBatchScannerTimeout();
testBatchWriterTimeout();
}
public void testBatchWriterTimeout() thr... | 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 |
* 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 |
import org.apache.beam.sdk.nexmark.model.NameCityStateId;
import org.apache.beam.sdk.transforms.ParDo;
public class SqlQuery3 extends PTransform<PCollection<Event>, PCollection<NameCityStateId>> {
private static final RowCoder RECORD_CODER = createRecordCoder();
public PCollection<NameCityStateId> expand(PCollectio... | 0 |
* @param auth
* authorization, as a string encoded in UTF-8 | 0 |
.get(Property.TSERV_SCAN_EXECUTORS_DEFAULT_THREADS.getKey());
c.instanceOperations().setProperty(Property.TSERV_SCAN_EXECUTORS_DEFAULT_THREADS.getKey(), "1");
c.instanceOperations().setProperty(Property.TSERV_SCAN_EXECUTORS_DEFAULT_THREADS.getKey(), | 0 |
* Autogenerated by Thrift Compiler (0.9.3)
import javax.annotation.Generated;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2015-12-16")
public class KeyValue implements org.apache.thrift.TBase<KeyValue, KeyValue._Fields>... | 0 |
* <p>
* <p>
* In the event that an MutationsRejectedException exception is thrown by one of the methods on a BatchWriter instance, the user should close the current
* instance and create a new instance. This is a known limitation which will be addressed by ACCUMULO-2990 in the future. | 0 |
@Test
public void testPassesOnOrigin401ResponseWithoutWWWAuthenticateHeader() throws Exception {
HttpResponse result = impl.execute(host, request);
verifyMocks();
Assert.assertSame(originResponse, result); | 0 |
(HierarchicalConfiguration<ImmutableNode>) null); | 0 |
if (s.equalsIgnoreCase(name)) {
return true;
}
if (s.equalsIgnoreCase(name)) {
return true;
}
if (s.equalsIgnoreCase(name)) {
return true;
}
if (i1 == null && i2 == null) {
return true;
}
{
return false; // avoid possible NPEs below
}
... | 0 |
// Generate list of services that have no config types
List<String> servicesWithNoConfigs = new ArrayList<String>();
for(ServiceModule serviceModule: serviceModules.values()){
if (!serviceModule.hasConfigs()){
servicesWithNoConfigs.add(serviceModule.getId());
}
}
stackInfo.setSe... | 0 |
import org.apache.avalon.framework.service.Serviceable;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.ServiceException;
public class MakeFormAction implements Action, ThreadSafe, Serviceable {
public void service(ServiceManager serviceManager) throws ServiceEx... | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/util/Enumeration.java,v 1.6 2006/03/14 01:20:25 hargrave Exp $
*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use t... | 0 |
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.createNiceMock;
import static org.easymock.EasyMock.createStrictMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import static org.junit.Assert.ass... | 0 |
if ((object == null) || (object instanceof Part)) {
this.part = (Part)object;
} else { | 0 |
public static class SummationAggregator
implements org.apache.accumulo.core.iterators.aggregation.Aggregator {
return new Key(newRow(row), new Text(String.format("cf%03d", colf)),
new Text(String.format("cq%03d", colq)), ts);
static void newKeyValue(TreeMap<Key,Value> tm, int row, int colf, int co... | 0 |
* @version CVS $Id: AbstractRequestWrapper.java,v 1.2 2004/07/11 13:59:12 cziegeler Exp $
/* (non-Javadoc)
* @see org.apache.cocoon.environment.Request#getAttribute(java.lang.String, int)
*/
public Object getAttribute(String name, int scope) {
return this.req.getAttribute(name, scope);
}... | 0 |
// Implementation methods | 0 |
public Map<String, Set<String>> getInstanceHostsMetadata() throws SQLException, IOException {
return metricMetadataManager.getHostedInstanceCache();
}
@Override | 0 |
private ErrorHandler errorHandler = null; | 0 |
package org.apache.beam.sdk.io.range; | 0 |
* According to RFC959 (http://www.ietf.org/rfc/rfc959.txt),
*
* @return the pathname, without enclosing quotes,
* or the full string after the reply code and space if the syntax is invalid
if (!remote.isSiteLocalAddress()){
__passiveHost = hostAddress;
... | 0 |
private final Map cache;
String[] names;
synchronized(children) {
names = new String[children.size()];
int pos = 0;
Iterator iter = children.iterator();
while (iter.hasNext())
{
RamFileData childData = (RamFileData) iter.nex... | 0 |
* @version CVS $Id: Field.java,v 1.14 2004/04/30 12:23:33 bruno Exp $
* {@link #validate()} method returned false. | 0 |
private File volDirBase;
private Path v1, v2;
@SuppressWarnings("deprecation")
@Override
public void configure(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {
File baseDir = cfg.getDir();
volDirBase = new File(baseDir, "volumes"); | 0 |
TesterPreparedStatement inner3 = (TesterPreparedStatement) stmt3.getInnermostDelegate();
public void testMultipleThreads1() throws Exception { | 0 |
import java.util.List;
@JsonProperty("default_log_levels")
private List<String> defaultLogLevels;
this.defaultLogLevels = inputDescriptor.getDefaultLogLevels();
public List<String> getDefaultLogLevels() {
return defaultLogLevels;
} | 0 |
log.warn("Server at {} presented unverified key: ", remoteAddress, BufferUtils.printHex(serverKey.getEncoded())); | 0 |
classesInPackage("org.joda.time")); | 1 |
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 |
* Manages a pool of {@link org.apache.http.conn.OperatedClientConnection }
* and is able to service connection requests from multiple execution threads.
* @deprecated (4.2) use {@link org.apache.http.impl.conn.PoolingHttpClientConnectionManager} | 0 |
logPath = fs.choose(chooserEnv, ServerConstants.getBaseUris(context.getConfiguration()))
+ Path.SEPARATOR + ServerConstants.WAL_DIR + Path.SEPARATOR + logger + Path.SEPARATOR
+ filename; | 0 |
import org.apache.beam.model.pipeline.v1.RunnerApi; | 0 |
if (url != null) { | 0 |
import org.apache.beam.runners.core.construction.RehydratedComponents;
// lazily initialized by parsing coderSpec
private transient Coder<T> coder;
private Coder<T> getCoder() throws IOException {
if (coder == null) {
coder =
(Coder)
CoderTranslation.f... | 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 java.util.List;
import org.apache.hc.core5.http.Header;
public void complete(final List<? extends Header> trailers) throws IOException {
endOutputStream(trailers);
final MessageDelineation messageDelineation = endOutputStream(null);
return new ChunkEncoder(... | 1 |
public class PredicatedSet<E> extends PredicatedCollection<E> implements Set<E> {
* @return a decorated set
public static <T> Set<T> decorate(Set<T> set, Predicate<? super T> predicate) {
return new PredicatedSet<T>(set, predicate);
protected PredicatedSet(Set<E> set, Predicate<? super E> predicate... | 0 |
*
*
*
private WidgetDefinition causingDefinition;
public IncompletenessException(String message, WidgetDefinition incomplete) {
if (causingDefinition != null)
msg += " (Caused by widget '" + causingDefinition.getId() + "', last modified at " + causingDefinition.getLocation() + ")";
... | 0 |
* {@code "CommentURL"} cookie attribute handler for RFC 2965 cookie spec. | 0 |
* @see org.apache.felix.scrplugin.tags.JavaParameter#getType() | 0 |
private ThreadLocal<LdapServerProperties> ldapServerProperties = new ThreadLocal<>();
private ThreadLocal<LdapAuthenticationProvider> providerThreadLocal = new ThreadLocal<>(); | 0 |
import org.apache.beam.sdk.fn.stream.OutboundObserverFactory;
public void testMessageReceivedBySingleClientWhenThereAreMultipleClients() throws Exception {
GrpcDataService service =
GrpcDataService.create(
Executors.newCachedThreadPool(), OutboundObserverFactory.serverDirect());
assertTh... | 0 |
private Option tableOpt, optAuths, optStartRow, optEndRow, optStartRowExclusive, optEndRowExclusive;
boolean startInclusive = !cl.hasOption(optStartRowExclusive.getOpt());
boolean endInclusive = !cl.hasOption(optEndRowExclusive.getOpt());
return "finds the max row in a table within a given range";
opt... | 0 |
* @version $Revision$ $Date$ | 0 |
// we should catch the exceptions from
// the valid snapshot and continue
// until we find a valid one
try {
if(Util.isValidSnapshot(f))
return f;
} catch(IOException e) {
LOG.info("invalid snapshot " + f, e... | 0 |
* @version $Revision$, $Date$ | 0 |
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
* permission of the Apache Software Foundation.
* @version $Revision: 1.6 $ $Date: 2003/10/13 08:44:26 $ | 0 |
Iterator<String> it = matchingOptions.iterator(); | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
import org.apache.http.params.CoreConnectionPNames;
socket.setTcpNoDelay(params.getBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true));
socket.setSoTimeout(params.getIntParameter(CoreConnectionPNames.SO_TIMEOUT, 0));
socket.setKeepAlive(params.getBooleanParameter(CoreConnectionPNames.SO_KE... | 0 |
public static final Predicate INSTANCE = new NullPredicate<>(); | 1 |
import com.google.common.base.Function; | 0 |
public BoundedReader( final Reader target, final int maxCharsFromTargetReader ) throws IOException {
public void mark( final int readAheadLimit ) throws IOException {
public int read( final char[] cbuf, final int off, final int len ) throws IOException { | 0 |
import org.apache.beam.runners.dataflow.BatchViewOverrides.GroupByKeyAndSortValuesOnly; | 0 |
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import org.apache.atlas.model.PList;
import org.apache.atlas.model.SearchFilter.SortType;
@XmlRootElement
/**
* REST serialization friendly list.
*/
@JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisi... | 0 |
import org.apache.beam.dsls.sql.BeamSqlCli;
import org.apache.beam.dsls.sql.BeamSqlEnv;
PCollection<BeamSQLRow> rows = BeamSqlCli.compilePipeline(sql, pipeline);
PCollection<BeamSQLRow> rows = BeamSqlCli.compilePipeline(sql, pipeline);
PCollection<BeamSQLRow> rows = BeamSqlCli.compilePipeline(sql, pipeline)... | 0 |
@Override
@Override | 0 |
ServerContext context = getServerContext(); | 0 |
import com.google.cloud.dataflow.sdk.values.POutput;
/**
* A {@link PTransformOverrideFactory} for {@link InProcessCreate}.
*/
public static class InProcessCreateOverrideFactory implements PTransformOverrideFactory {
@Override
public <InputT extends PInput, OutputT extends POutput> PTransform<InputT, ... | 0 |
public interface DataStore { | 0 |
* @version CVS $Id: SitemapRedirector.java,v 1.3 2003/10/24 13:45:10 vgritsenko Exp $
((EnvironmentWrapper)e).globalRedirect(sessionMode,url);
} else {
e.redirect(sessionMode, url); | 0 |
import org.apache.beam.sdk.transforms.windowing.IntervalWindow;
import org.apache.beam.sdk.transforms.windowing.PaneInfo;
private <T> CommittedBundle<T>
afterCommitGetElementsShouldHaveAddedElements(Iterable<WindowedValue<T>> elems) {
CommittedBundle<T> committed = bundle.commit(Instant.now());
assertThat(c... | 0 |
setType((Class<?>) type);
public void setType(Class<?> type) | 1 |
final Boolean autodetectUTF8 = builder.getAutodetectUtf8(fileSystemOptions); | 0 |
import org.apache.sshd.common.util.buffer.ByteArrayBuffer;
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
... | 0 |
import java.net.InetSocketAddress;
@Override
public String toString() {
StringBuilder buf = new StringBuilder();
if (this.session.getRemoteAddress() instanceof InetSocketAddress &&
this.session.getLocalAddress() instanceof InetSocketAddress) {
final InetSocketAddress r... | 0 |
import org.apache.batik.dom.svg.DefaultSVGContext;
import org.apache.batik.dom.svg.SVGOMDocument;
import org.w3c.dom.Node;
import org.w3c.dom.events.EventListener;
// properties //////////////////////////////////// | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.