Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/NodePointerFactory.java,v 1.3 2003/01/11 05:41:24 dmitri Exp $
* $Revision: 1.3 $
* $Date: 2003/01/11 05:41:24 $
* @version $Revision: 1.3 $ $Date: 2003/01/11 05:41:24 $
int ... | 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 m... | 0 |
private static final Map<Resource.Type, String> keyPropertyIds = ImmutableMap.<Resource.Type, String>builder()
private static final Set<String> propertyIds = Sets.newHashSet( | 0 |
import com.google.common.collect.ImmutableMap;
/**
* Returns the executor positions tracked by the watchdog.
*
* @return the executor state syncing positions
*/
Map<ExecutorKey, StateUpdateRequest> getExecutorPositions();
@Override
public Map<ExecutorKey, StateUpdateRequest> getExecutorPosition... | 0 |
if (GET_INPUT_STREAM_METHOD == null) {
if (GET_INPUT_STREAM_METHOD == null) {
assert socket != null; | 0 |
import org.junit.experimental.categories.Category;
@Category({ category.StackUpgradeTest.class}) | 0 |
/**
* @param doc
* @param SignatureMethodElem
* @param CanonicalizationMethodElem
* @throws XMLSecurityException
*/
XMLSecurityException {
Element el= XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),
Constants._TAG_CANONICALIZATIONMETHOD,0);
if (... | 0 |
for (Integer groupByKey : groupByKeys) {
fieldValues.add(input.getFieldValue(groupByKey));
for (AggregationAccumulator accumulator : accumulators) {
accs.add(accumulator.accumulatorElements.get(idx)); | 0 |
/**
private static final long serialVersionUID = 1L;
| 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.xml.security.stax.ext.stax.XMLSecStartElement;
protected SignedInfoProcessor newSignedInfoProcessor(
SignatureAlgorithm signatureAlgorithm, XMLSecStartElement xmlSecStartElement,
OutputProcessorChain outputProcessorChain) throws XMLSecurityException {
this.signedIn... | 0 |
package org.apache.accumulo.miniclusterImpl;
import org.apache.accumulo.miniclusterImpl.MiniAccumuloClusterImpl.LogWriter; | 0 |
public class KeyNameTest extends org.junit.Assert {
public KeyNameTest() throws Exception {
fac = KeyInfoFactory.getInstance
("DOM", new org.jcp.xml.dsig.internal.dom.XMLDSigRI());
@org.junit.Test
KeyName kn = fac.newKeyName("skeleton");
assertNotNull(kn.getName());
@org... | 0 |
LengthParser lp = new LengthParser(); | 0 |
return streamNames.stream()
// TODO: make poll interval configurable | 0 |
package org.apache.cocoon.components.slide;
* @version CVS $Id: PrincipalProvider.java,v 1.1 2003/12/02 19:18:46 unico Exp $
public final static String ROLE = PrincipalProvider.class.getName(); | 0 |
* $Revision: 1.9 $
* $Date: 2003/08/26 14:16:33 $
import java.util.NoSuchElementException;
} catch(NoSuchElementException e) {
throw new SQLNestedException("MaxOpenPreparedStatements limit reached", e);
} catch(NoSuchElementException e) {
throw new SQLNestedException("MaxOpen... | 0 |
if (this.completed && bytesRead == 0) {
return -1;
} else {
return bytesRead;
} | 0 |
*
* @version $Id$ | 0 |
job.setInputFormatClass(
org.apache.accumulo.core.client.mapreduce.AccumuloRowInputFormat.class);
org.apache.accumulo.core.client.mapreduce.AccumuloRowInputFormat.setZooKeeperInstance(job,
ci.getInstanceName(), ci.getZooKeepers());
org.apache.accumulo.core.client.mapreduce.Accumulo... | 0 |
public static final String COLUMNS = "columns";
public static final String STORAGE_DESC = "sd";
new AttributeDefinition(STORAGE_DESC, HiveDataTypes.HIVE_STORAGEDESC.getName(), Multiplicity.REQUIRED, true,
new AttributeDefinition(STORAGE_DESC, HiveDataTypes.HIVE_STORAGEDESC.getNam... | 0 |
return UnmodifiableOrderedMapIterator.unmodifiableOrderedMapIterator(
ListOrderedMap.listOrderedMap(new HashMap<K, V>()).mapIterator());
return UnmodifiableOrderedMapIterator.unmodifiableOrderedMapIterator(getMap().mapIterator());
OrderedMap<K, V> testMap = ListOrderedMap.listOrd... | 0 |
SqlTransform.query("SELECT f_int, f_intStringMap as f_map FROM PCOLLECTION"));
"sqlQuery", SqlTransform.query("SELECT 42, MAP['aa', 1] as `f_map` FROM PCOLLECTION"));
"sqlQuery", SqlTransform.query("SELECT f_intStringMap['key11'] FROM PCOLLECTION")); | 0 |
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
* @version CVS $Id: DOMBuilderStreamerTestCase.java,v 1.4 2003/04/29 10:45:03 stephan Exp $
public void testBuilderWithComments(... | 0 |
import org.apache.beam.sdk.extensions.sql.SqlTypeCoders;
SqlTypeCoders.VARCHAR, "name",
SqlTypeCoders.VARCHAR, "description"
SqlTypeCoders.INTEGER, "c0",
SqlTypeCoders.INTEGER, "c1"
SqlTypeCoders.VARCHAR, "name",
SqlTypeCoders.VARCHAR, "description... | 0 |
/**
* A file name that represents URL.
*/ | 0 |
* limitations under the License. | 0 |
@Override
public String toString() {
return super.toString() + " [status=" + status + "]";
}
| 0 |
final String method = request.getRequestLine().getMethod().toUpperCase(Locale.US);
final Boolean b = this.idempotentMethods.get(method); | 0 |
* Copyright 2002-2005 The Apache Software Foundation. | 0 |
if (this.context != null) {
// we have initialized the context
this.doFn.finishBundle(this.context);
}
this.doFn.startBundle(this.context);
doFn.processElement(this.context); | 0 |
byte[] d = "0123456789\n".getBytes(StandardCharsets.UTF_8);
byte[] overwrite = "-".getBytes(StandardCharsets.UTF_8);
sftp.write(h, 3L, overwrite, 0, 1);
d[3] = overwrite[0];
int l = sftp.read(h, 2L, buf, ... | 0 |
Set<Map<String, Object>> propertySet = new LinkedHashSet<>();
Map<String, Object> properties = new LinkedHashMap<>();
HashSet<Map<String, Object>> batch = new HashSet<>();
Map<String, Object> batchSettings = new HashMap<>();
Map<String, Object> batchRequests = new HashMap<>();
HashSet<Map<String... | 0 |
import java.text.MessageFormat;
import java.util.LinkedHashSet;
import java.util.List;
import javax.inject.Provider;
import com.google.inject.Inject;
import com.google.inject.Singleton; | 0 |
.add(new DbModule.GarbageCollectorModule()) | 0 |
private boolean validating = false; | 0 |
String headURL = "$HeadURL: https://svn.apache.org/repos/asf/xmlgraphics/batik/branches/maven/batik-util" +
"/src/main/java/org/apache/batik/Version.java $"; | 0 |
package org.apache.felix.fileinstall.internal;
import org.apache.felix.fileinstall.ArtifactInstaller;
import org.apache.felix.fileinstall.ArtifactListener;
import org.apache.felix.fileinstall.ArtifactTransformer;
import org.apache.felix.fileinstall.internal.Util; | 0 |
* A set of authorization labels that will be checked against the column visibility of each key in
* order to filter data. The authorizations passed in must be a subset of the accumulo user's set
* of authorizations. If the accumulo user has authorizations (A1, A2) and authorizations (A2, A3)
* are passed, t... | 0 |
new ThreadSafeClientConnManager(getParams(), supportedSchemes);
new DefaultHttpClient(getParams(), ccm, supportedSchemes);
supportedSchemes = new SchemeRegistry(); | 0 |
* (set with the <code>setDst</code> method.)</li>
* <hr> | 0 |
final Map<String,TableInfo> tables = new HashMap<>();
onlineTabletsCopy.forEach((ke, tablet) -> {
String tableId = ke.getTableId().canonical();
});
scanCounts.forEach((tableId, mapCounter) -> {
TableInfo table = tables.get(tableId.canonical());
tables.put(tableId.canonical(), table);... | 0 |
import org.janusgraph.core.schema.*;
public String addMixedIndex(String indexName, AtlasPropertyKey propertyKey) {
PropertyKey janusKey = AtlasJanusObjectFactory.createPropertyKey(propertyKey);
JanusGraphIndex janusGraphIndex = management.getGraphIndex(indexName);
management.addI... | 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 |
final IOEventDispatch ioEventDispatch) { | 0 |
* <li>Initialise the manager using {@link #init}.
private final VirtualFileProvider vfsProvider = new VirtualFileProvider();
private boolean init;
* Initialises this manager.
*/
public void init() throws FileSystemException
{
setupComponent( vfsProvider );
init = true;
}
... | 0 |
// clear the attributes since we close the channel
clearAttributes(); | 0 |
do {
try {
Thread.sleep(1000);
} catch(InterruptedException ie) {
// ignore
}
createFile(reference, 0);
} while( oldFile.lastModified() == reference.lastModified() );
long now = date.getTime();
do {
... | 0 |
import org.apache.felix.dm.Component;
Component sp1 = m.createComponent().setInterface(MyService1.class.getName(), null).setImplementation(new MyService1Impl());
Component sc = m.createComponent().setImplementation(new MyClient(e, 1));
public void init(Component s) { | 0 |
package org.apache.commons.net;
| 0 |
static final class CWindow extends Window implements Comparable<CWindow> {
public int compareTo(CWindow that) {
return Integer.compare(this._id, that._id);
}
@Override | 0 |
if (!getCombinedState().isAcceptingInputs())
if (!getCombinedState().isValidatingValues()) | 0 |
package org.apache.batik.ext.awt.image.renderable;
import org.apache.batik.ext.awt.image.rendered.CachableRed;
import org.apache.batik.ext.awt.image.rendered.RenderedImageCachableRed;
import org.apache.batik.ext.awt.image.rendered.PadRed;
CachableRed cr = RenderedImageCachableRed.wrap(ri); | 0 |
rootServlet.setInitParameter("dirAllowed", "false"); | 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 |
/**
* A Function used internally by Gearpump to wrap the actual Beam's WindowFn.
*/
protected static class AssignWindows<T> extends | 0 |
import org.apache.http.annotation.NotThreadSafe;
@NotThreadSafe | 0 |
package org.apache.felix.dm; | 0 |
* @author Dirk Verbeeck
* @version $Revision: 1.10 $ $Date: 2004/07/24 22:42:39 $
/**
* Constructor for DriverManagerConnectionFactory.
* @param connectUri a database url of the form
* <code> jdbc:<em>subprotocol</em>:<em>subname</em></code>
* @param props a list of arbitrary string tag/value... | 0 |
import org.apache.ambari.server.events.publishers.AmbariEventPublisher;
public DefaultMessageEmitter defaultMessageEmitter(Injector injector) {
org.apache.ambari.server.configuration.Configuration configuration =
injector.getInstance(org.apache.ambari.server.configuration.Configuration.class);
return ... | 0 |
import org.apache.accumulo.core.client.impl.Namespace;
import org.apache.accumulo.core.client.impl.Table;
private Table.ID tableId;
private Namespace.ID namespaceId;
public DeleteTable(Namespace.ID namespaceId, Table.ID tableId) { | 1 |
import static org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink.HOST_IN_MEMORY_AGGREGATION_PROTOCOL_PROPERTY;
expect(conf.getString(eq(HOST_IN_MEMORY_AGGREGATION_PROTOCOL_PROPERTY), anyString())).andReturn("http").anyTimes();
expect(conf.getString(eq(HOST_IN_MEMORY_AGGREGATION_PROTOCOL_PROPER... | 0 |
package org.apache.sshd.server.config;
import org.apache.sshd.common.session.Session;
import org.apache.sshd.common.util.net.SshdSocketAddress;
import org.apache.sshd.server.forward.TcpForwardingFilter;
public enum AllowTcpForwardingValue implements TcpForwardingFilter {
ALL {
@Override
public boole... | 0 |
@Override
public ServiceComponent getServiceComponent(String componentName) {
return this.components.get(componentName);
}
| 0 |
import javax.annotation.Nullable;
import org.apache.ambari.server.state.Service;
private String serviceName;
public ConfigGroupImpl(@Assisted("cluster") Cluster cluster,
@Assisted("serviceName") @Nullable String serviceName, @Assisted("name") String name,
ConfigGroupHostMappingDAO configGroupHostMappin... | 0 |
import com.google.common.base.Optional;
import org.apache.aurora.scheduler.app.LocalServiceRegistryWithOverrides;
bind(LocalServiceRegistryWithOverrides.Settings.class).toInstance(
new LocalServiceRegistryWithOverrides.Settings(Optional.<String>absent())); | 0 |
protected synchronized void doCloseImmediately() {
super.doCloseImmediately(); | 0 |
import org.apache.sshd.common.auth.MutableUserHolder;
MutableUserHolder { | 0 |
import org.apache.felix.dm.annotation.api.ServiceDependency; | 0 |
* Represents a channel opened over an SSH session - holds information that is
* common both to server and client channels.
public interface Channel extends ChannelListenerManager, Closeable { | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.MoreObjects; | 0 |
import org.apache.http.nio.protocol.HttpAsyncRequestHandlerRegistry;
import org.apache.http.nio.protocol.HttpAsyncServiceHandler;
private static IOEventDispatch createIOEventDispatch() {
HttpAsyncServiceHandler serviceHandler = new HttpAsyncServiceHandler(
new HttpAsyncRequestHandlerRegistry... | 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 |
actualParts = (Part[]) this.viewParts.get(cocoonView);
ProcessingNode viewNode = (ProcessingNode) this.viewNodes.get(cocoonView); | 0 |
} catch (ParserConfigurationException ex) {
throw new XMLSecurityException(ex);
} catch (IOException ex) {
throw new XMLSecurityException(ex);
} catch (SAXException ex) { | 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.client.admin.TableOperations;
import org.apache.accumulo.harness.AccumuloClusterIT;
import org.apache.log4j.Logger;
public class BloomFilterIT extends AccumuloClusterIT {
private static final Logger log = Logger.getLogger(BloomFilterIT.class);
public void configureMiniCluster(MiniAcc... | 0 |
*/
/** Divide floats
*/
public FDIV() {
super(org.apache.bcel.Constants.FDIV);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
... | 0 |
import org.apache.ambari.server.api.predicate.operators.Operator;
| 0 |
PValue output = context.getOutput(transform);
DataSet<T> inputDataSet = context.getInputDataSet(context.getInput(transform));
PValue output = (PValue) context.getOutput(transform);
PValue input = context.getInput(transform);
PValue input = (PValue) context.getInput(transform);
DataSet<KV<K, V>> inputD... | 0 |
package org.apache.felix.sigil.core.internal.model.eclipse;
import org.apache.felix.sigil.core.BldCore;
import org.apache.felix.sigil.model.AbstractCompoundModelElement;
import org.apache.felix.sigil.model.eclipse.IDownloadJar;
import org.apache.felix.sigil.model.eclipse.ISCAComposite;
import org.apache.felix.sigil.mod... | 0 |
/** Tests for ExtractKeys transform. */
private static final String[] COLLECTION = new String[] {"a", "aa", "b", "bb", "bbb"};
private static final List<KV<Integer, String>> WITH_KEYS =
Arrays.asList(KV.of(1, "a"), KV.of(2, "aa"), KV.of(1, "b"), KV.of(2, "bb"), KV.of(3, "bbb"));
private static final List<... | 1 |
import org.apache.accumulo.core.clientImpl.Table;
import org.apache.accumulo.miniclusterImpl.MiniAccumuloConfigImpl; | 0 |
import org.apache.commons.jelly.JellyTagException;
public void doTag(XMLOutput output) throws JellyTagException { | 0 |
import org.apache.ambari.server.events.AgentActionEvent;
response = new HeartBeatResponse();
Host hostObject;
try {
hostObject = clusterFsm.getHost(hostname);
} catch (HostNotFoundException e) {
LOG.error("Host: {} not found. Agent is still heartbeating.", hostname);
if (LOG.isDebugEna... | 0 |
* Exception which Tests can throw when a specific <code>assertNull</code> fails. | 0 |
Context nestedContext = context.nested();
VarIntCoder.of().encode(3, outStream, nestedContext);
jaxbCoder.encode(value, outStream, nestedContext);
VarLongCoder.of().encode(22L, outStream, context);
Context nestedContext = context.nested();
VarIntCoder.of().decode(inStream, nestedCont... | 0 |
public static <E> TransformedSet<E> transformingSet(final Set<E> set,
final Transformer<? super E, ? extends E> transformer) { | 0 |
/* Generated By:JJTree: Do not edit this line. ASTFactor.java */
/* JJT: 0.3pre1 */
package Mini;
/**
*
* @version $Id$
* @author <A HREF="http://www.berlin.de/~markus.dahm/">M. Dahm</A>
*/
public class ASTFactor extends ASTExpr {
// Generated methods
ASTFactor(int id) {
super(id);
}
ASTFactor(MiniP... | 0 |
import org.apache.beam.runners.core.SideInputReader; | 0 |
* @return {@code true} if the file contains the filter's magic number | 1 |
/**
* @deprecated since 1.8.0; use {@link org.apache.accumulo.core.iterators.IteratorAdapter} instead.
*/
@Deprecated
public class IteratorAdapter extends org.apache.accumulo.core.iterators.IteratorAdapter {
super(inner); | 0 |
/**
* Copyright 2016 Seznam a.s.
*
* 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 or agreed to... | 0 |
package org.apache.felix.dm.test.integration.annotations;
import org.apache.felix.dm.test.components.BundleDependencyAnnotation;
import org.apache.felix.dm.test.components.Ensure;
import org.apache.felix.dm.test.integration.common.TestBase; | 0 |
* Dynamically creates and uses a proxy for {@code java.awt.event.ActionListener}
* {@code java.lang.reflect.Proxy}, but much more flexible. | 0 |
QuickLinks[] results = resolveQuickLinks("parent_quicklinks_with_properties.json",
"child_quicklinks_with_properties.json");
linksByName.get("foo_ui").getProperties());
linksByName.get("foo_jmx").getProperties());
linksByName.get("foo_logs").getProperties()); | 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 |
* EventAdmin implementers should follow the minor version, e.g. [1.1,1.2),
* however, an implementer of EventHandler should not require such a small
* range. Therefore an interface like EventHandler should use this anotation.
String RNAME = "LaQute/bnd/annotation/UsePolicy;"; | 0 |
LOG.debug("Metrics records size: " + metrics.getMetrics().size()); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.