Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.ambari.server.controller.AddServiceRequest;
import org.apache.ambari.server.controller.AddServiceRequest.OperationType;
import org.apache.ambari.server.topology.addservice.AddServiceOrchestrator;
public static final String OPERATION_TYPE = "operation_type";
PROPERTY_IDS.add(OPERATION_TYPE);
@... | 0 |
if (LOG.isDebugEnabled()) {
LOG.debug("Received ACK from Observer " + this.sid);
} | 0 |
import org.apache.commons.jelly.util.ClassLoaderUtils;
* @version $Revision: 1.10 $
ClassLoader loader = ClassLoaderUtils.getClassLoader(null, true, getClass()); | 0 |
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
protected void tearDown() throws Exception { | 0 |
public final class Batch<T>
implements AlignedWindowing<T, Batch.Label, Batch.BatchWindowContext>
public static final class Label implements Serializable {
static final Label INSTANCE = new Label();
public static Label get() { return INSTANCE; }
private Label() {}
return other instanceof Label;
... | 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.spi.common.ServiceEnvironment;
import org.apache.accumulo.core.spi.common.ServiceEnvironment.Configuration;
import org.apache.accumulo.server.fs.VolumeChooserEnvironment.ChooserScope;
ServiceEnvironment serviceEnv = null;
Configuration sysConfig = null;
serviceEnv = EasyMock.cre... | 0 |
static final String SPECIAL = "<;|{[\"'$`(=";
return peek(false);
}
char peek(boolean increment)
{
int last = current;
char c = text.charAt(current++);
c = text.charAt(current++);
current += 4;
if (!increment) {
current = last;... | 0 |
/** Removes a service listener from this filter index. If the listener is not present in the filter index, this method does nothing. */ | 0 |
public void testCallableClosure() throws Exception {
JexlScript e = JEXL.createScript("function(t) {while(t);}");
e = (JexlScript) e.execute(null);
Callable<Object> c = e.callable(null, Boolean.TRUE);
ExecutorService executor = Executors.newFixedThreadPool(1);
Future<?>... | 0 |
log.warn("Could not find host component to strip from DFSLogger representation of WAL");
// Mark that we have data we want to replicate
// This WAL could still be in use by other Tablets though
ReplicationTableUtil.updateFiles(SystemCredentials.get(), extent, logFile... | 0 |
* @version $Revision: 1.4 $ $Date: 2004/05/16 11:16:01 $
* Evaluates the predicate returning true if the input object hasn't been
* received yet.
*
* @param object the input object
* @return true if this is the first time the object is seen
| 0 |
public void releaseConnection(ManagedClientConnection conn, long validDuration, TimeUnit timeUnit) {
connectionPool.freeEntry(entry, reusable, validDuration, timeUnit);
public void closeExpiredConnections() {
connectionPool.closeExpiredConnections();
connectionPool.deleteClo... | 0 |
@DefaultAnnotation(NonNull.class)
import edu.umd.cs.findbugs.annotations.DefaultAnnotation;
import edu.umd.cs.findbugs.annotations.NonNull; | 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.felix.ipojo.PrimitiveInstanceDescription;
assertEquals("Number of created objects", expected, ((PrimitiveInstanceDescription) ci.getInstanceDescription()).getCreatedObjects().length); | 0 |
BeamSqlRelUtils.toPCollection(pipeline, node).apply(ParDo.of(doFn)); | 0 |
public void testManipulatingTheInner() throws Exception { | 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 |
/**
* <p>
* Activates 'Expect: 100-Continue' handshake for the
* {@link org.apache.commons.httpclient.methods.ExpectContinueMethod
* entity enclosing methods}. The purpose of the 'Expect: 100-Continue'
* handshake to allow a client that is sending a request message with
* a request ... | 0 |
public Lock getLock() {
return this.session.getLock();
}
@Override
return this.session.getLock();
this.session.getLock().lock();
this.session.getLock().unlock();
this.session.getLock().lock();
this.session.getLock().unlock();
this.session.getL... | 0 |
import org.apache.batik.ext.awt.RenderingHintsKeyExt;
import org.apache.batik.gvt.event.EventDispatcher;
float x=0, y=0;
float width=(float)paper.getWidth(), height=(float)paper.getHeight();
g.setRenderingHint(RenderingHintsKeyExt.KEY_TRANSCODING,
RenderingHintsKeyExt... | 0 |
import org.apache.batik.css.engine.CSSEngine;
return getAttributeNS(null, "id");
for (Element e = CSSEngine.getParentCSSStylableElement(this);
e = CSSEngine.getParentCSSStylableElement(e)) {
for (Element e = CSSEngine.getParentCSSStylableElement(this);
e != null;
... | 0 |
@Override
@Override | 0 |
* @version CVS $Id: DelayedRefreshSourceWrapper.java,v 1.2 2003/03/16 17:49:13 vgritsenko Exp $ | 0 |
package org.apache.ambari.components.impl;
import java.io.IOException;
import java.util.List;
import org.apache.ambari.common.rest.entities.agent.Action;
import org.apache.ambari.common.rest.entities.agent.Command;
import org.apache.ambari.components.ClusterContext;
import org.apache.ambari.components.ComponentPlugin... | 0 |
"aarp", // aarp AARP
"apple", // apple Apple Inc.
"aramco", // aramco Aramco Services Company
"arte", // arte Association Relative à la Télévision Européenne G.E.I.E.
"beats", // beats Beats Electronics, LLC
"cipriani", // cipriani Hotel Cipriani Srl
"clubmed", //... | 0 |
if (xi.getNodeFilters() != null && !xi.getNodeFilters().isEmpty()) { | 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 |
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import org.apache.zookeeper.PortAssignment;
/**
//private static final Logger LOG = Logger.getLogger(PurgeTxnTest.class);
private static String HOSTPORT = "127.0.0.1:" + PortAssignment.unique();
* @throws Exception an exception might be thrown here
ZooKeeperServer zks = new ZooKeeperServer(tmpDir, ... | 0 |
import java.security.SecureRandom;
Random r = new SecureRandom();
r.setSeed(rowid);
Random r = new SecureRandom(); | 0 |
private static final Map<String, Map<String, String>> clusterProps = new HashMap<>();
new HashMap<>();
Map<String, String> clusterTypeProps = new HashMap<>();
Map<String, Map<String, String>> clusterTypeAttributes = new HashMap<>();
Map<String, String> clusterAttributeProps = new HashMap<>();
Map<... | 0 |
import java.io.File;
import java.io.FileInputStream;
import java.net.URL;
import java.util.Date;
public static final Class STRING_VALUE = String.class;
public static final Class OBJECT_VALUE = Object.class;
public static final Class NUMBER_VALUE = Number.class;
public static final Class DATE_VALUE = D... | 0 |
import org.apache.beam.vendor.grpc.v1p13p1.com.google.common.collect.Lists;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
.combineBy(Sums.ofLongs())
@Test
public void testCombineFull() {
execute(
new AbstractTestCase<Integer, KV<Integer, Integer>>() {
... | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
AccumuloClient conn = accumulo.getConnector("root", "superSecret");
AccumuloClient uconn = accumulo.getConnector("user1", "pass1");
AccumuloClient conn = accumulo.getConnector("root", "superSecret"); | 0 |
existing.setUserName(UserName.fromString(SERVICEOP_USER_NAME)); | 0 |
import org.apache.felix.http.base.internal.runtime.dto.state.FailureFilterState;
import org.apache.felix.http.base.internal.runtime.dto.state.FilterState;
private static final class FilterRegistrationStatus implements FailureFilterState
@Override
public FilterInfo getFilterInfo() {
retu... | 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 $Id$ | 0 |
/*
* Copyright 2000-2009 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 ... | 0 |
* @version $Revision$ | 0 |
if (SystemUtils.isJavaVersionAtLeast(1.4f))
{
conf.addProperty("email.string", "ebourg@apache.org");
conf.addProperty("email.string.interpolated", "${email.string}");
conf.addProperty("email.object", createInternetAddress("ebourg@apache.org"));
} | 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.osgi.framework.VersionRange;
return ((VersionRange)rhs).includes((Version)lhs);
rhs = new VersionRange(rhsString); | 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 org.apache.beam.runners.core.serialization.Base64Serializer; | 0 |
import com.beust.jcommander.Parameter;
static class Opts extends org.apache.accumulo.core.cli.Help {
@Parameter(names="--configDir", required=true, description="directory containing the test configuration")
String configDir;
@Parameter(names="--logDir", required=true, description="location of the local ... | 1 |
import org.apache.accumulo.core.clientImpl.ClientContext;
import org.apache.accumulo.core.clientImpl.Namespace;
import org.apache.accumulo.core.clientImpl.Table;
import org.apache.accumulo.core.clientImpl.Tables; | 0 |
static final boolean O = false;
/* INITIAL */ {X, X, O, O, O, O, X},
/* HAVE_LOCK */ {O, X, X, X, O, O, X},
/* SAFE_MODE */ {O, O, X, X, X, ... | 0 |
*
* @since 4.0 | 0 |
import java.util.Map.Entry;
private static final int NUM_ROWS = 5;
private static final int NUM_DOCIDS = 200; | 0 |
new Thread(
() -> {
try {
publishData(numMessages, delayInMillis);
} catch (IOException e) {
System.err.println(e);
}
})
.start(); | 0 |
package org.apache.cocoon.spring.impl;
import org.apache.cocoon.core.container.spring.SitemapNamespaceHandler; | 0 |
return SVG_ELLIPSE_CX_DEFAULT_VALUE;
return SVG_ELLIPSE_CY_DEFAULT_VALUE;
SVGAnimatedLength result;
if (cxReference == null ||
(result = (SVGAnimatedLength)cxReference.get()) == null) {
result = new SVGOMAnimatedLength(this, null, SVG_CX_... | 0 |
false /** useDbSnapshotForTaskStore */,
// We can just pass an empty lambda for the MigrationManager as migration is a no-op
// when restoring from backup.
() -> { } /** migrationManager */); | 0 |
import org.apache.felix.scr.impl.metadata.DSVersion;
final boolean methodRequired, final Class<?> componentClass, final DSVersion dsVersion, final boolean configurableServiceProperties )
super( methodName, methodRequired, componentClass, dsVersion, configurableServiceProperties );
return ge... | 0 |
public String getNegotiated(int index) {
return negotiated[index];
return factoryManager.getKeyPairProvider().loadKey(negotiated[SshConstants.PROPOSAL_SERVER_HOST_KEY_ALGS]); | 0 |
/** The event class. */
public final String category;
public EventInfo( final String topic, final String info, final String category )
this.category = category;
public EventInfo( final String topic, final String info, final String category, final Map props )
this.category = category; | 0 |
import org.apache.sshd.common.auth.UsernameHolder;
* Represents an SSH session. <B>Note:</B> the associated username for the session
* may be {@code null}/empty if the session is not yet authenticated
public interface Session extends SessionListenerManager, ChannelListenerManager, Closeable, UsernameHolder { | 0 |
public void setOne(final String one) {
public void setTwo(final String two) {
public void setThree(final String three) {
public void setFour(final String four) { | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/decorators/Attic/BaseProxyIntCollection.java,v 1.3 2003/11/07 20:17:13 rwaldhoff Exp $
* @deprecated This code has been moved to Jakarta Commons Primitives (http://jaka... | 0 |
VOPTS.setClientInfo(getClientInfo()); | 0 |
* or more contributor license agreements. See the NOTICE file
* regarding copyright ownership. The ASF licenses this file
* with the License. You may obtain a copy of the License at
* KIND, either express or implied. See the License for the | 0 |
public abstract class SingleInputOperator<InputT, OutputT> extends Operator<InputT, OutputT> {
final Dataset<InputT> input;
protected SingleInputOperator(String name, Flow flow, Dataset<InputT> input) {
public Dataset<InputT> input() {
public Collection<Dataset<InputT>> listInputs() { | 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 |
if(baseDirectoryFile.list().length == 0 && serverArtifact != null) {
// create the wiring, in exclusive mode from scratch, elese take the existing one
Wiring wiring = null;
} else {
// check wiring version
String wiringVersion = XMLUtils.getDocumentNamespace(frm.readResource(txId, WIRING_FILE));
... | 0 |
import java.net.InetAddress;
import org.apache.http.HttpHost;
import org.apache.http.conn.params.ConnRoutePNames;
import org.apache.http.params.CoreConnectionPNames;
import org.apache.http.params.CoreProtocolPNames;
.setSocketTimeout(params.getIntParameter(
CoreConnectionPNames.S... | 0 |
* @see PropertyUtilsBean#getReadMethod(PropertyDescriptor)
* @see PropertyUtilsBean#getWriteMethod(PropertyDescriptor) | 0 |
private static final HashSet<String> validExtensions =
new HashSet<>(Arrays.asList(Constants.MAPFILE_EXTENSION, RFile.EXTENSION));
return (NeedsFile<
NeedsRange<OpenScanReaderOperationBuilder>>) (NeedsFile<?>) new OpenScanReaderOperation();
protected static class FileAccessOperation<
Subclas... | 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 |
if (NamespaceURI != null && NamespaceURI.length() > 0) { | 0 |
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concur... | 0 |
// APIVersion -> Log -> StatsExporter -> SchedulerThriftInterface | 0 |
* Copyright 1999-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 ... | 1 |
public final class NotNullPredicate<T> implements Predicate<T>, Serializable {
public static final Predicate<Object> INSTANCE = new NotNullPredicate<Object>();
@SuppressWarnings("unchecked")
public static <T> Predicate<T> getInstance() {
return (Predicate<T>) INSTANCE;
public boolean evaluate(T ... | 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.Collections;
return properties == null ? Collections.<PropertyConfig>emptyList() : properties; | 0 |
* Copyright 2017 Seznam.cz, a.s. | 0 |
/**
* Create an information structure for dynamic set/get/invoke/new.
* <p>This gathers the class, method and line number of the first calling method
* outside of o.a.c.jexl3.</p>
*/
public JexlInfo() {
StackTraceElement[] stack = new Throwable().getStackTrace()... | 0 |
import org.apache.zookeeper.server.quorum.LearnerHandler;
@Test
public void testGetView() {
ct.assertEquals(5,qb.s1.getView().size());
ct.assertEquals(5,qb.s2.getView().size());
ct.assertEquals(5,qb.s3.getView().size());
ct.assertEquals(5,q... | 0 |
/**
* Builds a GVT tree using the specified context and SVG element
* @param ctx the context to use
* @param element element for which a GVT representation should be built
*/
public GraphicsNode build(BridgeContext ctx, Element element){
GraphicsNodeBridge graphicsNodeBridge =
... | 0 |
float d = Math.max(dw, dh);
transform = AffineTransform.getScaleInstance(w / d, h / d); | 0 |
import org.apache.aurora.common.stats.Stat;
assertEquals(String.join("\n", expectedLines), vars.getVars()); | 0 |
import org.apache.accumulo.core.client.impl.ThriftTransportPool;
ThriftTransportPool.getInstance().setIdleTime(ServerConfiguration.getSiteConfiguration().getTimeInMillis(Property.GENERAL_RPC_TIMEOUT));
| 0 |
import org.apache.accumulo.core.security.tokens.UserPassToken;
result = conn.securityOperations().authenticateUser(new UserPassToken(target, password)); | 0 |
.getDefaultJavaEnvironmentUrl())); | 0 |
import static org.junit.Assert.assertTrue;
} | 0 |
* @see org.apache.accumulo.core.iterators.user.SummingCombiner with SummingCombiner.Type.VARLEN | 0 |
import cz.seznam.euphoria.core.client.dataset.windowing.Window;
import cz.seznam.euphoria.core.client.triggers.Trigger;
class AttachedWindowing<T, W extends Window> implements Windowing<T, W> {
public Set<W> assignWindowsToElement(WindowedElement<?, T> input) {
return Collections.singleton((W) input.getWindow());... | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables.getOnlyElement;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap; | 0 |
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import cz.seznam.euphoria.testing.DatasetAssert; | 0 |
ConfigurationImpl cfg = null;
if (! (pmList[i].isNotCachablePersistenceManager()))
{
cfg = getCachedConfiguration( pid );
} | 0 |
public static final XMLOutputFactory xmlOutputFactoryNonRepairingNs;
xmlOutputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);
xmlOutputFactoryNonRepairingNs = XMLOutputFactory.newInstance();
xmlOutputFactoryNonRepairingNs.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESP... | 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 |
import java.nio.charset.Charset;
protected String getReferencedName(Buffer buf) {
Charset cs = getNameDecodingCharset();
return buf.getString(cs);
}
String name = getReferencedName(buffer);
longName = getReferencedName(buffer);
String untranslated... | 0 |
factory.addProperty("xml.fileName", "test.xml");
factory.addProperty("xml[@config-at]", "test1");
factory.addProperty("xml[@at]", "test2");
factory.clearProperty("xml[@config-at]");
factory.addProperty("xml[@config-optional]", "true");
factory.addProperty("xml[@optional]"... | 0 |
new FileBasedSink<Integer, Void, Integer>(
DynamicFileDestinations.<Integer>constant(new FakeFilenamePolicy())) {
public WriteOperation<Void, Integer> createWriteOperation() {
}); | 0 |
/**
* Obtains the value of {@link NIOReactorPNames#CONTENT_BUFFER_SIZE} parameter.
* If not set, defaults to <code>4096</code>.
*
* @param params HTTP parameters.
* @return content buffer size.
*/
return params.getIntParameter(CONTENT_BUFFER_SIZE, 4096);
/**
* Sets va... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.