Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import java.util.List;
public void testCachedTransport() throws InterruptedException {
ClientContext context = getClientContext();
ZooCache zc = new ZooCacheFactory().getZooCache(context.getZooKeepers(),
context.getZooKeepersSessionTimeOut());
final String zkRoot = ZooUtil.getRoot(context.getInsta... | 0 |
package org.apache.hc.core5.http.nio.reactor; | 0 |
import org.apache.accumulo.server.security.SystemCredentials;
Credentials creds = SystemCredentials.get();
conn = inst.getConnector(creds.getPrincipal(), creds.getToken()); | 0 |
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import org.apache.commons.net.ftp.parser.UnixFTPEntryParser;
public void testUnparseableFiles() throws Exception {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
baos.write("-rwxr-xr-x 2 root root 40... | 0 |
componentMetrics.put("metrics/api/cluster/summary/tasks.total", new Metric("/api/cluster/summary##tasks.total", false, false, false, "unitless"));
componentMetrics.put("metrics/api/cluster/summary/slots.total", new Metric("/api/cluster/summary##slots.total", false, false, false, "unitless"));
componentMetri... | 0 |
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.ImmutableMap; | 0 |
List<Long> taskIds = new ArrayList<>(); | 1 |
import org.apache.http.util.Args;
Args.positive(selectTimeout, "Select timeout");
Args.notNull(channelEntry, "Channel entry"); | 0 |
import com.google.common.base.Objects;
@Override
public Object structuralValue(SellerPrice v) {
return v;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SellerPrice that... | 0 |
public interface TabletServerUpdateMetricsMBean extends TabletServerUpdateMetricsKeys {
| 1 |
import org.apache.hc.core5.http.ContentLengthStrategy; | 0 |
private static final BigDecimalEncoder BDE = new BigDecimalEncoder(); | 0 |
* @version $Id$ | 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 may not u... | 0 |
import org.apache.hc.client5.http.AuthenticationStrategy; | 0 |
* @version CVS $Id: CommandLineRequest.java,v 1.6 2003/12/21 22:48:56 upayavira Exp $
} else if (value == null) {
return null; | 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 final class ImageWriterRegistry { | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting; | 0 |
tlsSession.startTls(sslContext, host, sslBufferManagement, initializer, verifier); | 0 |
@SuppressWarnings("unchecked")
RDDHolder<T> rddHolder = (RDDHolder<T>) pcollections.get(pcollection); | 0 |
private static final Collection<ByteSequence> EMPTY_COL_FAMS = new ArrayList<>();
TreeMap<Key,Value> tm = new TreeMap<>();
TreeMap<Key,Value> tmOut = new TreeMap<>();
TreeMap<Key,Value> tmOut = new TreeMap<>();
TreeMap<Key,Value> tm = new TreeMap<>();
TreeMap<Key,Value> tm = new TreeMap<>();
... | 1 |
package org.apache.beam.runners.core.fn; | 0 |
abstract ValueProvider<String> getStatement();
abstract Builder<T> setStatement(ValueProvider<String> statement);
return toBuilder().setStatement(ValueProvider.StaticValueProvider.of(statement)).build();
}
public Write<T> withStatement(ValueProvider<String> statement) {
preparedStatemen... | 0 |
import org.junit.rules.ExpectedException;
@Rule
public ExpectedException exception = ExpectedException.none();
@Test
public void testMissingTable() throws Exception {
Properties clientProps = org.apache.accumulo.hadoop.mapreduce.AccumuloInputFormatTest
.setupClientProperties();
exception.expect(... | 0 |
* @param context the context used to lookup all installed bundles. | 0 |
package org.apache.http; | 0 |
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.ClassicHttpResponse;
protected boolean canResponseHaveBody(final ClassicHttpRequest request,
final ClassicHttpResponse response) {
public ClassicHttpResponse execute(
final C... | 0 |
* {@link Result#SUCCEEDED succeeding}, or failing with {@link Result#FAILED_TERMINATED}. | 0 |
import org.apache.beam.sdk.values.Row;
public PCollection<Row> buildBeamPipeline(PCollectionTuple inputPCollections
PCollection<Row> upstream =
PCollection<Row> projectStream = upstream.apply(stageName, ParDo
projectStream.setCoder(CalciteUtils.toBeamRowType(getRowType()).getRowCoder()); | 0 |
MetaDataStateStore theRest = null;
if (m.onlineTabletServers().size() != 0)
theRest = new MetaDataStateStore();
| 0 |
* Copyright (C) 2015 Google Inc. | 0 |
* of parameters in the specified encoding.
*
* @param parameters iterable collection of name/value pairs
* @param encoding encoding the name/value pairs be encoded with
* @throws UnsupportedEncodingException if the encoding isn't supported
*
* @since 4.2
*/
public UrlEncoded... | 0 |
import org.apache.accumulo.core.clientImpl.AuthenticationTokenIdentifier; | 0 |
package org.apache.atlas.web.resources;
import org.apache.atlas.web.util.Servlets;
.path("api/atlas/admin/version");
new PropertiesConfiguration("atlas-buildinfo.properties"); | 0 |
import static org.mockito.Mockito.doAnswer;
import org.apache.ambari.server.api.services.stackadvisor.StackAdvisorRequestException;
doThrow(new StackAdvisorRequestException("error")).when(saRunner)
.runScript(any(String.class), any(StackAdvisorCommandType.class), any(File.class));
doThrow(new StackAdvis... | 0 |
static final String GUID_INDEX = "guid_index";
static final String ENTITY_TYPE_INDEX = "type_index";
/**
* search backing index name.
*/
/**
* search backing index name for vertex keys.
*/
static final String VERTEX_INDEX = "vertex_index";
/**
* search backing index ... | 0 |
* @deprecated this method returns an inaccurate result
* if the class or interface referenced cannot
* be found: use referencesClassExact() instead
* @deprecated this method returns an inaccurate result
* if the class or interface referenced cannot
* be found: use referencesInterfaceExact() in... | 0 |
import org.apache.beam.sdk.state.TimeDomain; | 0 |
private static final String properties[] = {
"http.basic.username", "http.basic.password"
* @inheritDoc
URI uriNewNoFrag =
| 1 |
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
* @version $Revision: 1.14 $ $Date: 2004/04/07 23:17:25 $
extends AbstractMapDecorator
implements OrderedMap, Serializable {
/** Serialization version */
private static... | 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... | 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 |
* 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 |
import org.apache.accumulo.core.client.impl.Table;
public static Table.ID toTableId(ByteBuffer bytes) {
return new Table.ID(toString(bytes));
}
| 1 |
import org.apache.atlas.TestModules;
import static org.testng.Assert.*;
@Guice(modules = TestModules.TestOnlyModule.class) | 0 |
* $Id: BugsTest.java,v 1.9 2002/10/19 21:18:26 jkeyes Exp $
public void test13666() {
Options options = new Options();
Option dir = OptionBuilder.withDescription( "dir" )
.hasArg()
.create( 'd' );
options.addOpti... | 0 |
.withState(delegateResult.getState()) | 0 |
DocumentLoader loader = bridgeContext.getDocumentLoader();
uctx,
loader); | 0 |
private static final long serialVersionUID = -1639872615816850272L;
| 0 |
import java.io.File;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
* The system property "accumulo.configuration" can be used to specify the location of the XML configuration file on the classpath or filesystem if the path is
* prefixed with 'file... | 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.felix.sigil.ui.eclipse.ui.editors.project;
import org.apache.felix.sigil.model.ModelElementFactory;
import org.apache.felix.sigil.model.common.VersionRange;
import org.apache.felix.sigil.model.osgi.IPackageImport; | 0 |
public AbstractMonitorTestCase(final String name) {
final IOFileFilter files = FileFilterUtils.fileFileFilter();
final IOFileFilter javaSuffix = FileFilterUtils.suffixFileFilter(".java");
final IOFileFilter fileFilter = FileFilterUtils.and(files, javaSuffix);
final IOFileFilter direc... | 1 |
final String user = shellState.getAccumuloClient().whoami();
final Authorizations auths = shellState.getAccumuloClient().securityOperations()
final Scanner scanner = shellState.getAccumuloClient().createScanner(tableName, auths); | 0 |
private final long hostRequestId;
this.hostRequestId = -1;
public HostOfferResponse(Answer answer, long hostRequestId, String hostGroupName, List<TopologyTask> tasks) {
this.hostRequestId = hostRequestId;
public long getHostRequestId() {
return hostRequestId;
}
| 0 |
Volume logsearchClassesVolume = new Volume("/root/ambari/ambari-logsearch/ambari-logsearch-server/target/package/classes");
Volume logsearchWebappVolume = new Volume("/root/ambari/ambari-logsearch/ambari-logsearch-server/target/package/classes/webapps/app");
Volume logsearchWebappLibsVolume = new Volu... | 0 |
public boolean isTagLibraryRegistered(String namespaceURI) {
return taglibs.containsKey( namespaceURI );
}
Object answer = null;
if ( getInherit()
&&
getParent() != null ) {
answer = getParent().getTagLibrary( namespaceURI );
}
i... | 0 |
public void testValidate() { | 0 |
public void buildService(MetaData srvMeta, List<MetaData> depsMeta, Bundle b, DependencyManager dm)
throws Exception
Class<?> impl = b.loadClass(srvMeta.getString(Params.impl));
String factoryPid = srvMeta.getString(Params.factoryPid);
String updated = srvMeta.getString(Params.updat... | 0 |
/**
* 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 agreed to in writing, software
* distribu... | 0 |
import org.apache.ambari.server.state.Host;
public synchronized HostOfferResponse offer(Host host) {
private void setHostOnTasks(Host host) {
public boolean matchesHost(Host host) {
public HostResourceAdapter(Host host) {
private void buildPropertyMap(Host host) { | 0 |
@Override
public String toString() {
return delegate.toString();
}
| 0 |
import org.apache.ambari.server.configuration.AmbariServerConfiguration;
import org.apache.ambari.server.security.encryption.Encryptor;
import com.google.inject.TypeLiteral;
import com.google.inject.name.Names;
bind(new TypeLiteral<Encryptor<AmbariServerConfiguration>>() {}).annotatedWith(Names.named("AmbariSer... | 0 |
package org.apache.batik.refimpl.gvt;
import org.apache.batik.gvt.GraphicsNode; | 0 |
properties.put(ViewInstanceResourceProvider.VIEW_NAME, "MyView");
properties.put(ViewInstanceResourceProvider.VERSION, "1.9");
properties.put(ViewInstanceResourceProvider.INSTANCE_NAME, "MyViewInstance");
properties.put(ViewInstanceResourceProvider.LABEL, "MyViewLabel");
properties.put(ViewInstanceR... | 0 |
package org.apache.cocoon.portal.util;
* @version CVS $Id: ParameterFieldHandler.java,v 1.1 2003/05/26 14:29:52 cziegeler Exp $ | 0 |
// If the BouncyCastle provider is not installed, then try to load it
InputStream sourceDocument =
InputStream sourceDocument =
InputStream sourceDocument =
InputStream sourceDocument =
InputStream sourceDocument =
... | 1 |
import org.apache.hc.core5.annotation.Internal;
* I/O event handler for events fired by {@link ProtocolIOSession} that implements
* client side HTTP/2 messaging protocol with full support for
* multiplexed message transmission.
@Internal | 0 |
import org.apache.accumulo.core.clientImpl.AcceptableThriftTableOperationException;
import org.apache.accumulo.core.clientImpl.BulkSerialize;
import org.apache.accumulo.core.clientImpl.thrift.TableOperation;
import org.apache.accumulo.core.clientImpl.thrift.TableOperationExceptionType; | 0 |
import org.apache.accumulo.core.security.thrift.ThriftSecurityException; | 0 |
* <p>When run using the {@code DirectRunner}, your pipeline can read and write text files
org.apache.beam.sdk.io.Write.Bound<T> write =
org.apache.beam.sdk.io.Write.to(
new TextSink<>(filenamePrefix, filenameSuffix, shardTemplate, coder));
if (getNumShards() > 0) {
... | 0 |
// If the BouncyCastle provider is not installed, then try to load it
| 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/test/org/apache/commons/jelly/test/xml/TestXMLParserCache.java,v 1.5 2003/01/24 02:22:59 morgand Exp $
* $Revision: 1.5 $
* $Date: 2003/01/24 02:22:59 $
* $Id: TestXMLParserCache.java,v 1.5 2003/01/24 02:22:59 morgand E... | 0 |
import static org.apache.beam.sdk.util.StringUtils.approximateSimpleName;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableL... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributePointer.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.dom;
import org.ap... | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
"regex to" + " select summaries. Matches against class name and options used to"
+ " generate summaries."); | 0 |
package org.apache.beam.sdk.util.state;
import org.apache.beam.sdk.coders.CannotProvideCoderException;
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.coders.CoderRegistry;
import org.apache.beam.sdk.transforms.Combine.CombineFn;
import org.apache.beam.sdk.transforms.Combine.KeyedCombineFn;
import o... | 0 |
public void consumeInformation(final HttpResponse response) throws HttpException, IOException {
}
@Override | 0 |
state.set(name + userExists, Boolean.toString(false)); | 0 |
return new Long(l.longValue() * r.longValue()); | 0 |
.put("label", "Transform Function")
.put("label", "Transform Function") | 0 |
* Use %40 for @ in URLs | 0 |
*/
*/
return '#' + getValue(); | 0 |
import org.apache.accumulo.server.cli.ClientOpts;
@Parameter(names = "-master", description = "remove master locks")
@Parameter(names = "-tservers", description = "remove tablet server locks")
@Parameter(names = "-tracers", description = "remove tracer locks")
@Parameter(names = "-verbose", descripti... | 0 |
JwtAuthenticationProperties jwtProperties = jwtAuthenticationPropertiesProvider.get(); | 0 |
* @version $Revision$ | 1 |
/**
* The list of view entities.
*/
@OneToMany(cascade = CascadeType.ALL, mappedBy = "viewInstance")
private Collection<ViewEntityEntity> entities = new HashSet<ViewEntityEntity>();
* Get the view entities.
*
* @return the view entities
*/
public Collection<ViewEntityEntity> getEntities() {
... | 0 |
import java.util.Map;
public Map<TupleTag<?>, PValue> expand() {
return Collections.emptyMap(); | 0 |
public MapBackedSet2Test(final String testName) {
final Set<E> set = makeObject();
final Set<E> set = setupSet(); | 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 |
*
* @since 4.1 | 0 |
private static final long serialVersionUID = -6128609553204409153L;
| 0 |
log.debug("Received SSH_MSG_CHANNEL_CLOSE on channel {}", this);
protected Closeable getInnerCloseable() { | 0 |
import org.apache.beam.dsls.sql.schema.BeamSqlRow;
* all the input tables and results in a {@code PCollection<BeamSqlRow>} representing the output
* {@code PCollection<BeamSqlRow>}, each representing an input table.
public static PTransform<PCollectionTuple, PCollection<BeamSqlRow>> query(String sqlQuery) {
p... | 0 |
public PackageFilter(String[] packageNames)
for (String name : packageNames)
names.add(name);
public PackageFilter(IPackageExport[] packages)
for (IPackageExport packageExport : packages)
names.add(packageExport.getPackageName());
public boolean select(IPackageImport ... | 0 |
import org.apache.ambari.view.hive.client.*;
private JobResourceManager resourceManager;
private UserLocalConnection connectionLocal = new UserLocalConnection();
* Set password and connect to Hive
*/
@POST
@Path("auth")
@Consumes(MediaType.APPLICATION_JSON)
public Response setupPassword(AuthRequest r... | 0 |
p.getSchemaRegistry()
.registerSchemaForClass(
String.class,
STRING_SCHEMA,
s -> Row.withSchema(STRING_SCHEMA).addValue(s).build(),
r -> r.getString("field"));
PCollection<String> out =
p.apply(
Create.of("a", "b", "c", "d")
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.