Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
AccumuloOutputFormat.setOutputInfo(job.getConfiguration(), args[0], args[1].getBytes(), true, args[5]);
AccumuloOutputFormat.setZooKeeperInstance(job.getConfiguration(), args[3], args[4]); | 0 |
* Copyright 2005-2011 The Apache Software Foundation.
private final List<XMLStructure> content;
public DOMSignatureProperty(List<XMLStructure> content, String target,
String id)
{
List<XMLStructure> contentCopy =
new ArrayList<XMLStructure>(conten... | 0 |
super(org.apache.commons.bcel6.Const.BREAKPOINT, (short) 1); | 0 |
@SuppressWarnings("unused") | 0 |
Copyright 2001,2003 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 l... | 0 |
* Copyright 2002-2005 The Apache Software Foundation. | 0 |
waitFor(80000, new Predicate() { | 0 |
* @version $Revision$ | 0 |
List<Predicate> predicateList = new LinkedList<>(); | 1 |
public class Class2HTML {
String str = constant_pool.getConstantString(index, Constants.CONSTANT_Class); | 0 |
private static final GarbageCollectorStatus EMPTY = new GarbageCollectorStatus();
public static GarbageCollectorStatus getEmpty() {
return EMPTY;
} | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Collections2;
import org.apache.beam.ve... | 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... | 0 |
import org.apache.beam.runners.core.construction.graph.PipelineNode.PTransformNode;
void handleEmpty(PTransformNode transform); | 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.*;
synchronized ( this.events )
this.events.add(event);
if ( events.size() > this.maxSize )
{
events.remove(1);
}
List copiedEvents;
synchronized ( this.events )
copie... | 0 |
* Copyright 2001-2006 The Apache Software Foundation | 0 |
* <p> or: | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/TagSupport.java,v 1.27 2003/10/09 21:21:27 rdonkin Exp $
* $Revision: 1.27 $
* $Date: 2003/10/09 21:21:27 $
* any, must include the following acknowledgement:
* Alternately, this ack... | 0 |
import org.bouncycastle.asn1.x509.Extension;
certGen.addExtension(Extension.subjectKeyIdentifier, false, extensionUtils.createSubjectKeyIdentifier(kp.getPublic()));
certGen.addExtension(Extension.basicConstraints, false, new BasicConstraints(isCertAuthority));
certGen.addExtension(Extension.authorityKeyIden... | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
import org.apache.accumulo.core.security.thrift.ThriftInstanceTokenWrapper;
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper;
private InstanceTokenWrapper credentials;
public void init(FileSystem fs, Instance instance, InstanceTokenWrapper credentials, boolean noTrash) throws IOException {
pub... | 0 |
static Enumeration convertToLocalUrls(Enumeration urls) {
return new ToLocalUrlEnumeration(urls);
}
static URL convertToLocalUrl(URL url) {
if (url.getProtocol().equals("bundle"))
{
try
{
url = ((URLHandlersBundleURLConnection)
... | 0 |
import org.apache.beam.model.pipeline.v1.MetricsApi.MonitoringInfo; | 0 |
StreamingApplication app = (dag, conf) -> dag.setAttribute(DAGContext.APPLICATION_NAME, "DummyApp"); | 0 |
pranges.add(new PRange(null, false, stop, false));
String cookie = tpc.proxy().createScanner(userpass, testtable, null, null, new PRange(null, false, stop, false)); | 0 |
package org.apache.batik.ext.awt.image.renderable;
public class AffineRable8Bit extends AbstractRable
public AffineRable8Bit(Filter src, AffineTransform affine) { | 0 |
* values, each of which is of the form {@code key=value}. These | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(SlaModule.class);
LOG.debug("Scheduled SLA calculation with {} msec interval.", interval); | 0 |
import org.apache.beam.sdk.schemas.Schema.TypeName;
TypeName type = field.getType().getTypeName();
|| (rawObj instanceof BigDecimal && type != TypeName.DECIMAL)) { | 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 ma... | 0 |
import org.apache.accumulo.server.ServerUtil; | 0 |
/**
* Construct a LessEqualsPredicate.
*
* @param propertyId the property id
* @param value the value
*
* @throws IllegalArgumentException if the given value is null
*/
if (value == null) {
throw new IllegalArgumentException("Value can't be null.");
} | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
* Copyright 2001-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 |
* @param hdfsApi hdfs api
public FilePaginator(String filePath, HdfsApi hdfsApi) {
this.hdfsApi = hdfsApi; | 0 |
* This class is immutable and thread-safe.
* | 0 |
import org.apache.hc.core5.http.impl.ConnectionListener; | 0 |
if (Charset.forName(csName).canEncode() && ! "COMPOUND_TEXT".equalsIgnoreCase(csName) && ! "x-COMPOUND_TEXT".equalsIgnoreCase(csName)) { | 0 |
final List<FileInfo> queueExpected = new ArrayList<FileInfo>();
final List<FileObject> queueActual = new ArrayList<FileObject>();
final FileObject file = queueActual.remove(0);
final FileInfo info = queueExpected.remove(0);
final FileInfo childInfo = info.children... | 0 |
Response response2 = fileBrowserService.download().browse("/tmp/testUpload.tmp", false, false, httpHeaders, uriInfo); | 0 |
assertNotNull(bean); // just to prevent compiler warning on unused var | 0 |
"The %s service is currently installed on the cluster. " +
"This service is removed from the new release and must be removed before the upgrade can continue.")
.put(ServicePresenceCheck.KEY_SERVICE_REPLACED,
"After upgrading, %s can be installed as the replacement.").build(... | 0 |
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
| 0 |
/*
package org.apache.felix.bundlerepository;
public interface Property
String VERSION = "version";
String URL = "url";
String URI = "uri";
String LONG = "long";
String DOUBLE = "double";
String SET = "set";
String getName();
String getType();
String getValue();
Object getConv... | 0 |
return resourceProviderFactory.getUserResourceProvider(managementController);
case UserAuthenticationSource:
return resourceProviderFactory.getUserAuthenticationSourceResourceProvider(); | 0 |
* Whether this source should allow dynamic splitting of the offset ranges.
*
* <p>True by default. Override this to return false if the source cannot
* support dynamic splitting correctly. If this returns false,
* {@link OffsetBasedSource.OffsetBasedReader#splitAtFraction} will refuse all split requests.... | 0 |
import static org.apache.aurora.gen.CronCollisionPolicy.KILL_EXISTING;
.setCronCollisionPolicy(KILL_EXISTING) | 0 |
import java.util.Set;
import com.twitter.mesos.gen.TwitterTaskInfo;
import com.twitter.mesos.gen.storage.TaskUpdateConfiguration; | 0 |
if ( ( children != null ) && ( children.length > 0 ) )
for ( int i = 0; result && ( i < children.length ); ++i )
if ( children[i] instanceof SimpleNode )
result = ( (SimpleNode) children[i] ).isConstant( context );
throw new RuntimeException( "unknown oper... | 0 |
public RequestStatus deleteResources(Request request, Predicate predicate) | 0 |
package org.apache.accumulo.monitor.rest.api.tserver;
import org.apache.accumulo.monitor.rest.api.table.CompactionsList;
import org.apache.accumulo.monitor.rest.api.table.CompactionsTypes;
import org.apache.accumulo.monitor.rest.api.trace.RecoveryStatusInformation;
/**
*
* Generates tserver information
*
* @since 2... | 0 |
kerberosHelper.deleteIdentities(cluster, singletonList(new Component(HOST, OOZIE, OOZIE_SERVER, -1l)), newHashSet("/OOZIE/OOZIE_SERVER/oozie_server1", "/OOZIE/OOZIE_SERVER/oozie_server2"));
kerberosHelper.deleteIdentities(cluster, singletonList(new Component(HOST, OOZIE, OOZIE_SERVER, -1l)), newHashSet("/OOZIE/... | 0 |
ElementByteSizeObserver observer) throws Exception {
InstantCoder.of().registerByteSizeObserver(value.getTimestamp(), observer);
windowsCoder.registerByteSizeObserver(value.getWindows(), observer);
PaneInfoCoder.INSTANCE.registerByteSizeObserver(value.getPane()... | 0 |
import org.apache.beam.examples.complete.TfIdf;
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.coders.StringDelegateCoder;
import org.apache.beam.sdk.io.TextIO;
import org.apache.beam.sdk.transforms.Create;
import org.apache.beam.sdk.transforms.Keys;
import org.apache.beam.sdk.transforms.RemoveDuplicat... | 0 |
public CliCommand parse(String[] cmdArgs) throws CliParseException {
try {
cl = parser.parse(options, cmdArgs);
} catch (ParseException ex) {
throw new CliParseException(ex);
}
throw new CliParseException(getUsageStr());
public boolean exec() throws Cl... | 0 |
public RsaKeyValueSecurityToken(RSAKeyValueType rsaKeyValueType, SecurityContext securityContext,
super(securityContext, null, keyIdentifierType); | 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 LogicalRequest getRequest(long requestId) { | 0 |
/** Utility class to contain implementations of SQL integer type conversions. */ | 0 |
return Arrays.equals(c.iterators, iterators); | 0 |
import org.apache.hc.core5.http2.impl.Http2Processors; | 0 |
@Override
@Override
@Override | 0 |
import org.apache.accumulo.core.util.RootTable;
String zRootLocPath = ZooUtil.getRoot(this) + RootTable.ZROOT_TABLET_LOCATION; | 0 |
* @version $Revision: 1.6 $ $Date: 2004/04/09 09:43:09 $
protected static final Predicate truePredicate = PredicateUtils.truePredicate();
protected static final Predicate testPredicate = new Predicate() {
public boolean evaluate(Object o) {
return (o instanceof String);
}
};
... | 0 |
expected.getHost() + Character.toString(HostPatternsHolder.WILDCARD_PATTERN),
getClass().getSimpleName() + Character.toString(HostPatternsHolder.WILDCARD_PATTERN), | 0 |
import org.apache.cocoon.ajax.AjaxHelper;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.portal.PortalManager;
import org.apache.cocoon.xml.AttributesImpl;
// if ajax is used and the current request is not an ajax request, we just send some javascript stuff back
if ( co... | 0 |
private int count;
private HashMap<Long,QuorumServer> peers;
private ArrayList<FLERestartThread> restartThreads;
private File tmpdir[];
private int port[];
private Semaphore finish;
long leader;
| 0 |
loadFromDefaultIfNotDefined(defaultProperties, Constants.FRAMEWORK_SYSTEMPACKAGES);
| 0 |
super(Resource.Type.OperatingSystem, propertyIds, keyPropertyIds, managementController); | 0 |
if (locator == null)
{
throw new ConfigurationException("Load operation not properly "
+ "initialized! Do not call read(InputStream) directly,"
+ " but use a FileHandler to load a configuration.");
}
| 0 |
.maxWait(walFailureRetryMax, TimeUnit.MILLISECONDS).backOffFactor(1.5)
.logInterval(3, TimeUnit.MINUTES).createFactory();
.maxWait(walFailureRetryMax, TimeUnit.MILLISECONDS).backOffFactor(1.5)
.logInterval(3, TimeUnit.MINUTES).createFactory(); | 0 |
Utils.checkTableDoesNotExist(instance, tableInfo.tableName, tableInfo.tableId,
TableOperation.CREATE);
TableManager.getInstance().addTable(tableInfo.tableId, tableInfo.namespaceId,
tableInfo.tableName, NodeExistsPolicy.OVERWRITE); | 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 |
public static void main(String[] args) | 0 |
if (!file.delete()) {
throw new FileUploadException(
"Cannot write uploaded file to disk!");
} | 0 |
return new EnumElementValue(super.getElementValueType(), typeIdx, valueIdx,
getConstantPool().getConstantPool());
ConstantUtf8 cu8 = (ConstantUtf8) getConstantPool().getConstant(valueIdx);
return ((ConstantUtf8) getConstantPool().getConstant(typeIdx))
return ((ConstantUtf... | 0 |
import com.google.common.base.Optional;
import org.apache.ambari.view.commons.hdfs.ViewPropertyHelper;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;
public static final String VIEW_CONF_KEYVALUES = "view.conf.keyvalues";
Optional<Map<String, String>> props = ViewPropertyH... | 0 |
public void addUpdated(String internalGuid, AtlasEntity entity, AtlasEntityType type, AtlasVertex atlasVertex) {
if (!StringUtils.equals(internalGuid, entity.getGuid())) {
guidAssignments.put(internalGuid, entity.getGuid());
entityVsVertex.put(internalGuid, atlasVertex);
} | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/Attic/DynamicPointer.java,v 1.1 2002/04/21 21:52:33 dmitri Exp $
* $Revision: 1.1 $
* $Date: 2002/04/21 21:52:33 $
package org.apache.commons.jxpath.ri.model.beans;
import o... | 0 |
package org.apache.hc.core5.http.io.entity; | 1 |
import org.apache.http.mockup.SimpleHttpRequestHandlerResolver;
import org.apache.http.mockup.TestHttpSSLClient;
import org.apache.http.mockup.TestHttpSSLServer; | 0 |
import static java.nio.charset.StandardCharsets.UTF_8;
byte[] rowBytes = "row".getBytes(UTF_8);
byte[] familyBytes = "family".getBytes(UTF_8);
byte[] qualifierBytes = "qualifier".getBytes(UTF_8);
byte[] visibilityBytes = "visibility".getBytes(UTF_8); | 0 |
rep = ui.interactive(dest, name, instruction, language_tag, prompt, echo); | 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 |
import org.apache.aurora.scheduler.events.PubsubEvent.SchedulerActive;
* Notifies the cron job manager that the scheduler is active, and job configurations are ready to
* @param schedulerActive Event.
public void schedulerActive(SchedulerActive schedulerActive) { | 0 |
log.debug("Removing WAL from candidate deletion as it is still needed for replication: {}", fullPath); | 0 |
import org.apache.commons.jexl.parser.ParseException;
//java.util.logging.Logger.getLogger(JexlEngine.class.getName()).setLevel(java.util.logging.Level.SEVERE);
// JEXL-90: ';' is necessary between expressions
public void test90() throws Exception {
JexlContext ctxt = JexlHelper.createContext()... | 0 |
* Primitive bounds
*/
protected Rectangle2D primitiveBounds;
/**
if(primitiveBounds == null){
if(shapePainter == null)
return null;
primitiveBounds = shapePainter.getPaintedArea(shape).getBounds2D();
}
return primitiveBounds;
| 0 |
* Bridge class for the <missing-glyph> element. | 0 |
"dataflow.gcr.io/v1beta3/beam-java-batch:beam-master-20161024";
"dataflow.gcr.io/v1beta3/beam-java-streaming:beam-master-20161024"; | 0 |
* <b><i>For internal use only; no backwards-compatibility guarantees.</i></b>
*
* <p>Defines reflection-based utilities for analyzing {@link org.apache.beam.sdk.transforms.DoFn}'s
| 0 |
private static final int INITIAL_CACHE_CAPACITY = (int) (MAX_CACHE_ENTRIES / 0.75);
private static final HashMap<String, ConstantUtf8> CACHE = new LinkedHashMap<String, ConstantUtf8>(
INITIAL_CACHE_CAPACITY, 0.75f, true) {
return size() > MAX_CACHE_ENTRIES;
p... | 0 |
* Copyright 2001-2005 The Apache Software Foundation | 0 |
context.setParent(parentContext); | 0 |
copy.cloneInterpolator(this); | 0 |
package org.apache.beam.examples;
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.io.TextIO;
import org.apache.beam.sdk.options.DataflowPipelineOptions;
import org.apache.beam.sdk.options.PipelineOptionsFactory;
import org.apache.beam.sdk.runners.BlockingDataflowPipelineRunner;
import org.apache.beam.sd... | 0 |
private long count;
* <p>
* <strong>WARNING</strong> This method will return an
* incorrect count for files over 2GB - use
* <code>getByteCount()</code> instead.
*
* @deprecated use <code>getByteCount()</code> - see issue IO-84
return (int)getByteCount();
* <p>
* <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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/axes/NamespaceContext.java,v 1.4 2002/04/24 04:05:39 dmitri Exp $
* $Revision: 1.4 $
* $Date: 2002/04/24 04:05:39 $
import org.apache.commons.jxpath.ri.QName;
import org.apache.commons.... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.