Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
/**
* @deprecated since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
*/
@Deprecated | 0 |
import javax.annotation.Nullable;
GcsOptions gcsOptions = PipelineOptionsFactory.as(GcsOptions.class);
items.add(StorageObjectOrIOException.create(
createStorageObject("gs://testbucket/testdirectory/dir2name/", 0L /* fileSize */)));
GcsPath.fromUri("gs://testbucket/testdirectory/dir2name/"),
... | 0 |
private static void validateListFilesParameters(File directory, IOFileFilter fileFilter) {
if (!directory.isDirectory()) {
throw new IllegalArgumentException("Parameter 'directory' is not a directory");
}
if (fileFilter == null) {
throw new NullPointerException("Param... | 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 |
// Expect failure:
// Expect failure: | 0 |
* $Revision: 1.1 $
* $Date: 2003/04/25 08:34:56 $
* @version CVS $Id: AbstractXMLFormAction.java,v 1.1 2003/04/25 08:34:56 stephan Exp $ | 0 |
import org.apache.sshd.common.keyprovider.KeyPairProvider; | 0 |
log.debug("Not queueing work for {} because {} doesn't need replication", file, TextFormat.shortDebugString(status)); | 0 |
import org.apache.sshd.client.ClientAuthenticationManager;
authFactories = session.getUserAuthFactories();
String prefs = PropertyResolverUtils.getString(session, ClientAuthenticationManager.PREFERRED_AUTHS);
if (log.isDebugEnabled()) {
log.debug("ClientUserAu... | 0 |
package com.twitter.nexus;
import com.google.common.base.Preconditions;
import com.google.inject.Inject;
import com.twitter.nexus.gen.TwitterTaskInfo;
import nexus.Executor;
import nexus.ExecutorDriver;
import nexus.TaskDescription;
import nexus.TaskState;
import nexus.TaskStatus;
import org.apache.thrift.TDeserialize... | 0 |
final ObjectOutputStream outStream = new ObjectOutputStream(outbuffer);
outStream.writeObject(orig);
outStream.close();
final ByteArrayInputStream inBuffer = new ByteArrayInputStream(raw);
final ObjectInputStream inStream = new ObjectInputStream(inBuffer);
final Host clon... | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
result.getOutputBundles(), Matchers.containsInAnyOrder(bundle)); | 0 |
@Override | 0 |
"ssh", "|", "awk", "'{print \\$2}'", "|", "head", "-1", "|", "tr", "-d", "'\\n'"}; | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.io.ByteSource;
import org.apache.beam.vendor.guava.v20_0.com.google.common.io.CharSource;
import org.apache.beam.vendor.guava.v20_0.com.google.common.io.Files; | 0 |
/** {@link org.apache.commons.logging} logging facility */
static org.apache.commons.logging.Log log =
org.apache.commons.logging.LogFactory.getLog(
CreateNullURIReference.class.getName()); | 0 |
public abstract class XMLParser2 implements XMLParser
| 0 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
import org.apache.hc.core5.function.Supplier;
@Contract(threading = ThreadingBehavior.IMMUTABLE_CONDITIONAL) | 0 |
import org.apache.hadoop.fs.Path;
final Path outputFilePath = outputFile.path();
final String outputFilePathName = outputFilePath.toString();
FileSystem ns = this.fs.getVolumeByPath(outputFilePath).getFileSystem();
mfw = fileFactory.openWriter(outputFilePathName, ns, ns.getConf(), acuTableConf);
... | 0 |
List<Range> ranges = null;
if (ranges == null || ranges.size() == 0) {
throw new IllegalArgumentException("ranges must be non null and contain at least 1 range");
}
this.ranges = new ArrayList<Range>(ranges);
if (ranges == null) {
throw new IllegalStateException("ranges not set");
... | 0 |
Table.ID tableId = Tables.getTableId(context, opts.tableName); | 0 |
@Deprecated | 0 |
private LicensePolicy defaultPolicy = new LicensePolicy(this);
public void addLicense(String name, Pattern pattern)
licenses.put(name, pattern);
public void removeLicense(String name)
licenses.remove(name);
return Collections.unmodifiableSet(licenses.keySet());
public Pattern get... | 0 |
*
*
*
*
... | 0 |
public void onMerge(TimeInterval window, TriggerContext.TriggerMergeContext ctx) {
trigger.onMerge(window, ctx);
public void onMerge(TimeInterval window, TriggerContext.TriggerMergeContext ctx) {
super.onMerge(window, ctx); | 0 |
@ServiceDependency(filter="(name=ServiceDependencyPropagateTest)") | 0 |
@Deprecated | 0 |
Notaries.setIdAttributeNS(null, "Id", true); | 0 |
@Mock StepContext mockStepContext;
ThrowingDoFn.TIMER_ID, GlobalWindow.INSTANCE, new Instant(0), TimeDomain.EVENT_TIME);
* Tests that {@link SimpleDoFnRunner#onTimer} properly dispatches to the underlying {@link DoFn}.
* plus the value of {@link DoFn#getAllowedTimestampSkew()} throws, but between that v... | 1 |
import org.apache.hc.client5.http.async.methods.SimpleHttpResponse;
public void testResponseHasContentLength() throws Exception {
final SimpleHttpResponse response = impl.generateResponse(request, entry1);
public void testContentLengthIsNotAddedWhenTransferEncodingIsPresent() throws Exception {
... | 0 |
* Interface to obtain connection pool statistics.
* @since 4.2
public interface ConnPoolStats<T> {
PoolStats getTotalStats();
PoolStats getStats(final T route); | 0 |
list1 = new ArrayList<>();
final ArrayList<E> list = new ArrayList<>();
return new ListIteratorWrapper<>(list.listIterator());
return new ListIteratorWrapper<>(list1.listIterator()); | 1 |
/**
* Constructor Canonicalizer20010315WithXPathOmitComments
*
*/
public Canonicalizer20010315OmitComments() {
super(false);
}
/** @inheritDoc */
public final String engineGetURI() {
return Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS;
}
/** @inheritDoc */
pu... | 0 |
TriggerByBuilder(JoinBuilderParams<LeftT, RightT, K, OutputT, W> params) {
AccumulatorModeBuilder(JoinBuilderParams<LeftT, RightT, K, OutputT, W> params) {
params.accumulationMode = Objects.requireNonNull(accumulationMode); | 0 |
protected final byte[] ENCODING_TABLE = {
for (int i = 0; i < ENCODING_TABLE.length; i++) {
decodingTable[ENCODING_TABLE[i]] = (byte)i; | 0 |
sshd.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory())); | 0 |
import cz.seznam.euphoria.core.client.operator.state.StorageProvider;
final StorageProvider storageProvider;
StorageProvider storageProvider,
state = (State) stateFactory.apply(collector, storageProvider);
StorageProvider storageProvider, | 0 |
import org.apache.cocoon.portal.profile.ProfileManagerAspectContext;
/**
* Process a freshly loaded profile.
*/
protected void processProfile(Profile profile) {
// FIXME we should add the calls to prepareObject here as well
if ( this.chain.hasAspects() ) {
ProfileManagerAs... | 0 |
import java.util.Locale;
String method = request.getRequestLine().getMethod().toUpperCase(Locale.ENGLISH); | 0 |
import org.apache.accumulo.trace.instrument.TraceRunnable;
import org.apache.accumulo.trace.instrument.Tracer;
private Authorizations authorizations = Authorizations.EMPTY;
ResultReceiver receiver, List<Column> columns, TCredentials credentials, ScannerOptions options, Authorizations authorizations,
Accum... | 0 |
import com.google.common.base.Optional;
import com.twitter.mesos.gen.MaintenanceMode;
public void saveHostAttributes(final HostAttributes attrs) {
// Pass the updated attributes upstream, and then check if the stored value changes.
// We do this since different parts of the system write partial HostAt... | 0 |
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
throw new UnsupportedOperationExce... | 0 |
* @param hiveConf hive conf
* @param databaseName database Name
* @param dbName database name
//todo replace gremlin with DSL
String datasetType = MetadataServiceClient.DATA_SET_SUPER_TYPE;
datasetType, tableName.toLowerCase(), tableType, dbType, dbName.toLowerCase(), dbT... | 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 |
assertEquals("Buffer get", "three", buffer.get());
assertEquals("Buffer get", "one", buffer.remove()); | 0 |
import org.apache.accumulo.core.iterators.user.IntersectingIterator; | 0 |
final Configuration other = new BaseConfiguration(); | 0 |
public class BundleAllPluginTest extends AbstractBundlePluginTest
protected void setUp() throws Exception
public void testNoReBundling() throws Exception
String[] packages = new String[]
{ "org.apache.maven.model.io.jdom", "org.apache.maven.model" };
exports.containsKey... | 0 |
session.setAttribute(NHTTP_CONN, conn); | 0 |
import org.apache.accumulo.core.client.impl.Credentials; | 1 |
public LocalVariableGen clone() {
return (LocalVariableGen) super.clone();
throw new Error("Clone Not Supported"); // never happens | 0 |
import org.apache.http.params.CoreConnectionPNames;
int buffersize = params.getIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, -1); | 0 |
import cz.seznam.euphoria.core.client.operator.state.StateContext;
(StateContext context, Collector<Pair<VALUE, SCORE>> collector) -> {
return new MaxScored<>(context.getStorageProvider());
}, stateCombiner); | 0 |
Rectangle2D objectBoundingBox = paintedNode.getGeometryBounds(); | 0 |
public void testGroupNameWithSpaces() {
FTPFile f = getParser().parseFTPEntry("drwx------ 4 maxm Domain Users 512 Oct 2 10:59 .metadata");
assertNotNull(f);
assertEquals("maxm", f.getUser());
assertEquals("Domain Users", f.getGroup());
} | 0 |
public static AccumuloConfiguration convertClientConfig(final ClientConfiguration config) {
Iterator<String> keyIter = config.getKeys(); | 0 |
import org.apache.ambari.server.agent.ExecutionCommand.KeyNames;
if(actionExecutionContext.getParameters() != null && actionExecutionContext.getParameters().containsKey(KeyNames.REFRESH_ADITIONAL_COMPONENT_TAGS)){
execCmd.setForceRefreshConfigTags(parseAndValidateComponentsMapping(actionExecutionCo... | 0 |
serverSession = ValidateUtils.checkInstanceOf(s, ServerSession.class, "Server side service used on client side: %s", s); | 0 |
package org.apache.felix.karaf.deployer.spring; | 0 |
public void translate(FlinkRunner flinkRunner, Pipeline pipeline) {
translator = new FlinkStreamingPipelineTranslator(flinkRunner, flinkStreamEnv, options); | 0 |
private static final long serialVersionUID = -5789642544511401813L;
final UPnPDevice device = (UPnPDevice) tracker.getService(ref);
if (null == device)
{
return null; // the device is dynamically removed
}
final Object[] refs = tracker.getServiceReferences();
... | 0 |
import org.apache.cocoon.util.NetUtils;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
// Resolve base URI
Source src = null;
Map parameters = Collections.EMPTY_MAP;
src = this.resolver.resolveURI(base);
// Deparameterize base URL before a... | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
/*
* (non-Javadoc)
*
* @see org.apache.ambari.logfeeder.input.Input#isReady()
*/
/*
* (non-Javadoc)
*
* @see org.apache.ambari.logfeeder.input.Input#monitor()
*/
// Just process the first file
// Call the close for the input. Which should flush to the filters and
// output
... | 0 |
componentActivator.getLogger().log(LogService.LOG_ERROR,
" is not the same as the Configuration Admin API visible to the SCR implementation.", ex); | 0 |
beanDef.getPropertyValues().addPropertyValue("location", this.getConfigurationLocation());
protected String getConfigurationLocation() { | 0 |
* @version CVS $Id: JSPGenerator.java,v 1.2 2004/01/30 01:01:23 joerg Exp $
throw new ProcessingException("ServletException while executing JSPEngine", e);
throw new ProcessingException("SAXException while parsing JSPEngine output", e); | 0 |
return String.format("gcr.io/cloud-dataflow/v1beta3/IMAGE:%s", containerVersion); | 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 |
/**
* 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbutils/src/java/org/apache/commons/dbutils/QueryLoader.java,v 1.2 2004/01/11 22:30:38 dgraham Exp $
* $Revision: 1.2 $
* $Date: 2004/01/11 22:30:38 $
* Copyright (c) 2003-2004 The Apache Software Foundation. All rights | 0 |
protected transient DoublyIndexedTable liveAttributeValues =
new DoublyIndexedTable(); | 0 |
import org.apache.atlas.model.instance.AtlasRelatedObjectId;
public static AtlasEntityDef createClassTypeDef(String name, String description, String version, Set<String> superTypes, Map<String, String> options, AtlasAttributeDef... attrDefs) {
return new AtlasEntityDef(name, description, version, Arrays.asL... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java,v 1.10 2002/04/25 16:47:07 jstrachan Exp $
* $Revision: 1.10 $
* $Date: 2002/04/25 16:47:07 $
* $Id: XMLParser.java,v 1.10 2002/04/25 16:47:07 jstrachan Exp $
* @vers... | 0 |
import static org.junit.jupiter.api.Assertions.assertNotSame;
import static org.junit.jupiter.api.Assertions.assertSame;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Asse... | 0 |
import org.apache.http.HttpHeaders;
if (!request.containsHeader(HttpHeaders.USER_AGENT)) {
request.addHeader(HttpHeaders.USER_AGENT, this.userAgent); | 0 |
public void init(Service s) {
DependencyManager dm = s.getDependencyManager(); | 0 |
import org.apache.accumulo.test.functional.ConfigurableMacBase;
public class LargeSplitRowIT extends ConfigurableMacBase { | 0 |
import org.apache.accumulo.hadoop.mapreduce.InputFormatBuilder;
import org.apache.accumulo.hadoopImpl.mapreduce.InputFormatBuilderImpl;
* @see org.apache.accumulo.hadoop.mapreduce.AccumuloInputFormat
/**
* Sets all the information required for this map reduce job.
*/
public static InputFormatBuilder.ClientPa... | 0 |
package org.apache.accumulo.server.test.randomwalk.concurrent;
import java.util.List;
import java.util.Properties;
import java.util.Random;
import org.apache.accumulo.core.client.Connector;
import org.apache.accumulo.core.client.TableNotFoundException;
import org.apache.accumulo.server.test.randomwalk.State;
import o... | 1 |
import org.apache.ambari.server.AmbariException;
import org.apache.ambari.server.events.AlertDefinitionsMessageEmitter;
import org.apache.ambari.server.events.AlertDefinitionsUpdateEvent;
import org.apache.ambari.server.events.DefaultMessageEmitter;
private DefaultMessageEmitter defaultMessageEmitter;
@Autowired
... | 0 |
* unexpected closing of an FTP connection resulting from a | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
LoggerFactory.getLogger(ObserverTest.class); | 0 |
if (!nextObjectSet && !setNextObject()) {
throw new NoSuchElementException();
if (!previousObjectSet && !setPreviousObject()) {
throw new NoSuchElementException(); | 0 |
assertEquals(4, entity.getUpgradeGroups().size());
assertEquals(4, resources.size()); | 0 |
// get all of the cluster alerts for AMBARI/AMBARI_SERVER
// disabled or new alerts may not have anything mapped yet
ScheduledFuture<?> scheduledFuture = null;
if (null != scheduledAlert) {
scheduledFuture = scheduledAlert.getScheduledFuture();
}
if (null != sc... | 0 |
* Contains the {@link PipelineRunnerRegistrar} and {@link PipelineOptionsRegistrar} for the {@link
* GearpumpRunner}.
* <p>{@link AutoService} will register Gearpump's implementations of the {@link PipelineRunner} and
* {@link PipelineOptions} as available pipeline runner services.
private GearpumpRunnerRegistrar... | 1 |
* Copyright 2006-2016 The Apache Software Foundation
import java.util.List;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePoli... | 0 |
public void stop(BundleContext context) { | 0 |
* @version CVS $Id: CopletStatusEvent.java,v 1.2 2003/05/20 14:32:37 cziegeler Exp $
return ((CopletStatusEvent)event).getCopletInstanceData().getId().equals( this.coplet.getId() ); | 0 |
import org.apache.ambari.server.state.Config;
import org.apache.ambari.server.state.ConfigImpl;
Cluster cluster = clusters.getCluster(clusterName);
Service s1 = cluster.getService(serviceName);
Map<String, Config> configs = new HashMap<String, Config>();
Map<String, String> properties = new HashMap<Str... | 1 |
* @author <a href="mailto:deweese@apache.org">Thomas DeWeese</a> | 0 |
* the Credential, containing principal and Authentication Token | 0 |
import org.apache.ambari.controller.Cluster;
import org.apache.ambari.controller.Clusters;
private ClusterFSM clusterFsm;
private Cluster cluster;
this.clusterFsm = cluster;
this.cluster =
Clusters.getInstance().getClusterByID(cluster.getClusterID());
this.plugin = this.cluster.getComponentDefi... | 0 |
import java.util.Properties;
* <p>
* This class is <b>not</b> guaranteed to be thread-safe!
* </p>
this(getAction, changeAction, new Properties()); | 0 |
* <p>
* </p>
* {@link AsyncInPendingWrapper} in this test serves as a handler for
* {@link WritePendingException}, which can occur when sending too many messages one after another. | 0 |
LOG.error("Error in transaction ", e);
if (entityManager.getTransaction().isActive()) {
entityManager.getTransaction().rollback();
} | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestIntArrayList.java,v 1.9 2003/08/31 17:28:40 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this acknowledgement ma... | 0 |
coder = getPCollection().getCoder(); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.