Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.model.pipeline.v1.Endpoints; | 0 |
package org.apache.beam.sdk.schemas.utils;
import org.apache.beam.sdk.schemas.FieldValueGetter;
import org.apache.beam.sdk.schemas.FieldValueGetterFactory; | 0 |
import org.apache.xpath.CachedXPathAPI;
CachedXPathAPI cXPathAPI = new CachedXPathAPI();
cXPathAPI.selectNodeList(doc,
cXPathAPI
XMLSignatureInput result = new XMLSignatureInput(resultNodes, cXPathAPI.getXPathContext().getDTMManager()); | 0 |
KeyFactory zkClientKeyFactory = Bindings.annotatedKeyFactory(ServiceDiscovery.class);
if (zkHost.isPresent()) {
modules.add(ZooKeeperModule.builder(ImmutableSet.of(zkHost.get()))
.withDigestCredentials(schedulerService.getRole(), schedulerService.getRole())
.withAcl(ZooKeeperUtils.EVER... | 0 |
Copyright 2001 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 or a... | 0 |
public static <T> Predicate<T> andPredicate(Predicate<? super T> predicate1, Predicate<? super T> predicate2) { | 0 |
access = Utility.accessToString(super.getAccessFlags()); | 0 |
// Always use anchor element's document for base URI,
// for when it comes from an external resource.
ParsedURL newURI = new ParsedURL
(((SVGDocument)elt.getOwnerDocument()).getURL(), href);
// replace href with a fully resolved URI.
href = ne... | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.client.dataset.windowing;
import java.time.Duration;
import static org.junit.Assert.assertEquals;
| 0 |
package org.apache.beam.runners.flink.translation.functions;
import org.apache.beam.runners.flink.translation.wrappers.SerializableFnAggregatorWrapper; | 0 |
* @author $Id: 9ec70b9dd691e49a0b433d1401cbba70d581ef1a $ | 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... | 0 |
Copyright 2000 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 or a... | 0 |
Map<String, Object> params = new HashMap<>();
new ReloadingFileBasedConfigurationBuilder<>(
new ReloadingFileBasedConfigurationBuilder<>(
new ReloadingFileBasedConfigurationBuilder<>(
new ReloadingFileBasedConfigurationBuilder<>(
ne... | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Lists; | 0 |
import org.apache.http.io.BufferInfo; | 0 |
/** {@link org.apache.commons.logging} logging facility */
static org.apache.commons.logging.Log log =
org.apache.commons.logging.LogFactory.getLog(
TransformXPath2Filter04.class.getName());
log.debug("perform xfilter2 on " + inputSet.size() + " nodes");
log.deb... | 0 |
public abstract class AbstractTestCase | 0 |
* @since 4.0 | 0 |
ex.printStackTrace();
System.out.println("+-+-+-+-+-+-+-+-+ "+node+" propertyChange "+" "+
node.getBounds()+" "+
evt.getPropertyName()+" "+ | 0 |
package org.apache.commons.digester3; | 1 |
import org.apache.accumulo.core.clientImpl.thrift.ThriftTableOperationException; | 0 |
import java.io.StreamCorruptedException;
import org.apache.sshd.common.util.buffer.Buffer;
public ClientSession getClientSession() {
return delegate.getClientSession();
}
@Override
@Override
public int send(int cmd, Buffer buffer) throws IOException {
if... | 0 |
MockDecoratedThrift(@MockThrift AnnotatedAuroraAdmin delegate) {
public static void bindForwardedMock(Binder binder, AnnotatedAuroraAdmin mockThrift) {
binder.bind(AnnotatedAuroraAdmin.class).annotatedWith(MockThrift.class).toInstance(mockThrift);
binder.bind(AnnotatedAuroraAdmin.class).to(MockDecoratedThr... | 0 |
public static <T> T checkNotNull(T t, String message) {
public static <T> T checkNotNull(T t, String message, Object arg) {
public static <T> T checkNotNull(T t, String message, Object ... args) {
public static String checkNotNullAndNotEmpty(String t, String message) {
public static String checkNotN... | 0 |
@Override | 0 |
/**
* TODO Add javadoc
*
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
* @version $Rev$, $Date$
*/ | 0 |
@ClassRule public static final TemporaryFolder TMP_FOLDER = new TemporaryFolder();
public static void setupEmbeddedMetastoreService() throws IOException {
public static void shutdownEmbeddedMetastoreService() throws Exception {
PCollection<String> output =
readAfterWritePipeline
.apply(
... | 1 |
*
* The mount path of the servlet.
*
* @return servlet mount path
} | 0 |
private final AbstractConfiguration config; | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
AccumuloClient c = getAccumuloClient(); | 0 |
@Test
public void testGetAllChildrenNumber() throws Exception {
DataTree dt = new DataTree();
// create a node
dt.createNode("/all_children_test", new byte[20], null, -1, 1, 1, 1);
dt.createNode("/all_children_test/nodes", new byte[20], null, -1, 1, 1, 1);
dt.createNode(... | 0 |
import org.apache.accumulo.core.crypto.CryptoServiceFactory;
CryptoService.class, CryptoServiceFactory.newDefaultInstance()); | 0 |
public TransformedMultiValuedMapTest(final String testName) {
final MultiValuedMap<K, V> map = TransformedMultiValuedMap.transformingMap(
final Collection<V> coll = map.remove(els[0]);
final MultiValuedMap<K, V> map = TransformedMultiValuedMap.transformingMap( | 0 |
import org.apache.ambari.components.ComponentPlugin;
import org.apache.ambari.controller.HeartbeatHandler;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
private static Log LOG = LogFactory.getLog(ClusterImpl.class);
public ClusterImpl(Cluster cluster, long revision,
Clu... | 0 |
* nor may "Apache" appear in their name, without | 0 |
String DATA_FILE_NAME = "configs.dat";
String CONFIGURATION_TYPE = "config";
String KEY = "key";
String VALUE = "value";
String OPERATION = "operation";
String OPERATION_TYPE_SET = "SET";
String OPERATION_TYPE_REMOVE = "REMOVE"; | 0 |
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent... | 0 |
package org.apache.sshd.common.session.impl; | 0 |
* Constructs a new provider. | 0 |
import org.apache.batik.dom.anim.AnimationTarget; | 0 |
// void dispatchEvent(GraphicsNodeEvent evt);
// void addGraphicsNodeMouseListener(GraphicsNodeMouseListener l);
// void removeGraphicsNodeMouseListener(GraphicsNodeMouseListener l);
// void addGraphicsNodeKeyListener(GraphicsNodeKeyListener l);
// void removeGraphicsNodeKeyListener(GraphicsNodeKeyL... | 0 |
log.info("Taking table offline"); | 0 |
/*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed... | 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 |
// We ignore the potential race condition here (Ctrl-C after job submission but before the
// shutdown hook is registered). Even if we tried to do something smarter (eg., SettableFuture)
// the run method (which produces the job) could fail or be Ctrl-C'd before it had returned a
// job. The display of ... | 0 |
import org.apache.sshd.common.auth.MutablePassword;
public class PrivateKeyEncryptionContext implements MutablePassword, Cloneable {
@Override
@Override | 0 |
@Retention(RetentionPolicy.SOURCE) | 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 |
ZooCache zc = new ZooCacheFactory().getZooCache(context.getZooKeepers(),
context.getZooKeepersSessionTimeOut());
for (String tserver : zc
.getChildren(ZooUtil.getRoot(context.getInstanceID()) + Constants.ZTSERVERS)) {
String path = ZooUtil.getRoot(context.getInstanceID()) + Constants.ZTSER... | 0 |
PARAM_DELIMITER,
};
List elements = new ArrayList();
char ch = buffer.charAt(cursor.getPos() - 1);
final String name,
final String value,
... | 0 |
* @return The host keys as a {@link java.util.Map.Entry} of key + certificates (which can be {@code null}/empty) | 0 |
import java.util.concurrent.atomic.AtomicBoolean;
private final AtomicBoolean jpaInitialized = new AtomicBoolean(false);
public GuiceJpaInitializer(PersistService persistService) {
if (persistService != null) {
persistService.start();
}
* If an {@link AmbariEventPublisher} is supplied, a {@link Jp... | 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 |
/**
* Return all available properties
* @return A list of all property names or an empty list.
*/
List getProperties(); | 0 |
public interface RequestDirector { | 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... | 0 |
import java.util.List; | 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 applicabl... | 0 |
import java.lang.ref.WeakReference;
private final WeakReference transaction;
this.transaction = new WeakReference(transaction);
Transaction transaction = getTransaction();
getTransaction().registerSynchronization(new Synchronization() {
Transaction transaction = (Transaction)... | 0 |
public SequentialWorkAssigner(AccumuloConfiguration conf, AccumuloClient client) {
configure(conf, client);
final String instanceId = client.getInstanceID(); | 0 |
/* Generated By:JavaCC: Do not edit this line. Token.java Version 3.0 */ | 0 |
import static java.util.Collections.singletonMap;
import org.apache.accumulo.core.client.admin.NewTableConfiguration;
c.tableOperations().create(tableName, new NewTableConfiguration()
.setProperties(singletonMap(Property.TABLE_DURABILITY.getKey(), "none")));
c.tableOperations().create(tableName, n... | 0 |
implements org.apache.felix.scr.impl.helper.ReferenceMethod
@Override | 0 |
public class AsyncServerExpectationFilter implements AsyncFilterHandler { | 0 |
package org.apache.accumulo.shell.commands;
import org.apache.accumulo.shell.Shell;
import org.apache.accumulo.shell.ShellCommandException;
import org.apache.accumulo.shell.Shell.Command;
import org.apache.accumulo.shell.ShellCommandException.ErrorCode; | 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... | 1 |
import org.apache.cocoon.util.AbstractLogEnabled;
public abstract class AbstractModule
extends AbstractLogEnabled | 0 |
import org.apache.beam.sdk.fn.data.CloseableFnDataReceiver;
implements CloseableFnDataReceiver<WindowedValue<T>> { | 0 |
/** The role to lookup this bean. */
String ROLE = Settings.class.getName();
| 0 |
import java.io.File;
import java.util.Properties;
import junit.framework.TestCase;
import org.apache.log4j.Logger;
HashMap<Long,QuorumServer> peers;
"group.3=6:7:8\n\n" +
"weight.0=1\n" +
this.qp = new Properties();
if(v == null){
peers.put(L... | 0 |
import java.io.BufferedInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
import org.apache.fel... | 0 |
/*
* @throws MojoExecutionException : an exception occurs during the manipulation.
public void execute() throws MojoExecutionException {
// Look for the metadata file in the output directory
// If not found look inside the pom directory
if (! meta.exists()) {
... | 0 |
import java.util.HashMap;
private HashMap<String, ModuleComponent> componentHashMap;
/**
* Fetch a particular module component by the component name.
* @param moduleComponentName
* @return
*/
public ModuleComponent getModuleComponent(String moduleComponentName) {
return componentHashMap.get(modul... | 0 |
if (markerGroup == null) {
buildMarkerGroup();
}
if (markerGroup == null) {
buildMarkerGroup();
}
if (markerGroup == null) {
buildMarkerGroup();
}
if (markerGroup == null) {
buildMarkerGroup();
}
... | 1 |
*
* @deprecated since 1.7.0 In an attempt to clean up types in the data package that were not intended to be in public API this type was deprecated. Technically
* this method was not considered part of the public API in 1.6.0 and earlier, therefore it could have been deleted. However a decision was made ... | 1 |
@Parameter(names = "--min", description = "lowest random row number to use")
@Parameter(names = "--max", description = "maximum random row number to use")
@Parameter(names = "--debugLog", description = "file to write debugging output", converter = DebugConverter.class)
BaseOpts() {
super("ci")... | 0 |
if (failures != null && failures.length > 0) {
throw new Exception(failures.length + " failure files found importing files from " + dir);
} | 0 |
super(10); // CHECKSTYLE IGNORE MagicNumber | 0 |
Map<String, String> env = new HashMap<>(); | 0 |
private static final Set<String> PK_PROPERTY_IDS = new HashSet<>(
Arrays.asList(UPGRADE_REQUEST_ID, UPGRADE_GROUP_ID));
private static final Set<String> PROPERTY_IDS = new HashSet<>();
private static final Map<Resource.Type, String> KEY_PROPERTY_IDS = new HashMap<>();
Set<Resource> results = new HashSet<>... | 1 |
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights | 0 |
protected void setLocation(Element widgetElement, AbstractWidgetDefinition widgetDefinition) {
widgetDefinition.setLocation(DomHelper.getLocation(widgetElement));
}
| 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 applicable law o... | 0 |
return propertyValue != null && compareValueTo(propertyValue) > 0; | 1 |
* @version CVS $Id: InsertNodeJXPathBindingBuilder.java,v 1.2 2004/03/28 20:51:24 antonio Exp $
if (source != null) {
} | 0 |
expect(group1.getComponentNames()).andReturn(group1Components).anyTimes();
expect(group2.getComponentNames()).andReturn(group2Components).anyTimes();
group1Components.add("component1"); | 0 |
* Tests to see if Kerberos is enabled for this service using the Kerberos enabled test metadata
* and the existing cluster configurations.
*
* @return <code>true</code>. if it is determined that Kerberos is enabled for this service; <code>false</code>, otherwise
* @see #isKerberosEnabled(Map)
*/
boo... | 0 |
return getComputedStyleInternal(elt, pseudoElt);
}
/**
* Internal version of getComputedStyle().
*/
public CSSOMReadOnlyStyleDeclaration getComputedStyleInternal(Element elt,
String pseudoElt) {
CSSOMReadOnlyStyleDeclarat... | 0 |
import org.apache.batik.ext.awt.image.PadMode;
import org.apache.batik.ext.awt.image.rendered.AffineRed;
import org.apache.batik.ext.awt.image.rendered.BufferedImageCachableRed;
import org.apache.batik.ext.awt.image.rendered.MorphologyOp;
import org.apache.batik.ext.awt.image.rendered.RenderedImageCachableRed; | 0 |
import org.apache.http.ProtocolException;
if (response.containsHeader(HTTP.TRANSFER_ENCODING)) {
throw new ProtocolException("Transfer-encoding header already present");
}
if (response.containsHeader(HTTP.CONTENT_LEN)) {
throw new ProtocolException("Content-Length header ... | 0 |
AWSUtil.INSTANCE.getAwsUserName(S3_ACCESS_KEY, S3_SECRET_KEY); | 0 |
* <p>This example analyzes traffic sensor data using SlidingWindows. For each window,
* <p>In batch mode, the pipeline reads traffic sensor data from {@literal --inputFile}.
* <p>In streaming mode, the pipeline reads the data from a Pub/Sub topic.
* <p>The example is configured to use the default Pub/Sub topic and ... | 0 |
import org.apache.accumulo.miniclusterImpl.MiniAccumuloConfigImpl;
import org.apache.accumulo.miniclusterImpl.ProcessReference; | 0 |
* @version $Revision$ | 1 |
import org.apache.zookeeper.ZooDefs;
* the zookeeper config node that acts as the config management node for
* zookeeper
*/
private static final String configZookeeper = ZooDefs.CONFIG_NODE;
/** this will be the string thats stored as a child of /zookeeper */
private static final String conf... | 0 |
* An "empty" provider that returns {@code null} - i.e., unprotected key file
*/
FilePasswordProvider EMPTY = new FilePasswordProvider() {
@Override
public String getPassword(String resourceKey) throws IOException {
return null;
}
@Override
pub... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.