Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
private final String instanceID;
instanceID = context.getInstanceID();
@Deprecated
public org.apache.accumulo.core.client.Instance getInstance() {
return context.getDeprecatedInstance();
return instanceID; | 0 |
import javax.inject.Inject;
import org.apache.ambari.logsearch.conf.AuthConfig;
@Inject
private AuthConfig authConfig;
private boolean enableLog = false;// default
url = authConfig.getExternalAuthHostUrl() + url; | 0 |
package org.apache.commons.digester3;
import org.apache.commons.digester3.Rule; | 1 |
import com.twitter.aurora.gen.AuroraAdmin;
private AuroraAdmin.Iface thrift;
bind(AuroraAdmin.Iface.class).to(SchedulerThriftInterface.class);
thrift = injector.getInstance(AuroraAdmin.Iface.class); | 0 |
throw new SAXParseException("unrecognized instruction: " + localName, | 0 |
* Use {@link Instance#getConnector(String, byte[])}
* @see Instance#getConnector(String user, byte[] password) | 0 |
// TODO(wfarner): This should queue requests that have non-zero status codes. | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/converters/SqlTimeConverter.java,v 1.3 2002/07/13 02:22:08 craigmcc Exp $
* $Revision: 1.3 $
* $Date: 2002/07/13 02:22:08 $
* @version $Revision: 1.3 $ $Date: 2002/07/13 02:22:08 $
... | 0 |
package org.apache.felix.sigil.common.repository; | 0 |
this.listenerFilter = "(" + Constants.OBJECTCLASS + "=" + clazz + ")";
if ((context == null)) {
throw new NullPointerException( "BundleContext");
default :
System.out.println("Unrecognized event type: ServiceTracker.Tracked.serviceChanged[" + event.getType() + "]: " + reference);
| 0 |
* @version CVS $Id: EP_Default_.java,v 1.3 2003/09/05 07:31:40 cziegeler Exp $ | 0 |
import org.apache.ambari.server.H2DatabaseCleaner;
H2DatabaseCleaner.resetSequences(injector);
entityManager = injector.getProvider(EntityManager.class).get();
H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector); | 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 |
* Create a connection to a servlet service. In order to use it, the fully qualified service name must be available.
*
*
if (serviceName == null) {
.getRequiredWebApplicationContext(this.context);
} catch (ClassCastException cce) {
throw new IllegalArgumentException("... | 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 |
* while retrieving the reference. | 0 |
public void setAccumuloConfigs(Job job) { | 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 |
* </p> | 0 |
*
*
// have to declare this larger as we're going to read
// off the end of the stream and input stream seems
found++;
| 0 |
public class OBRRepositoryWizard extends RepositoryWizard
{
@Override
public void addPages()
{
addPage( new OBRRepositoryWizardPage( this ) );
} | 0 |
public void addEmail( @CallParam( pattern = "address-book/person/email", attributeName = "type" ) String type, | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/SortedBag.java,v 1.2 2002/02/10 08:07:42 jstrachan Exp $
* $Revision: 1.2 $
* $Date: 2002/02/10 08:07:42 $
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights | 0 |
* @version $Id: BagUtils.java,v 1.2 2002/08/13 00:46:25 pjack Exp $
* @since 2.1 | 0 |
import org.apache.ambari.server.controller.utilities.PropertyHelper;
public static final String VIEW_INFO = "ViewInfo";
public static final String VIEW_NAME_PROPERTY_ID = "view_name";
public static final String VIEW_NAME = VIEW_INFO + PropertyHelper.EXTERNAL_PATH_SEP + VIEW_NAME_PROPERTY_ID;
.put(Resource.Ty... | 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 |
log.debug("Provided credentials did not match server's expected"
+ " credentials. Expected {} but got {}", context.getCredentials(), creds);
log.info("Granted namespace permission {} for user {} on the namespace {}"
+ " at the request of user {}", permission, user, namespace, c.g... | 0 |
import static org.apache.ambari.server.controller.internal.ProvisionAction.INSTALL_ONLY;
import static org.easymock.EasyMock.anyLong;
import static org.easymock.EasyMock.anyObject;
import static org.easymock.EasyMock.anyString;
import static org.easymock.EasyMock.capture;
import static org.easymock.EasyMock.createMockB... | 0 |
metricsPusher.start(); | 0 |
import static org.junit.Assert.assertEquals;
public abstract class LexicoderTest { | 0 |
// The end values are themselves likely to be arithmetic sequence, which
// is a poor distribution to use for a hashtable, so we | 0 |
import org.apache.accumulo.server.util.RpcWrapper;
Processor<Iface> processor = new Processor<Iface>(RpcWrapper.service(new MasterClientServiceHandler(this))); | 0 |
@Argument(index = 0, name = "id", description = "The bundle ID", required = true, multiValued = false)
@Option(name = "--force", aliases = {}, description = "Forces the command to execute", required = false, multiValued = false) | 0 |
AttributeStore getAttributeStore(); | 0 |
import static java.lang.String.format;
return format("ContentLength=%s, ContentType=%s",
this.getContentLength(),
this.getContentType()); | 0 |
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a> | 0 |
Connector connector = HdfsZooInstance.getInstance().getConnector(SecurityConstants.getSystemPrincipal(), SecurityConstants.getSystemToken());
Connector connector = HdfsZooInstance.getInstance().getConnector(SecurityConstants.getSystemPrincipal(), SecurityConstants.getSystemToken()); | 0 |
* Autogenerated by Thrift Compiler (0.9.0)
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
private byte __isset_bitfield = 0;
__isset_bitfield = other.__isset_bitfield;
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfiel... | 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 |
import org.apache.commons.jxpath.ri.QName;
* @version $Revision: 1.14 $ $Date: 2004/04/01 02:55:32 $
if (nodeTest instanceof NodeNameTest) {
QName qname = ((NodeNameTest) nodeTest).getNodeName();
String prefix = qname.getPrefix();
if (prefix != null) {
String... | 0 |
this.generator = (Generator) this.newManager.lookup(Generator.ROLE + '/' + role);
this.transformers.add(this.newManager.lookup(Transformer.ROLE + '/' + role));
this.serializer = (Serializer)this.newManager.lookup(Serializer.ROLE + '/' + role);
this.reader = (Reader)this.n... | 0 |
pipeline.getCoderRegistry().getCoder(output.getTypeDescriptor()); | 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.accumulo.server.security.SystemCredentials;
SetGoalState.main(new String[] {MasterGoalState.NORMAL.name()});
Process exec = Runtime.getRuntime().exec(new String[] {System.getenv().get("ACCUMULO_HOME") + "/bin/start-all.sh"});
MasterMonitorInfo masterStats = client.getMasterStats(Tracer... | 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 cz.seznam.euphoria.core.client.io.Context;
class ElementCollector<T> implements Context, cz.seznam.euphoria.core.client.io.Collector<T> {
public Context asContext() {
return this;
}
@Override | 0 |
import java.util.concurrent.TimeUnit;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
private Cache<Long, Map<String, List<String>>> clusterHostInfoCache;
this.clusterHostInfoCache = CacheBuilder.newBuilder().
expireAfterAccess(5, TimeUnit.MINUTES).
build();
... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/core/OtherwiseTag.java,v 1.10 2003/01/24 22:53:34 morgand Exp $
* $Revision: 1.10 $
* $Date: 2003/01/24 22:53:34 $
* $Id: OtherwiseTag.java,v 1.10 2003/01/24 22:53:34 morgand Exp $
imp... | 0 |
import com.google.gson.Gson;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.util.Modules;
import javax.persistence.EntityManager;
import java.io.File;
import java.io.FileReader;
import java.lang.reflect.Field;
import java.util.Collect... | 0 |
private final JavaClass clazz;
private final Visitor visitor;
private final Stack<Object> stack = new Stack<Object>(); | 0 |
import org.apache.beam.sdk.testing.DataflowPortabilityExecutableStageUnsupported;
@Category({ValidatesRunner.class, DataflowPortabilityExecutableStageUnsupported.class})
@Category({ValidatesRunner.class, DataflowPortabilityExecutableStageUnsupported.class})
@Category({ValidatesRunner.class, DataflowPortabilityExe... | 0 |
@Override
protected void configure() { | 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.HashMap;
import org.apache.ambari.server.configuration.Configuration;
Configuration configMock = createNiceMock(Configuration.class);
saRunner.setConfigs(configMock);
expect(processBuilder.environment()).andReturn(new HashMap<>()).times(3);
replay(processBuilder, configMock);
Config... | 0 |
super(); | 1 |
// SplittableParDo is implemented in terms of GroupByKeys and Primitives
// state and timer ParDos are implemented in terms of GroupByKeys and Primitives | 0 |
return value == null ? 1 : ValueUtils.getLength(value);
}
return index >= 0 && index < getLength() ? ValueUtils.getValue(value, index) : null;
return ValueUtils.getValue(value);
valuePointer = NodePointer.newChildNodePointer(this, getName(), value);
return parent == n... | 1 |
//@Override TODO why did this not work? TimerTask implements Runnable | 0 |
* @version $Revision$ | 0 |
String SVG_OVERLINE_POSITION_ATTRIBUTE = "overline-position";
String SVG_OVERLINE_THICKNESS_ATTRIBUTE = "overline-thickness"; | 0 |
return new UnmodifiableEntrySetIterator(decorated().iterator());
final Object[] array = decorated().toArray();
result = decorated().toArray(result); | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
import org.apache.cocoon.ProcessingUtil;
protected static final class ProxyHandler implements InvocationHandler, ProcessingUtil.CleanupTask {
ProcessingUtil.addCleanupTask(this);
* @see ProcessingUtil.CleanupTask#invoke() | 0 |
return sendNotImplemented(seqi - 1L); | 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 |
/*
* 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 |
package org.apache.accumulo.server.replication;
import org.apache.accumulo.server.replication.proto.Replication.Status; | 0 |
visitMethodInsn(INVOKESPECIAL, owner, "__get" + name, gDesc);
visitMethodInsn(INVOKESPECIAL, owner, "__set" + name, sDesc);
mv.visitMethodInsn(INVOKESPECIAL, m_owner, "_setInstanceManager", "(Lorg/apache/felix/ipojo/InstanceManager;)V"); | 0 |
if (clazz.isAnonymousClass()) { | 0 |
* @version $Id: ASTAddNode.java,v 1.5 2003/12/18 16:10:26 geirm Exp $
* the spec says 'and'
return new Long(0); | 0 |
import org.apache.calcite.plan.RelOptCost;
import org.apache.calcite.plan.RelOptPlanner;
import org.apache.calcite.rel.metadata.RelMetadataQuery;
public RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq) {
double leftRowCnt = mq.getRowCount(getLeft());
double leftRowSize = estimateRowSize(... | 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 |
// now process event aspects | 0 |
QuickLinksProfile profile = QuickLinksProfile.create(ImmutableList.of(Filter.acceptAllFilter(true)), null);
Service service = Service.create(HDFS, ImmutableList.of(Filter.acceptAllFilter(true)), null);
ImmutableList.of(Filter.linkNameFilter(NAMENODE_UI, true)));
Service service = Service.create(HDFS... | 0 |
protected static final String MP3_FREQUENCY_ATTR_NAME = "frequency";
protected static final String MP3_BITRATE_ATTR_NAME = "bitrate";
protected static final String MP3_MODE_ATTR_NAME = "mode";
protected static final String MP3_VBR_ATTR_NAME = "variable-rate";
protected static final String M... | 0 |
package org.apache.batik.util;
import org.junit.Test;
import static org.junit.Assert.fail;
public class Base64TestCases {
@Test
public void testZeroByteEncode() throws Exception {
performTest("ENCODE", "zeroByte", "zeroByte.64");
}
@Test
public void testZeroByteDecode() throws Exception ... | 0 |
private ConnectionPoolDataSource dataSource = null;
return dataSource;
if (dataSource != null)
dataSource = v;
if (dataSource != null) {
ConnectionPoolDataSource cpds = this.dataSource; | 0 |
final HttpHost target = authority != null ? new HttpHost(authority, scheme) : route.getTargetHost(); | 0 |
try (BufferedReader rdr = new BufferedReader(new InputStreamReader(getInputStream(), StandardCharsets.UTF_8))) {
} catch (Exception e) {
private static String toString(SocketAddress addr) {
public static List<String> parseCommandLineArguments(SshKeyScan scanner, String ... a... | 0 |
import org.apache.http.entity.ContentType;
import org.apache.http.nio.entity.NFileEntity;
import org.apache.http.nio.entity.NStringEntity;
import org.apache.http.nio.protocol.EventListener;
import org.apache.http.params.HttpParams;
* Basic, yet fully functional and spec compliant, HTTPS/1.1 server based on the non-blo... | 0 |
import org.apache.beam.sdk.transforms.DoFn.OnTimerContext;
public OnTimerContext onTimerContext(DoFn<InputT, OutputT> doFn) {
throw new UnsupportedOperationException(
"DoFnTester doesn't support timers yet.");
}
@Override | 0 |
public void test100() throws Exception {
JexlEngine jexl = new JexlEngine();
jexl.setCache(4);
String expr = "foo[0]";
JexlContext ctxt = new MapContext();
int[] foo = { 42 };
ctxt.set("foo", foo);
for(int l = 0; l < 2; ++l) {
Object value = jexl.... | 0 |
public void encode(Byte value, OutputStream outStream)
public Byte decode(InputStream inStream) | 0 |
public static RenderingHints.Key KEY_FONT_RENDER_CONTEXT = new RenderingHints.Key(100){
public static RenderingHints.Key KEY_TEXT_PAINTER = new RenderingHints.Key(101){
public static RenderingHints.Key KEY_GRAPHICS_NODE_RABLE_FACTORY = new RenderingHints.Key(102){
setRenderingHints(hints);
hints = getRend... | 0 |
* @author <a href="mailto:Thomas.DeWeese@Kodak.com">Thomas DeWeese</a> | 0 |
private Set<PropertyType> propertyTypes = new HashSet<>();
private List<Element> propertyAttributes = new ArrayList<>();
new HashSet<>();
new HashSet<>();
Map<String, String> attributes = new HashMap<>(); | 0 |
* NOTE: From Commons Collections 3.2 this method delegates to the newly
* added putAll(Map) override method.
putAll(mapToCopy);
* Override superclass to ensure that MultiMap instances are
* correctly handled.
* <p>
* NOTE: Prior to version 3.2, putAll(map) did not work properly
... | 0 |
* Defines the interface of a <code>TestReport</code> produced
* by a <code>TestSuite</code>.
* Returns an array of children <code>TestReports</code> which
* may be useful for reports generated by <code>TestSuite</code> | 0 |
matchedClasses = ClasspathScannerUtils.findOnClassPath(AMBARI_PACKAGE, new ArrayList<>(), classes); | 0 |
* {@link org.apache.commons.configuration2.builder.fluent.FileBasedBuilderParameters
* FileBasedBuilderParameters} is a base interface of
* {@link org.apache.commons.configuration2.builder.fluent.PropertiesBuilderParameters
* PropertiesBuilderParameters} (although, for technical reasons,
* {@li... | 0 |
private static final long serialVersionUID = -7911901533049018823L;
* Constructs a new LoadingException with null as its error message string.
*/
public LoadingException(){
super();
}
/**
* Constructs a new LoadingException with the specified error message.
*/
public Loa... | 0 |
import org.apache.http.client.entity.DeflateDecompressingEntity;
ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(schemeRegistry);
cm.setMaxTotalConnections(clients);
final HttpClient httpClient = new DefaultHttpClient(cm); | 0 |
* @version $Revision$ | 0 |
* A successful CCC (Clear Command Channel) command causes the underlying {@link SSLSocket}
* instance to be assigned to a plain {@link Socket}
* @throws IOException If an I/O error occurs while sending the command.
* @throws SSLException if a CCC command fails | 0 |
* @since 1.0 | 0 |
* Copyright 2000-2009 The Apache Software Foundation | 0 |
RepositoryImpl repo = null;
try {
repo = new RepositoryImpl(uri);
repo.load();
repositories.put(uri, repo);
callListeners(new RepositoryEvent(repo, RepositoryEvent.EventType.RepositoryAdded, false));
features = null;
} catch (... | 0 |
import org.apache.commons.digester3.annotations.handlers.ObjectCreateHandler;
@DigesterRule( reflectsRule = ObjectCreateRule.class, handledBy = ObjectCreateHandler.class ) | 0 |
AccumuloRowInputFormat.setConnectionInfo(job, getConnectionInfo()); | 0 |
private int bound;
props.put("Bind", new Integer(bound));
bound++;
bound--; | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.