Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import static org.apache.accumulo.tserver.compaction.DefaultCompactionStrategyTest.getServerContext;
import org.apache.accumulo.tserver.InMemoryMapTest;
mcr = new MajorCompactionRequest(ke, MajorCompactionReason.NORMAL, conf,
InMemoryMapTest.getServerContext());
mcr = new MajorCompactionRequest(ke, Maj... | 0 |
clientInfo = ClientInfo.from(Accumulo.newClientProperties()
.to(getInstanceName(), getZooKeepers()).as(getAdminPrincipal(), getAdminToken()).build()); | 0 |
import java.net.URI;
getLog().info( "-Drepository-path is not set, using default repository: " + m_repositoryPath );
URI obrXml = ObrUtils.findObrXml( m_project.getResources() );
if ( null == obrXml )
getLog().info( "obr.xml is not present, use default" );
getLog().debug... | 0 |
* limitations under the License. | 0 |
* Moves <code>nde</code> to the head of the list (equivilent to
* Adds <code>nde</code> to the head of the list.
* In perl this is called an 'unpop'. <code>nde</code> should
* Adds <code>nde</code> to tail of list
* Adds <code>nde</code> to head of list | 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 |
try (AccumuloClient c = getAccumuloClient()) {
final String tableName = getUniqueNames(1)[0];
c.tableOperations().create(tableName);
final AtomicReference<Exception> ref = new AtomicReference<>();
final int THREADS = 5;
ThreadPoolExecutor tpe = new ThreadPoolExecutor(0, THREADS, 0, Tim... | 0 |
// nothing to do | 0 |
import org.apache.beam.sdk.io.FileSystems;
import org.apache.beam.sdk.io.fs.ResolveOptions.StandardResolveOptions;
return FileSystems.matchNewResource(gcpTempLocation, true /* isDirectory */)
.resolve("staging", StandardResolveOptions.RESOLVE_DIRECTORY)
.toString(); | 0 |
if (preferredVolumes == null || preferredVolumes.isEmpty()) {
if (preferredVolumes == null || preferredVolumes.isEmpty()) {
if ((preferredVolumes == null || preferredVolumes.isEmpty()) && scope != ChooserScope.DEFAULT) {
if (preferredVolumes == null || preferredVolumes.isEmpty()) { | 0 |
private static final long serialVersionUID = 1L;
private static final LoggerStatus NO_STATUS = new LoggerStatus();
@Override
protected String getTitle(HttpServletRequest req) {
return "Logger Server Status";
}
private void doDeadLoggerList(HttpServletRequest req, StringBuilder sb) {
MasterM... | 1 |
package org.apache.accumulo.master.tableOps.tableImport;
import org.apache.accumulo.master.tableOps.MasterRepo; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestListUtils.java,v 1.5 2002/10/12 22:36:22 scolebourne Exp $
* $Revision: 1.5 $
* $Date: 2002/10/12 22:36:22 $
import java.util.ArrayList;
import junit.framework.Test; | 0 |
final Storage storage = DbUtil.createFlaggedStorage(); | 0 |
import org.apache.beam.sdk.runners.AppliedPTransform;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.values.PCollection.IsBounded;
AppliedPTransform<?, ?, ?> appliedPTransform = node.toAppliedPTransform(getPipeline());
if (hasUnboundedOutput(appliedPTransform)) {
Class<? extends... | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/observed/Attic/ModificationHandler.java,v 1.5 2003/09/07 16:50:59 scolebourne Exp $
* @version $Revision: 1.5 $ $Date: 2003/09/07 16:50:59 $
* Store data and send event befor... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/bean/src/test/org/apache/commons/jelly/tags/bean/Order.java,v 1.2 2003/01/21 15:16:31 jstrachan Exp $
* $Revision: 1.2 $
* $Date: 2003/01/21 15:16:31 $
* $Id: Order.java,v 1.2 2003/01/21 15:16:31 jstrachan Exp $
... | 0 |
/* Copyright 2006 aQute SARL
* Licensed under the Apache License, Version 2.0, see http://www.apache.org/licenses/LICENSE-2.0 */
package aQute.lib.osgi;
import java.io.*;
import java.net.*;
public class URLResource implements Resource {
URL url;
String extra;
public URLResource(URL url) {
this.url = url;
}
... | 0 |
import org.apache.beam.runners.spark.SparkPipelineOptions;
private final long bundleSize;
this.bundleSize = options.get().as(SparkPipelineOptions.class).getBundleSize();
checkArgument(this.bundleSize > 0, "Bundle size must be greater than zero.");
List<? extends Source<T>> partitionedSources = s... | 0 |
* @version $Revision: 1.6 $ $Date: 2002/10/27 08:16:20 $
throw new FileSystemException( "vfs.provider.jar/jar-file-no-access.error" );
throw new FileSystemException( "vfs.provider.jar/jar-entry-no-access.error" );
return content.getInputStream();
return content.getOutputStream(); | 0 |
UnitProcessor.Context uctx,
DocumentLoader loader) {
units = getChainableAttributeNS(parent,
null,
SVG_PRIMITIVE_UNITS_ATT... | 0 |
expect(ambariMetaInfo.getKerberosDescriptor("HDP","2.5", false)).andReturn(newDescriptor).atLeastOnce();
expect(ambariMetaInfo.getKerberosDescriptor("HDP","2.4",false)).andReturn(previousDescriptor).atLeastOnce();
fields.put(fieldName, clustersField); | 0 |
import java.io.StringReader;
StringBuilder sb = new StringBuilder();
sb.append(escapedKey).append("=");
} else {
String val0 = valueLines.get(0);
if (!val0.trim().startsWith(escapedKey)) {
valueLines.set(0, escapedKey + " = " + escapeJava(val0) /*+ (0 ... | 0 |
* @see <A HREF="https://docs.oracle.com/javase/8/docs/technotes/guides/net/properties.html">JDK docs for network properties</A> | 0 |
import com.google.common.net.HostAndPort;
private static TProtocolFactory protocol;
static TProtocolFactory getRandomProtocol() throws InstantiationException, IllegalAccessException {
Class<? extends TProtocolFactory> clz = protocolFactories.get(random.nextInt(protocolFactories.size()));
return clz.newInst... | 0 |
TreeMap<String, Object> stackProperties = new TreeMap<>();
Collection<String> authToLocalRules = new ArrayList<>();
TreeMap<String, Object> stackServices = new TreeMap<>();
TreeMap<String, Object> stackClusterConfProperties = new TreeMap<>();
TreeMap<String, Object> stackClusterConf = new TreeMap<>(... | 1 |
* is used when a disconnection is attempted. If the disconnect | 0 |
if (!this.closed && this.response == null && !this.outbuf.hasData()) { | 0 |
private static final String VIEW_TABLE = "viewmain";
// view build number
dbAccessor.addColumn(VIEW_TABLE, new DBColumnInfo("build", String.class, 128, null, true)); | 0 |
AtlasType.toJson(lineageQuery), t); | 0 |
import static com.google.common.base.Preconditions.checkNotNull;
checkNotNull(fn,
"WithKeys constructed with null function. Did you mean WithKeys.of((Void) null)?");
(Class<K>) (key == null ? Void.class : key.getClass())); | 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 m... | 0 |
public String toString() {
return this.statusline + " " + this.headergroup;
}
| 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 |
* Copyright (C) 2015 Google Inc. | 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 |
final Field type = commonClass.getField("TYPE");
commonClass = (Class<?>) type.get(null); | 0 |
// ACCUMULO-3651 Changed level to error and added FATAL to message for slf4j compatibility
@Override
@Override
@Override | 0 |
import org.apache.http.annotation.NotThreadSafe;
@NotThreadSafe | 0 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
impo... | 0 |
* Basic implementation of {@link HeaderElement}
*
* @version $Revision$ | 0 |
* Bridge class for the <font> element.
* Constructs a new bridge for the <font> element.
* Constructs a new SVGGVTFont that represents the specified <font> element | 0 |
* @version $Revision: 1.3 $ $Date: 2004/05/10 20:09:49 $ | 0 |
input.getPipeline(),
WindowingStrategy.globalDefault(),
input.isBounded(),
KeyedWorkItemCoder.of(
GroupByKey.getKeyCoder(input.getCoder()),
GroupByKey.getInputValueCoder(input.getCoder()),
input.getWindowingStrategy().getWindowFn().window... | 0 |
return createRequest(new KeyExtent("0", null, null), reason, objs); | 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 ... | 0 |
@Override
@Override | 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 applic... | 0 |
import org.apache.ambari.server.api.query.render.Renderer;
import org.apache.ambari.server.controller.spi.NoSuchParentResourceException;
import org.apache.ambari.server.controller.spi.NoSuchResourceException;
import org.apache.ambari.server.controller.spi.PageRequest;
import org.apache.ambari.server.controller.spi.Pred... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//codec/src/test/org/apache/commons/codec/binary/HexTest.java,v 1.3 2003/08/18 03:01:14 bayard Exp $
* $Revision: 1.3 $
* $Date: 2003/08/18 03:01:14 $
* any, must include the following acknowledgement:
* Alternately, this ac... | 0 |
import org.apache.commons.jelly.util.ClassLoaderUtils;
* @version $Revision: 1.9 $
return ClassLoaderUtils.loadClass(className, getClass()); | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Charsets;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Joiner;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
import org... | 0 |
FileSystems.setDefaultPipelineOptions(TestPipeline.testingPipelineOptions()); | 0 |
super("OSGi Package Export");
public void setPackageName(String packageName)
if (version != null)
ISigilBundle owningBundle = getAncestor(ISigilBundle.class);
if (owningBundle == null)
public void setVersion(Version version)
public void addUse(String use)
uses... | 0 |
* Color Space that the operation should take place in (linear sRGB or
public abstract class AbstractColorInterpolationRable extends AbstractRable {
protected AbstractColorInterpolationRable() {
protected AbstractColorInterpolationRable(Filter src) {
protected AbstractColorInterpolationRable(Filter src, Map... | 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 |
String export = folder.newFolder().toString();
String import_ = folder.newFolder().toString(); | 0 |
private static final long serialVersionUID = 6993893925210913542L;
| 0 |
boolean isAtSplitPoint, @Nullable ShufflePosition groupStart) { | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
import org.apache.commons.jelly.JellyTagException;
public void doTag(XMLOutput output) throws JellyTagException { | 0 |
* @author <a href="mailto:bill.haneman@ireland.sun.com">Bill Haneman</a> | 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.http.conn.ClientConnectionManager;
* @param mgr the connection manager
public ConnPoolByRoute(ClientConnectionManager mgr) {
super(mgr); | 0 |
import org.apache.sshd.client.ClientBuilder;
import org.apache.sshd.client.SshClient;
import org.apache.sshd.client.channel.ClientChannel;
import org.apache.sshd.client.session.ClientSession;
import org.apache.sshd.common.kex.KeyExchange;
import org.apache.sshd.server.SshServer;
testClient(ClientBuilder.DH2KEX.... | 0 |
import java.util.Collection;
* Users (helper) object used to obtain privilege entities.
protected static Users users;
* @param users the users helper instance
ViewInstanceDAO viewInstanceDAO, Users users) {
GroupPrivilegeResourceProvider.users = users;
final Colle... | 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 |
protected ZipFileObject createZipFileObject( FileName name,
throw new FileSystemException( "vfs.provider.zip/open-zip-file.error", new Object[]{file}, ioe );
getLogger().warn( "vfs.provider.zip/close-zip-file.error :"+ file, e ); | 0 |
import com.google.common.collect.Iterables;
import cz.seznam.euphoria.core.client.functional.UnaryPredicate; | 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.hc.core5.reactor.IOReactorConfig;
import org.apache.hc.core5.reactor.ListenerEndpoint; | 1 |
if (!line.startsWith("UUID"))
continue;
if (!tokens[0].equals("FLUSH"))
continue;
if (tm == null)
return null;
if (ta == null)
System.out.println(undefinedNode.undef + " " + undefinedNode.ref + " " + uuid + " " + t1 + " " + t2);
else
... | 1 |
*
*
*
* @version $Revision: 1.5 $
//-------------------------------------------------------------------------
return connection;
//-------------------------------------------------------------------------
public void doTag(XMLOutput output) throws JellyTagException {
try {
if... | 1 |
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
protected BeanFactory beanFactory;
public void setProcessorData(BeanFactory beanFactory,
if ( this.beanFactory != null && this.beanFactory instanceof ConfigurableBeanFactory) {
... | 0 |
* @since 1.1
* @since 1.1 | 0 |
MASTER_STATUS_THREAD_POOL_SIZE("master.status.threadpool.size", "1", PropertyType.COUNT,
"The number of threads to use when fetching the tablet server status for balancing."), | 0 |
/*
* $HeadURL$
* $Revision$
* $Date$
*
* ====================================================================
* 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... | 0 |
import com.twitter.mesos.scheduler.base.CommandUtil; | 0 |
import org.apache.cocoon.components.expression.ExpressionContext;
import org.apache.cocoon.template.jxtg.environment.ErrorHolder;
public String toString(Locator location, ExpressionContext expressionContext)
throws SAXException {
StringBuffer buf = new StringBuffer();
Iterator iterSubst = ... | 0 |
String baseName =
String.format(
"%s/%s",
stage.getInputPCollection().getPCollection().getUniqueName(),
stage.getEnvironment().getUrl());
Set<String> usedNames =
Sets.union(topLevelTransforms.keySet(), getComponents().getTransformsMap().keySet())... | 0 |
// check for "post" requests from previous versions
if ( "true".equals(request.getParameter("post")) ) {
this.doPost(request, response);
return;
}
// let's check for a JSON request | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayFloatList.java,v 1.4 2003/10/05 20:48:58 scolebourne Exp $
* @version $Revision: 1.4 $ $Date: 2003/10/05 20:48:58 $
protected String[] ignoredTests()... | 0 |
import org.apache.accumulo.core.cli.ClientOnRequiredTable;
ClientOnRequiredTable opts = new ClientOnRequiredTable();
opts.parseArgs(this.getClass().getName(), args);
opts.setAccumuloConfigs(job);
Text table = new Text(opts.tableName);
rw.write(table, m); // repeat until done | 1 |
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 use this file except in compliance with
the License. You may obta... | 0 |
import org.apache.http.client.config.RequestConfig;
* Base implementation of {@link HttpUriRequest}.
implements HttpUriRequest, Configurable, HttpExecutionAware, AbortableHttpRequest, Cloneable {
private RequestConfig config;
public RequestConfig getConfig() {
return config;
}
public void ... | 0 |
integerValue = ((Boolean)hostStateValue).booleanValue() ? 1 : 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 may not... | 0 |
4/*invokeinterface*/, 4/*invokedynamic*/, 2/*new*/,
/** The names of the referencd_kinds of a CONSTANT_MethodHandle_info. */
public static final String[] METHODHANDLE_NAMES = {
"", "getField", "getStatic", "putField", "putStatic", "invokeVirtual",
"invokeStatic", "invokeSpecial", "newInvokeSpecial",... | 0 |
@Parameter(names = {"-s", "--source"}, description = "directory to import from")
@Parameter(names = {"-f", "--failures"}, description = "directory to copy failures into: will be deleted before the bulk import")
@Parameter(description = "<username> <password> <tablename> <sourcedir> <failuredir>")
| 0 |
} else if (args[0].equals("proxy")) {
runTMP = cl.loadClass("org.apache.accumulo.proxy.Proxy"); | 0 |
public static void putStringToFile(HdfsApi hdfs, String filePath, String content) {
synchronized (hdfs) {
stream = hdfs.create(filePath, true);
stream.writeBytes(content);
stream.close();
}
public static String findUnallocatedFileName(HdfsApi hdfs, String fullPathAndFilename, Str... | 0 |
private void checkExpectedRangeBins(int numSubBins, String[] strings, int[] rangeEnds)
throws IOException {
int part = prepPartitioner(numSubBins).findPartition(new Text(strings[i]), cutArray,
numSubBins);
int bin = bins[i], part = prepPartitioner(numSubBins).findPartition(new Text(strings... | 0 |
import org.apache.ambari.server.state.PassiveState;
private PassiveState passiveState = null;
/**
* @param state
*/
public void setPassiveState(PassiveState state) {
passiveState = state;
}
/**
* @return the passive state
*/
public PassiveState getPassiveState() {
return passiveStat... | 0 |
import java.util.List;
* A {@link Source} that reads a finite amount of input and, because of that, supports
* some additional operations.
*
* <p>The operations are:
* <ul>
* <li>Splitting into bundles of given size: {@link #splitIntoBundles};
* <li>Size estimation: {@link #getEstimatedSizeBytes};
* <li>Telling... | 0 |
*
* @param out the output stream
* @throws IOException if an error occurs while writing to the stream
*
* @param in the input stream
* @throws IOException if an error occurs while reading from the stream
* @throws ClassNotFoundException if an object read from the stream can not be l... | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/lang/RuntimePermission.java,v 1.6 2006/03/14 01:20:24 hargrave Exp $
*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not... | 0 |
List<String> builtin = NamedResource.getNameList(BuiltinCompressions.VALUES);
List<String> weavedList = new ArrayList<>(builtin.size() + unknown.size());
List<String> parsed = NamedResource.getNameList(result.getParsedFactories()); | 0 |
public class EmptyMapIterator<K, V> extends AbstractEmptyMapIterator<K, V> implements
MapIterator<K, V>, ResettableIterator<K> {
public static final MapIterator<Object, Object> INSTANCE = new EmptyMapIterator<Object, Object>();
/**
* Get a typed instance of the iterator.
* @param <K>
* @... | 0 |
expectedLogs.verifyInfo("Job finished with status DONE"); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.