Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
options.setStreaming(true); | 0 |
@Deprecated | 0 |
* Copyright (c) 2002 The Apache Software Foundation. All rights | 0 |
import org.apache.felix.sigil.model.ICapabilityModelElement;
import org.apache.felix.sigil.model.eclipse.IBundleCapability;
public boolean accepts( ICapabilityModelElement provider )
if ( provider instanceof IBundleCapability )
IBundleCapability bndl = ( IBundleCapability ) provider; | 0 |
s.setRange(MetadataSchema.TabletsSection.getRange(org.apache.accumulo.core.client.impl.Table.ID.of(tableId))); | 1 |
Authorizations auths =
shellState.getConnector().securityOperations().getUserAuthorizations(user); | 0 |
if (saslEnabled()) {
opts.updateKerberosCredentials();
vopts.updateKerberosCredentials(); | 0 |
package org.apache.cocoon.template.v2.script; | 0 |
@Property(name= "foo") | 0 |
import org.apache.log4j.Logger;
import org.junit.Test;
private static final Logger LOG = Logger.getLogger(S3UtilTest.class);
// @Test
// @Test | 0 |
import org.apache.commons.jxpath.ri.model.beans.NullPointer;
private static final long serialVersionUID = -8751046933894857319L;
return testNode(node, test,
getNamespaceResolver().isDefaultNamespaceIgnored());
return testNode(node, test, false);
}
public static boolea... | 0 |
Document doc = XMLUtils.read(fis, false); | 0 |
import org.apache.ambari.server.agent.stomp.AgentConfigsHolder;
import org.apache.ambari.server.agent.stomp.MetadataHolder;
import org.apache.ambari.server.controller.AmbariManagementControllerImpl;
import com.google.inject.Provider;
private Provider<MetadataHolder> m_metadataHolder;
@Inject
private Provider<Age... | 1 |
node.setImageBounds(bounds); | 0 |
import org.apache.sshd.common.future.KeyExchangeFuture;
* @return An {@link KeyExchangeFuture} for awaiting the completion of the exchange
KeyExchangeFuture reExchangeKeys() throws IOException; | 0 |
} catch (UnsupportedOperationException e) {
sendStatus(id, SSH_FX_FAILURE, "");
} catch (UnsupportedOperationException e) {
sendStatus(id, SSH_FX_FAILURE, e.getMessage());
} catch (UnsupportedOperationException e) {
... | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
*... | 0 |
import org.apache.ambari.logsearch.config.zookeeper.model.inputconfig.impl.MapFieldValueDescriptorImpl;
MapFieldValueDescriptorImpl mapFieldValueDescriptor = new MapFieldValueDescriptorImpl();
mapFieldValueDescriptor.setPreValue("someValue");
mapFieldValueDescriptor.setPostValue("someOtherValue");
asser... | 0 |
* @since 5.3 | 0 |
import static com.google.common.base.Preconditions.checkArgument;
checkArgument(auths != null, "auths is null"); | 0 |
// its possible that the cache could contain complete, but old information about a tables tablets... so clear it
tl.invalidateCache();
tl.invalidateCache(); | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState; | 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 ... | 1 |
/*
*
*
*
*
*
* {@linkplain #getResources() resources} set on this instance if
* | 0 |
return 1; | 0 |
/* ====================================================================
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* @version $Revision: 1.3 $ $Date: 2004/01/14 21:34:35 $ | 0 |
* Return an <code>URI</code> representing the encoding of the | 0 |
public static final String REPOSITORY_VERSION_RESOLVED_PROPERTY_ID = PropertyHelper.getPropertyId("RepositoryVersions", "resolved");
REPOSITORY_VERSION_STACK_SERVICES,
REPOSITORY_VERSION_RESOLVED_PROPERTY_ID);
setResourceProperty(resource, REPOSITORY_VERSION_RESOLVED_PROPERTY_ID, entity.is... | 1 |
if (Services.AMBARI.name().equals(serviceName)) { | 0 |
public class InnerClassAdapter extends ClassVisitor implements Opcodes {
* @param visitor parent class visitor
public InnerClassAdapter(String name, ClassVisitor visitor, String outerClassName,
super(Opcodes.ASM5, visitor);
//TODO FRAME HACK HERE
* @see org.objectweb.asm.ClassVisitor... | 0 |
// check for invalidating session(s) first
final ExtServletContext servletContext = servletHandler.getContext();
final FilterChain filterChain = new InvocationChain(servletHandler, filterHandlers); | 0 |
@org.junit.jupiter.api.Test | 0 |
* @version $Id: Configuration.java,v 1.5 2004/03/01 11:15:16 epugh Exp $
* @param value The Value to add. | 0 |
import org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation;
impl = ExtensibleSVGDOMImplementation.getDOMImplementation();
impl = ExtensibleSVGDOMImplementation.getDOMImplementation(); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestPredicatedBuffer.java,v 1.2 2003/09/20 17:05:36 scolebourne Exp $
import java.util.Collection;
import org.apache.commons.collections.Predicate;
* @version $R... | 0 |
import org.apache.accumulo.core.clientImpl.Table;
import org.apache.accumulo.core.dataImpl.KeyExtent; | 0 |
import static org.junit.Assert.assertTrue;
assertTrue("Expected one of password or keytab", null != password || null != keytab);
}
if (null != keytab) {
assertTrue("Expected one of password or keytab", null != password || null != keytab);
}
if (null != keytab) { | 0 |
private static boolean ignoreLineBreaks = false;
public static boolean ignoreLineBreaks() {
return ignoreLineBreaks;
} | 0 |
* Copyright 2016 Seznam.cz, a.s. | 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 com.twitter.mesos.scheduler.state.SchedulerCore; | 0 |
private final static String COLLECTOR_URL = "http://%s:6188/ws/v1/timeline/metrics"; | 0 |
package org.apache.beam.sdk.util;
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.coders.CoderException;
import org.apache.beam.sdk.coders.IterableCoder;
import org.apache.beam.sdk.coders.StandardCoder;
import org.apache.beam.sdk.transforms.windowing.BoundedWindow;
import org.apache.beam.sdk.util.Ti... | 0 |
Map<BundleCapability, Set<BundleWire>> providedCaps =
if (providedCaps != null)
// The wires are supposed to be in declared capability order, so
// get the capability list from the revision's wiring, which is
// in declared order (including fragments), and use it to c... | 0 |
instanceId = configuration.getProperty(INSTANCE_ID_PROPERTY, null); | 0 |
* @version $Id$ | 0 |
/**
* {@inheritDoc}
*/
@Override
public Set<String> checkPropertyIds(Set<String> propertyIds) {
Set<String> baseUnsupported = super.checkPropertyIds(propertyIds);
return checkConfigPropertyIds(baseUnsupported, "Hosts");
} | 0 |
sb.append(String.format("0x%x ", (int) b)); | 0 |
*
*
*/
String[] message= {
"Convert " + message[i] + " should return a " + getExpectedType().getName(),
* Convert Number --> String (using a Pattern, with default and specified Locales)
* Convert Number --> String (using default and specified Locales)
* Convert Number --> Str... | 0 |
* </p> | 0 |
/*
* Copyright 1999-2005 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... | 0 |
* @version CVS $Id: TreeProcessor.java,v 1.28 2004/05/25 13:30:10 cziegeler Exp $ | 0 |
/**
* <p>Thrown when an option requiring an argument
* @author John Keyes (jbjk at mac.com)
* @see ParseException
/**
* <p>Construct a new <code>MissingArgumentException</code>
* with the specified detail message.</p>
* @param message the detail message
public MissingArgumentException( Stri... | 0 |
* Determines whether the view directory watcher service should be disabled.
*/
@Markdown(description = "Determines whether the view directory watcher service should be disabled.")
public static final ConfigurationProperty<String> DISABLE_VIEW_DIRECTORY_WATCHER = new ConfigurationProperty<>(
"views.direc... | 0 |
import java.io.Serializable;
public class EmptyFileFilter extends AbstractFileFilter implements Serializable { | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/locale/LocaleConvertUtils.java,v 1.5 2003/03/09 21:25:17 rdonkin Exp $
* $Revision: 1.5 $
* $Date: 2003/03/09 21:25:17 $
import org.apache.commons.beanutils.Converter;
* @except... | 0 |
if (!shellState.getConnector().tableOperations().exists(tableName))
throw new TableNotFoundException(null, tableName, null);
if (iterator == null)
return 0;
if (!iterator.getProperties().isEmpty() && !deleteAll)
shellState.getConnector().tableOperations().attachIterator(tableName, iter... | 1 |
stringTemplateParserName = "legacy"; | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableSet; | 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... | 0 |
return new ConnectorImpl(this, CredentialHelper.create(principal, token, getInstanceID())); | 0 |
Class<? extends DigesterLoaderHandler<? extends Annotation, ? extends AnnotatedElement>>
handledBy() default DefaultLoaderHandler.class;
Class<? extends AnnotationRuleProvider<? extends Annotation, ? extends AnnotatedElement, ? extends Rule>>
providedBy(); | 0 |
* @version $Revision$ | 0 |
DisplayData.item("filePattern", getFilepattern()).withLabel("File Pattern"))
DisplayData.item("tempDirectory", getTempDirectory()) | 0 |
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
private final Map<PValue, JavaRDDLike<?, ?>> rdds = new LinkedHashMap<>();
private final Set<JavaRDDLike<?, ?>> leafRdds = new LinkedHashSet<>();
private final Set<PValue> multireads = new LinkedHashSet<>();
private final Map<PValue, Object> pobjec... | 0 |
return request.getParameterMap().keySet().iterator(); | 0 |
import com.twitter.mesos.executor.StateChangeListener.StateChangeListenerImpl;
import com.twitter.mesos.executor.sync.SyncBuffer;
import com.twitter.mesos.executor.sync.SyncBuffer.SyncBufferImpl;
import com.twitter.mesos.executor.sync.SyncBufferSize;
import com.twitter.mesos.gen.ScheduleStatus;
@CmdLine(name = "state... | 0 |
@Override
@Override
@Override | 0 |
Long getId();
String getName();
void setName(String name);
String getClusterName();
String getTag();
void setTag(String tag);
String getDescription();
void setDescription(String description);
Map<Long, Host> getHosts();
Map<String, Config> getConfigurations();
void delete();
void addHost(Host ho... | 0 |
public abstract class AbstractLinkedListTest<T> extends AbstractListTest<T> {
public AbstractLinkedListTest(String testName) { | 0 |
public void setServicefactory(boolean servicefactory) {
this.servicefactory = String.valueOf(servicefactory);
} | 0 |
import org.apache.felix.ipojo.junit4osgi.helpers.IPOJOHelper;
IPOJOHelper helper;
helper = new IPOJOHelper(this);
ComponentInstance instance = helper.createComponentInstance("ManipulationPrimitives-PrimitiveManipulationTesterA");
ServiceReference ref = helper.getServiceReferenceByName(P... | 0 |
* @version CVS $Id: SitemapSource.java,v 1.2 2003/03/12 12:55:16 cziegeler Exp $
this.pipelineProcessor = CocoonComponentManager.getLastProcessor(this.environment);
this.environment.changeToLastContext(); | 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 |
throw new IllegalStateException("Service cannot be retrieved via - activate() probably failed");
resultFromHealthCheck = new Result(Result.Status.HEALTH_CHECK_ERROR,
"Exception during execution of '" + metadata.getName() + "'", e); | 0 |
private static final long serialVersionUID = -964927635655051867L;
| 0 |
@Test
public void testSetProperty() {
String testType = "testType";
String cleanPropName = "prop1";
String qualifiedPropName = "test.prop1";
String propValue = "newValue";
Vertex v = createStrictMock(Vertex.class);
PropertyMapper propertyMapper = createStrictMock... | 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.data.impl.KeyExtent; | 1 |
* A (command parameter) property name used to hold the authenticated user's name for use in
* operations that record the acting user.
*/
public static final String AUTHENTICATED_USER_NAME = "authenticated_user_name";
/** | 0 |
* streaming early access program and who enable
* | 0 |
import org.apache.beam.sdk.extensions.euphoria.core.translate.collector.AdaptableCollector;
import org.apache.beam.sdk.extensions.euphoria.core.translate.collector.SingleValueCollector;
private final AdaptableCollector<KV<K, Iterable<V>>, KV<K, OutT>, OutT> collector;
this.collector =
new AdaptableC... | 0 |
protected volatile String m_swap;
private volatile boolean m_debug = false;
private volatile String m_debugKey;
private volatile long m_trackedServiceReferenceId; | 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 |
public String toString(){
return sw.toString();
public void setVersion(long ver) {
version = ver;
}
| 0 |
import org.apache.hc.core5.http.io.HttpClientResponseHandler;
@Before
this.server.registerHandler("/", new HttpRequestHandler() {
this.server.registerHandler("/echo", new HttpRequestHandler() {
Request.Get(baseURL + "/").execute().handleResponse(new HttpClientResponseHandler<Object>() { | 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.sshd.common.AttributeRepository;
import org.apache.sshd.common.AttributeRepository.AttributeKey;
* The {@link AttributeRepository.AttributeKey} used to store the cached authentication results on the session instance
public static final AttributeRepository.AttributeKey<Map<PublicKey, Boolean>>... | 0 |
import java.util.HashMap;
import java.util.Map;
import org.apache.beam.sdk.values.TupleTag;
PCollection mockOutput = mock(PCollection.class);
when(translationContext.getInputs()).thenReturn(Collections.EMPTY_MAP);
Map<TupleTag<?>, PValue> inputs = new HashMap<>();
TupleTag tag = mock(TupleTag.class);
... | 0 |
Copyright 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 or a... | 0 |
* @version CVS $Id: MP3DirectoryGenerator.java,v 1.3 2003/07/05 04:33:57 joerg Exp $
String s = new String(buf, offset, length);
int index = s.indexOf(0x00);
return s.trim(); | 0 |
package org.apache.felix.bundleplugin; | 0 |
/**
* This patch handler installs free text request handlers for already running Atlas instances.
* --instances that were deployed with older versions.
*/ | 0 |
import static org.apache.commons.compress.utils.CharsetNames.UTF_8;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
private final Compression canonical;
writer = new PrintWriter(new BufferedWriter(
new OutputStreamWriter(Channels.newOutputStream(channel), UTF_8))); | 0 |
public AtlasServer getCreateAtlasServer(String clusterName, String serverFullName) throws AtlasBaseException {
AtlasServer defaultServer = new AtlasServer(clusterName, serverFullName); | 0 |
import java.io.UnsupportedEncodingException;
import javax.swing.DebugGraphics;
import org.apache.commons.jelly.XMLOutput;
assertEquals(DebugGraphics.FLASH_OPTION|DebugGraphics.LOG_OPTION, panel.getDebugGraphicsOptions());
assertEquals(DebugGraphics.BUFFERED_OPTION, button.getDebugGraphicsOptions());
... | 0 |
private static final String EXPECTED_OUTPUT_CHECKSUM = "0549d1dc8821976121771aefcb0e2297177bdb88"; | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; | 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 |
byte[] tmp = new byte[2048]; | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.