Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.dsls.sql.schema.BeamSqlRowCoder;
import org.apache.beam.sdk.values.PCollectionTuple;
public PCollection<BeamSQLRow> buildBeamPipeline(PCollectionTuple inputPCollections)
PCollection<BeamSQLRow> upstream =
BeamSQLRelUtils.getBeamRelInput(input).buildBeamPipeline(inputPCollections);
... | 0 |
@Override
public SideEffect apply(Action action) { | 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 |
@Override | 0 |
Class<?> sharedClass = DummyClass.class;
Class<?> componentClass = componentLoader.reload(sharedClass); | 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 |
/**
* Default {@link FrameFactory} implementation.
*
* @since 5.0
*/ | 0 |
import java.util.concurrent.atomic.AtomicBoolean;
private final AtomicBoolean isShutDown;
super();
this.configData = new ConfigData();
this.pool = new CPool(new InternalConnectionFactory(
this.configData, connFactory), 2, 20, timeToLive, tunit);
this.connectionOperato... | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(MetricsConfiguration.class); | 0 |
package org.apache.accumulo.server.master.balancer;
import java.util.List;
import java.util.Map;
public interface LoggerBalancer {
/**
* Assign loggers to tablet servers
*
* @param current
* The loggers assigned to each tablet server
* @param loggers
* The list of current loggers
... | 1 |
import org.apache.beam.runners.direct.DirectRunner.CommittedBundle;
import org.apache.beam.runners.direct.DirectRunner.PCollectionViewWriter;
import org.apache.beam.runners.direct.DirectRunner.UncommittedBundle;
* {@link DirectRunner}. Contains state shared within the execution across all
* {@link DirectRunner} that ... | 0 |
void addDependencies(Project project, Set<String> dependencies); | 0 |
* @param type compression type
* @param level compression level | 0 |
import static java.nio.charset.StandardCharsets.UTF_8;
log.error("Got unexpected value for " + key + " expected : " + new String(expectedValue, UTF_8) + " got : " + new String(value.get(), UTF_8)); | 0 |
// X509Certificate
byte[] certBytes =
XMLSecurityUtils.getQNameType(
x509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName(),
XMLSecurityConstants.TAG_dsig_X509Certificate
);
if (certBytes != null) {
X509Certificate cert ... | 0 |
throw new ClassGenException("Match and target array have not the same length: Match length: " + match.length + " Target length: " + targets.length); | 0 |
private void populateActionDB(ActionDBAccessor db, String DummyHostname1) throws AmbariException { | 1 |
final int reqNo = 20;
if (secretNumber >= 2) {
final byte[] b = new byte[2048];
for (int i = 0; i < b.length; i++) {
b[i] = (byte) ('a' + r);
}
final ByteArrayEntity requestEntity = new ByteArrayEntity(b, Co... | 0 |
IteratorSetting slowIter =
new IteratorSetting(50, "slowIter", "org.apache.accumulo.test.functional.SlowIterator"); | 0 |
import static java.util.Objects.requireNonNull;
requireNonNull(p); | 0 |
org.apache.accumulo.core.client.impl.Table.ID tableId = org.apache.accumulo.core.client.impl.Table.ID
.of(conn.tableOperations().tableIdMap().get(tablename)); | 1 |
_output_.write(username.getBytes(getCharsetName())); // Java 1.6 can use getCharset()
_output_.write(password.getBytes(getCharsetName())); // Java 1.6 can use getCharset()
_output_.write(command.getBytes(getCharsetName())); // Java 1.6 can use getCharset() | 0 |
import org.apache.http.pool.ConnFactory;
/**
* @since 4.2
*/
public BasicConnPool(final ConnFactory<HttpHost, HttpClientConnection> connFactory) {
super(connFactory, 2, 20);
super(new BasicConnFactory(params), 2, 20); | 0 |
import org.apache.beam.sdk.values.PCollection;
protected PCollection<Integer> getOutput(PCollection<Integer> input) {
PCollection<Integer> withEventTime =
protected PCollection<Integer> getOutput(PCollection<Integer> input) {
PCollection<Integer> withEventTime =
P... | 0 |
import java.util.Properties;
import org.apache.accumulo.core.security.handler.Authenticator;
@Override
public Authenticator getAuthenticator() throws AccumuloException {
String authenticatorName = getAuthenticatorClassName();
try {
Class<?> clazz = Class.forName(authenticatorName);
Class<? ex... | 0 |
ret = mapVertexToArray(entityVertex, entityExtInfo, isOwnedAttribute, attribute);
ret = getPrimitiveMap(entityVertex, propertyName);
private List<Object> mapVertexToArray(AtlasVertex entityVertex, AtlasEntityExtInfo entityExtInfo,
List<Object> arrayElements = getArrayElement... | 1 |
import org.apache.http.client.methods.HttpRequestWrapper; | 0 |
import org.apache.bcel.generic.InstructionHandle; | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Joiner; | 0 |
String tableName = getTableNames(1)[0];
| 0 |
return SshBuilder.client().build(); | 0 |
import java.util.List;
List createHandlerTasks(final Event event); | 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 |
suite.addTest(new TestSuite(DirectoryWalkerTestCase.class)); | 0 |
public static class DatastoreReader extends BoundedSource.BoundedReader<Entity> { | 0 |
import cz.seznam.euphoria.core.client.dataset.windowing.WindowedElement;
public class DataSinkWrapper<T>
implements OutputFormat<WindowedElement<?, ?, T>>
{
public void writeRecord(WindowedElement<?, ?, T> record) throws IOException {
writer.write(record.get()); | 0 |
try (AccumuloClient client = Accumulo.newClient().from(getClientProps()).build()) {
try (AccumuloClient client = Accumulo.newClient().from(getClientProps()).build()) {
try (AccumuloClient client = Accumulo.newClient().from(getClientProps()).build()) { | 0 |
} catch (final IOException ex) {
} catch (final Exception ex) {
} catch (final Exception ex) {
} catch (final Exception ex) { | 0 |
public static final String CODEC_98_NPE
= "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWjAxMjM";
public static final String CODEC_98_NPE_DECODED
= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123";
return streamToBytes(in, new byte[7]);
}
stat... | 0 |
* <pre> <byte value="3"/>
* <boolean value="false"/>
* <char value="c"/>
* <double value="3.14159"/>
* <float value="3.14"/>
* <int value="17"/>
* <long value="1700000"/>
* <short value="1"/>
* <int value="26"/>
* <int value="100"/></pre>
* @version... | 0 |
public class EncodingTest {
byte[] data = Encoding.serializeServiceInstance(
endpoint, additionalEndpoints, status, Encoding.JSON_CODEC);
ServiceInstance instance = Encoding.deserializeServiceInstance(data, Encoding.JSON_CODEC); | 0 |
InputT, OutputT, RestrictionT, TrackerT extends RestrictionTracker<RestrictionT>>
KeyedWorkItem<String, ElementAndRestriction<InputT, RestrictionT>>, OutputT> {
DoFn<KeyedWorkItem<String, ElementAndRestriction<InputT, RestrictionT>>, OutputT> doFn,
TupleTag<OutputT> mainOutputTag,
new Ou... | 0 |
Map getExportedPackages() | 0 |
Map transformedInstructions = new HashMap();
Map.Entry e = (Map.Entry)i.next();
String key = (String)e.getKey();
key = "-"+key.substring(1);
String value = (String)e.getValue();
if (null == value) {
value = "";
}
transformedInstructions.put(key, value);
return transformedInstr... | 0 |
ExtensionLink,
Extension,
ExtensionVersion,
public static final Type ExtensionLink = InternalType.ExtensionLink.getType();
public static final Type Extension = InternalType.Extension.getType();
public static final Type ExtensionVersion = InternalType.ExtensionVersion.getType(); | 0 |
List<ResolverType> POJO = Collections.unmodifiableList(Arrays.asList(
List<ResolverType> MAP = Collections.unmodifiableList(Arrays.asList(
* Gets the strategy to apply for resolving properties.
* <p>Default behavior is to use POJO if db is true, MAP if db is false.
* @param db access operator fla... | 0 |
import java.util.function.Function;
static <T extends AbstractId> T getNextId(String name, Instance instance, Function<String,T> newIdFunction) throws AcceptableThriftTableOperationException {
byte[] nid = zoo.mutate(ntp, ZERO_BYTE, ZooUtil.PUBLIC, currentValue -> {
BigInteger nextId = new BigInteger(ne... | 1 |
if ((!Util.isFragment(br) && br.getWiring() != null)
|| !allCandidates.populate(state, br, false))
// TODO: OSGi R4.3 - Could this be merged back into Candidates?
for (Iterator<BundleRevision> it = revisions.iterator(); it.hasNext(); )
{
... | 0 |
Map<String, List<TimelineMetricMetadata>> getTimelineMetricMetadata(String query) throws SQLException, IOException; | 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.sshd.common.util.buffer.Buffer; | 0 |
HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
"Problem in creating the Environment", null, null, e,
this.servletSettings, getLogger(), this);
EnvironmentHelper.checkEnvironment(environment... | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger log = LoggerFactory.getLogger(HostRoleCommand.class);
return (hostName.toString() + role.toString() + roleCommand.toString())
.hashCode(); | 0 |
*
*
public abstract class AbstractDatabaseAction extends AbstractComplementaryConfigurableAction
implements Disposable {
/*
* Initialize the map of type names to jdbc column types.
* Note that INTEGER, BLOB, and VARCHAR column types map to more t... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastHashMap.java,v 1.3 2001/04/21 12:22:30 craigmcc Exp $
* $Revision: 1.3 $
* $Date: 2001/04/21 12:22:30 $
import java.util.HashMap;
* @version $Id: TestFastHashMap.java,v ... | 0 |
private synchronized void ensureVersionDefinitions() { | 0 |
public class ASTChainTest
extends TestCase
{
public void test_Get_Indexed_Value()
throws Exception
{
OgnlContext context = (OgnlContext) Ognl.createDefaultContext( null );
assertEquals( 1, Ognl.getValue( expr, context, root ) );
Ognl.setValue( expr, context, root, new Integer... | 0 |
/*
* Copyright 2000-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 |
/*
* 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 |
package org.apache.commons.digester3.plugins; | 1 |
Assert.assertTrue(!outFile1.exists() || outFile1.delete());
Assert.assertTrue(!outFile2.exists() || outFile2.delete());
WordCountTest.main(TestPipeline.convertToArgs(options));
Assert.assertTrue("result files exist", outFile1.exists() && outFile2.exists()); | 0 |
* @version $Id: TestPropertiesConfiguration.java,v 1.15 2004/10/18 21:38:45 epugh Exp $ | 0 |
TreeSet<String> tableNames = new TreeSet<>(Tables.getNameToIdMap(context.getInstance()).keySet());
addSplits(env.tableName, new TreeSet<>(splits), env.tableId);
addSplits(env.tableName, new TreeSet<>(splits.subList(mid, mid + 1)), env.tableId);
List<Text> splits = new ArrayList<>(partitionKeys... | 1 |
public boolean deleteJob(String owner, String jobName) {
return false; | 0 |
ServerContext context = new ServerContext(new SiteConfiguration()); | 0 |
charset = HTTP.DEF_PROTOCOL_CHARSET.name();
charset = HTTP.DEF_CONTENT_CHARSET.name(); | 0 |
package org.apache.accumulo.examples.wikisearch.ingest;
import org.apache.accumulo.examples.wikisearch.ingest.WikipediaConfiguration;
import org.apache.accumulo.examples.wikisearch.ingest.WikipediaMapper;
import org.apache.accumulo.examples.wikisearch.reader.AggregatingRecordReader; | 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 |
void setInstanceId(String value);
@Default.String("")
void setBigtableProject(String value); | 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 |
default void fill(byte[] bytes) {
fill(bytes, 0, bytes.length);
} | 0 |
import org.apache.ambari.logsearch.web.filters.LogsearchEventHistoryStateFilter;
private SolrEventHistoryPropsConfig solrEventHistoryPropsConfig;
@Named("solrEventHistoryState")
private SolrCollectionState solrEventHistoryState;
.addFilterAfter(logsearchEventHistoryFilter(), LogsearchSecurityContextFormatio... | 0 |
import org.apache.cocoon.portal.util.XMLUtils;
import org.xml.sax.helpers.AttributesImpl;
XMLUtils.addCDATAAttribute(a, "type", "text/javascript");
XMLUtils.startElement(handler, "script", a);
XMLUtils.data(handler, buffer.toString());
XMLUtils.endElement(handler, "script... | 0 |
@Deprecated
@Deprecated | 1 |
import javax.xml.bind.annotation.XmlAttribute;
/**
* The information about a server running on a node, which is included in
* Node.
*/
@XmlType
@XmlAttribute(required = true)
@XmlAttribute(required = true)
@XmlAttribute(required = true) | 0 |
import java.io.StringWriter;
import java.util.Stack;
* @version CVS $Id: ExtensiblePatternFormatter.java,v 1.3 2003/08/04 03:31:37 joerg Exp $
new DefaultErrorHandler().error("Unknown Pattern specification." + run.m_type, null, null); | 0 |
/**
* The enclosed <tt>ShapePainter</tt>s of this composite shape painter.
*/
/**
* The number of shape painter.
*/
if (shape == null) {
* Adds the specified shape painter to the shape painter..
*
if (this.shape != shapePainter.getShape()) {
* Paints the spe... | 0 |
* @deprecated (4.4) Use {@link org.apache.http.impl.cookie.RFC2109SpecProvider}.
*
@Deprecated | 0 |
* @deprecated since 1.4, replaced by {@link org.apache.accumulo.core.iterators.user.MaxCombiner} with
* {@link org.apache.accumulo.core.iterators.LongCombiner.Type#STRING} | 0 |
status = CalculatedStatus.COMPLETED; | 0 |
providers.put(Type.StackArtifact, new TestStackArtifactResourceProvider());
}
private static class TestStackArtifactResourceProvider extends TestResourceProvider {
private TestStackArtifactResourceProvider() {
super(StackArtifactResourceProvider.propertyIds, StackArtifactResourceProvider.keyPropert... | 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 |
ret.setProperty(Constants.TYPESERVICETYPE_PROPERTY_KEY, typeDef.getServiceType());
if (StringUtils.isNotEmpty(typeDef.getServiceType())) {
updateVertexProperty(vertex, Constants.TYPESERVICETYPE_PROPERTY_KEY, typeDef.getServiceType());
}
String serviceType = vertex.getPropert... | 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 |
double scale = 0; // default is 0
scale = SVGUtilities.convertSVGNumber(ATTR_SCALE, scaleStr); | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Maps; | 0 |
org.w3c.dom.Document doc = XMLUtils.read(new FileInputStream(f), false);
org.w3c.dom.Document doc = XMLUtils.read(new FileInputStream(f), false); | 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
... | 0 |
split.setTable("table");
Assert.assertEquals(split.getTable(), newSplit.getTable()); | 0 |
schema.entrySet().stream() | 0 |
package org.apache.beam.sdk.extensions.euphoria.executor.local;
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.Dataset;
import org.apache.beam.sdk.extensions.euphoria.core.client.operator.Operator;
import org.apache.beam.sdk.extensions.euphoria.core.executor.graph.DAG;
import org.apache.beam.sdk.ex... | 0 |
private ConfigRecommendationStrategy configRecommendationStrategy;
private Map<String, AdvisedConfiguration> advisedConfigurations = new HashMap<String, AdvisedConfiguration>();
public void setConfigRecommendationStrategy(ConfigRecommendationStrategy strategy) {
this.configRecommendationStrategy = strategy;
... | 0 |
/*
* Copyright (C) 2015 Google Inc.
*
* 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 ... | 0 |
env.getConnector().tableOperations().compact(docTableName, null, null, documentFilters, true,
true);
env.getConnector().tableOperations().compact(indexTableName, null, null, indexFilters, true,
true);
log.debug(
"Filtered documents using compaction iterators " + regex + " " + (t3) + ... | 0 |
try {
BlockCallStack.enterBlock(BlockContext.this);
BlockContext.this.servlet.service(request, response);
} finally {
BlockCallStack.leaveBlock();
} | 0 |
if (!dr.intersects(r)) continue;
r = dr.intersection(r);
// System.err.println("Copy: " + r);
// System.err.println("Render: " + r); | 0 |
public class CorrectedObjectNullHandler
extends Object
implements NullHandler
private String defaultValue;
/*
* =================================================================== Constructors
* ===================================================================
*/
public CorrectedObj... | 0 |
args.transportFactory(new TFramedTransport.Factory((int) maxFrameSize)); | 0 |
import javax.persistence.FetchType;
@Table(name = "repo_definition")
pkColumnValue = "repo_definition_id_seq"
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "repo_os_id", nullable = false)
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.