Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/test/org/apache/commons/digester/DigesterTestCase.java,v 1.10 2002/03/23 17:45:59 rdonkin Exp $
* $Revision: 1.10 $
* $Date: 2002/03/23 17:45:59 $
* @version $Revision: 1.10 $ $Date: 2002/03/23 17:45:59 $
dig... | 0 |
base = EventType.fetchSuperEventTypes(reg.getEventType());
acceptedTypes = EventType.fetchSuperEventTypes(base);
|| !EventType.fetchSuperEventTypes(event.getEventType()).contains(
baseEventType)) | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAll.java,v 1.14 2003/04/13 22:08:08 rwaldhoff Exp $
* @version $Revision: 1.14 $ $Date: 2003/04/13 22:08:08 $
suite.addTest(TestAbstractFloatCollectio... | 0 |
public final void streamEnd(final List<? extends Header> trailers) throws HttpException, IOException { | 1 |
import org.w3c.dom.svg.SVGDocument;
import org.w3c.dom.svg.SVGSVGElement; | 0 |
import org.apache.accumulo.core.client.IteratorSetting;
if (!conn.tableOperations().exists(dataTable)) {
conn.tableOperations().attachIterator(dataTable, new IteratorSetting(1, ChunkCombiner.class));
} | 0 |
* @version $Revision$ | 1 |
logSet.add(log.getFileName());
if (time == null && !extent.equals(RootTable.OLD_EXTENT)) { | 0 |
@Deprecated
@Override | 0 |
return (exclusiveIdentites == null) ? DEFAULT_EXCLUSIVE_IDENTITIES : exclusiveIdentites;
exclusiveIdentites = identitiesOnly;
appendNonEmptyProperty(sb, EXCLUSIVE_IDENTITIES_CONFIG_PROP, SshConfigFileReader.yesNoValueOf(exclusiveIdentites)); | 0 |
// Note: readLoop() will log any Throwable raised so opt to ignore the future result
@SuppressWarnings("FutureReturnValueIgnored") | 0 |
for (String jar : "accumulo-core accumulo-server-base accumulo-fate accumulo-trace commons-math3 libthrift htrace-core"
.split(" ")) { | 0 |
* @version $Id$ | 0 |
Path tempFile = new Path("target/accumulo-test/import/sample.rf");
writer.startDefaultLocalityGroup(); | 0 |
import java.nio.file.Path;
/**
* Extract a view archive at the specified path
* @param path
*/
public void readViewArchive(Path path) {
File viewDir = configuration.getViewsDir();
String extractedArchivesPath = viewDir.getAbsolutePath() +
File.separator + EXTRACTED_ARCHIVES_DIR;
... | 0 |
QuorumPeerConfig.writeDynamicConfig(dynamicConfigFilename + ".next", null, false, qv, false);
QuorumPeerConfig.writeDynamicConfig(dynamicConfigFilename, configFilename,
configBackwardCompatibility, qv,
needEraseClientInfoFromSta... | 0 |
/**
* Invoked when the xblChildNodes property has changed because a
* descendant xbl:content element has updated its selected nodes.
*/
void handleContentSelectionChangedEvent(ContentSelectionChangedEvent csce); | 1 |
package org.apache.beam.integration.nexmark.model;
import org.apache.beam.integration.nexmark.NexmarkUtils;
* Result of Query6. | 0 |
package com.twitter.nexus.util;
*
FileSystem hdfs = FileSystem.get(conf);
return hdfs; | 0 |
* {@link Comparator#compare(Object,Object) compare} method.
public class TransformingComparator implements Comparator {
/** The decorated comparator. */
/** The transformer being used. */
//-----------------------------------------------------------------------
*
* @param transformer wh... | 0 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
public class UnknownAlgoSignatureTest {
assertTrue(ex.getCause() instanceof XMLSecurityException);
assertEquals("Unknown transformation. No handler installed for URI htt... | 0 |
beginMark = rc.getTextPainter().selectAt(x-location.getX(),
y-location.getY(),
endMark = rc.getTextPainter().selectTo(x-location.getX(),
y-location.getY(),
endMark = rc.getTextPainter().selectAll(x-l... | 0 |
* </p> | 0 |
* @param _msgID
public KeyResolverException(String _msgID) {
super(_msgID);
* @param _msgID
public KeyResolverException(String _msgID, Object exArgs[]) {
super(_msgID, exArgs);
* @param _msgID
public KeyResolverException(String _msgID, Exception _originalException) {
super(_msgID,... | 0 |
* @author Thomas Ledoux
String[] cmdAttrbs = new String[] {"cmd.exe", "/C", "dir /-c " + path}; | 0 |
public class ResolverDirectHTTPTest extends Assert {
Init.init(); | 0 |
expected.expect(IllegalStateException.class);
tracker.checkpoint();
}
@Test
public void testCheckpointOnlyFailedClaim() throws Exception {
OffsetRangeTracker tracker = new OffsetRangeTracker(new OffsetRange(100, 200));
assertFalse(tracker.tryClaim(250L));
expected.expect(IllegalStateException... | 0 |
package org.apache.beam.runners.apex.translation.utils; | 0 |
* @see KeyUtils#validateStrictKeyFileOwner(Path, LinkOption...)
if (KeyUtils.validateStrictKeyFilePermissions(p, options) != null) { | 0 |
import java.nio.charset.StandardCharsets;
byte[] data = (getClass().getName() + "#" + getCurrentTestName()).getBytes(StandardCharsets.UTF_8); | 0 |
static org.slf4j.Logger log =
org.slf4j.LoggerFactory.getLogger(VerifyMerlinsExamplesSixteen.class); | 1 |
* @version CVS $Id: HandlerConfiguration.java,v 1.6 2004/03/19 13:59:22 cziegeler Exp $
public void configure(Request request,
throws ProcessingException, ConfigurationException {
apphandler.configure(appconf); | 0 |
answer = new TagScript(
return new TagScript(
return new TagScript( | 0 |
* the TLS/SSL protocol. | 0 |
import org.apache.hc.client5.http.impl.classic.ClassicRequestCopier;
final ClassicHttpRequest wrapper = ClassicRequestCopier.INSTANCE.copy(req);
final ClassicHttpRequest wrapper = ClassicRequestCopier.INSTANCE.copy(request);
final ClassicHttpRequest wrapper = ClassicRequestCopier.INSTANCE.copy(r... | 0 |
.apply("Write", TextIO.Write.withoutSharding().to(options.getOutput())); | 0 |
// Create a new Zip entry with file modification time.
ZipEntry entry = new ZipEntry(name);
long lastModified = source.getLastModified();
if (lastModified != 0)
entry.setTime(lastModified);
this.zipOutput.putNextEntry(entr... | 0 |
private static final Logger LOG = LoggerFactory.getLogger(DefaultServiceCalculatedState.class); | 0 |
package cz.seznam.euphoria.core.client.operator;
import cz.seznam.euphoria.core.client.dataset.Dataset;
import java.util.List;
/**
* Operator with multiple outputs.
*/
public interface MultipleOutputs<T> {
/** Retrieve the outputs of this operator, with no explicit windowing. */
List<Dataset<T>> listOutputs()... | 0 |
checkNotNull(instance);
log.debug("Could not get ReplicationCoordinator connection to {}, will retry", instance.getInstanceName());
try {
Thread.sleep(attempts * 250);
} catch (InterruptedException e) {
throw new AccumuloException(e);
}
log.debug("No masters for replica... | 0 |
* Operator working element-wise, with no context between elements. No windowing scheme is needed to
* be defined on input.
public abstract class ElementWiseOperator<IN, OUT> extends SingleInputOperator<IN, OUT> {
protected ElementWiseOperator(
String name, Flow flow, Dataset<IN> input, Set<OutputHint> outputH... | 0 |
private ListenerEndpointImpl createEndpoint(final SocketAddress address) {
ListenerEndpointImpl request = createEndpoint(address);
ListenerEndpointImpl request = createEndpoint(address); | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
.add(new RequestExpectContinue()).build(); | 0 |
import java.util.NavigableSet;
public static <T, U> NavigableSet<U> mapSort(
public static <T> Collector<T, ?, NavigableSet<T>> toSortedSet(Comparator<T> comparator) { | 0 |
String errorText;
if (HttpURLConnection.HTTP_OK == responseCode) {
} else {
errorText = FunctionalTestUtils.readAll(cnxn.getErrorStream()); | 0 |
@Override | 0 |
(AmbariManagementController managementController) {
return (ConfigGroupResourceProvider) AbstractControllerResourceProvider.getResourceProvider( | 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 |
factory = Utils.getFactoryByName(getContext(), "LFC-Test");
under = Utils.getComponentInstance(getContext(), "LFC-Test", props);
ServiceReference ref = Utils.getServiceReferenceByName(getContext(), CheckService.class.getName(), "under");
CheckService cs = (CheckService) getContext().getS... | 0 |
public ClusterList() {
} | 0 |
public abstract static class AbstractTestCase<InT, OutT> implements TestCase<OutT> {
public final Dataset<OutT> getOutput(Flow flow, boolean bounded) {
List<InT> inputData = getInput();
DataSource<InT> dataSource = asListDataSource(inputData, bounded, parallel);
Dataset<InT> inputDataset = flow.... | 0 |
/*
* Copyright (c) OSGi Alliance (2011). All Rights Reserved.
*
* 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 |
import java.util.NoSuchElementException;
private String m_nextEntry = null;
m_nextEntry = findNextEntry();
return (m_nextEntry != null);
if (m_nextEntry == null)
{
throw new NoSuchElementException("No more elements.");
}
Str... | 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.checkState;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting; | 0 |
private final AtomicInteger windowScalingIncrement = new AtomicInteger(0);
windowScalingIncrement.addAndGet(bytesFreed);
if (capacityChannel != null) {
final int increment = windowScalingIncrement.getAndSet(0);
if (increment > 0) {
try ... | 0 |
import static org.junit.Assert.assertTrue; | 0 |
@Test | 0 |
final Timeout timeout) throws InterruptedException, ExecutionException, TimeoutException { | 0 |
@ManyToOne(cascade = CascadeType.ALL) | 0 |
dicts[i] = parseInstance(configs[i]);
private Dictionary parseInstance(Element instance) throws ParseException {
Dictionary dict = new Properties();
if(!instance.containsAttribute("name")) { throw new ParseException("An instance does not have the 'name' attribute"); }
if(!instance.co... | 0 |
* Copyright 2002-2005 The Apache Software Foundation. | 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.hc.core5.http.entity.EntityUtils; | 1 |
import org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode;
import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException;
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken;
import org.apache.accumulo.core.client.security.tokens.PasswordToken; | 0 |
* Tests whether the given character is usable as the
* first character of an XML 1.1 name.
*/
public static boolean isXML11NameFirstCharacter(char c) {
return (NAME11_FIRST_CHARACTER[c / 32] & (1 << (c % 32))) != 0;
}
/**
* Tests whether the given character is a valid XML 1.1 name char... | 0 |
import org.apache.commons.logging.Log;
import org.apache.cocoon.CascadingIOException;
import org.apache.cocoon.Constants;
import org.apache.cocoon.components.source.InspectableSource;
import org.apache.cocoon.components.source.LockableSource;
import org.apache.cocoon.components.source.VersionableSource;
import org.apa... | 0 |
* @author William Farner | 0 |
ResourceProvider provider = AbstractControllerResourceProvider.getResourceProvider(type, managementController); | 0 |
import org.apache.cocoon.portal.Constants;
this.enableFullScreen = this.portalService.getConfigurationAsBoolean(Constants.CONFIGURATION_FULL_SCREEN_ENABLED, Constants.DEFAULT_CONFIGURATION_FULL_SCREEN_ENABLED);
this.enableMaximized = this.portalService.getConfigurationAsBoolean(Constants.CONFIGURATION_M... | 0 |
* <p>{@link Empty} is an override used in {@link JdbcDriver#connect(TableProvider,
* org.apache.beam.sdk.options.PipelineOptions)} to avoid loading all available table providers.
* This is the override to create an empty schema, used in {@link JdbcDriver#connect(TableProvider
* , org.apache.beam.sdk.options.Pip... | 0 |
protected void pageBody(HttpServletRequest req, HttpServletResponse response, StringBuilder sb)
throws IOException {
scanTable.addSortableColumn("#", new PreciseNumberType(0, 20, 0, 100),
"Number of scans presently running");
scanTable.addSortableColumn("Oldest Age", new DurationType(0l, 5 ... | 0 |
c.forTrigger(c.subTrigger(REPEATED)).resetTree();
c.forTrigger(c.subTrigger(REPEATED)).resetTree();
c.forTrigger(c.subTrigger(REPEATED)).resetTree(); | 0 |
ConditionalWriter cwriter =
conn.createConditionalWriter(rTable, new ConditionalWriterConfig());
ConditionalWriter cwriter =
conn.createConditionalWriter(rTable, new ConditionalWriterConfig());
ConditionalMutation update =
new ConditionalMutation(row, new ... | 0 |
package org.apache.xml.security.stax.impl.stax;
import org.apache.xml.security.stax.ext.stax.XMLSecNamespace; | 0 |
import java.util.Collections;
import java.util.Map;
public void writeTo(final OutputStream out, int mode) throws IOException {
byte[] tmp = new byte[4096];
int l;
while ((l = this.in.read(tmp)) != -1) {
out.write(tmp, 0, l);
}
out.flush();
... | 0 |
* @version $Id$ | 0 |
* This <code>Test</code> implementation can be used to validate the
* known error conditions and check that the input <code>Test</code>
* and a given error code is returned by a <code>Test</code>.
* A <code>TestReportValidator</code> is built with the <code>Test</code> to
* error code. The <code>TestReportValidato... | 0 |
* @version $Revision$, $Date$ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestAll.java,v 1.12 2003/09/14 03:30:23 psteitz Exp $
* @version $Revision: 1.12 $ $Date: 2003/09/14 03:30:23 $
suite.addTest(TestLazyMap.suite());
... | 0 |
* @version $Id$ | 0 |
package org.apache.ambari.view.huetoambarimigration.resources.scripts.models;
public class PigModel { | 0 |
import java.security.interfaces.ECPublicKey;
import java.security.spec.ECParameterSpec;
import org.apache.sshd.common.signature.SignatureECDSA;
if (kp.getFirst().getPublic() instanceof DSAPublicKey) {
verif = new SignatureDSA();
} else if (kp.getFirst().getPublic() instanceof ECP... | 0 |
import org.apache.commons.lang.StringUtils;
* @version CVS $Id: DatabaseSelectAction.java,v 1.3 2004/03/30 05:50:48 antonio Exp $
if (StringUtils.isEmpty((String)value)) {
if (result) {
}
if (value != null) {
}
if (... | 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.ImmutableMap; | 0 |
package cz.seznam.euphoria.beam;
import cz.seznam.euphoria.core.client.dataset.windowing.Window;
import cz.seznam.euphoria.core.client.operator.Join;
import org.apache.beam.sdk.values.KV;
import org.apache.beam.sdk.values.PCollection;
public class JoinTranslator implements OperatorTranslator<Join> {
@Override
@S... | 0 |
// TODO add a test with a single file being imported to a single tablet... saw some bus with this
// in manual testing
| 0 |
* @version CVS $Id: JavaArchiveFilter.java,v 1.1 2004/07/12 12:47:29 antonio Exp $
* @deprecated To be removed in Cocoon 2.3 | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
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.Iterables; | 0 |
import org.apache.cocoon.components.elementprocessor.NoOpElementProcessor;
private final Stack openElements;
private final ElementProcessor noOpElementProcessor;
private OutputStream outputStream;
private Locator locator;
this.noOpElementProcessor = new NoOpElementProcessor();
... | 0 |
@SuppressWarnings("unchecked")
@SuppressWarnings("unchecked") | 0 |
/*******************************************************************************
* Copyright (C) 2014 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.... | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkNotNull;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
import org.apache.beam.vendor.guava.v20_0.c... | 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 |
ambariContext.createAmbariResources(isA(ClusterTopology.class), eq(CLUSTER_NAME), (SecurityType) isNull(), eq("1"), anyLong()); | 0 |
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
HttpURLConnection connection = null;
connection = connectUrl.startsWith("https") ?
connection.setRequestProperty("Connection", "Keep-Alive");
cleanupInputStream(connection.getInputStream());
} catch (I... | 0 |
* <p>Also, if the {@link DoFn} observes the window of the element, then {@link SimpleDoFnRunner}
* explodes windows of the input {@link WindowedValue} and calls {@link DoFn.ProcessElement} for
* each window individually.
*
public <SideOutputT> void sideOutputWindowedValue(
TupleTag<SideOutputT> ... | 0 |
configGroupHostMappingByHost = new HashMap<>();
setByHost = new HashSet<>();
Set<ConfigGroupHostMapping> set = new HashSet<>(configGroupHostMappingByHost.get(hostId));
Set<ConfigGroupHostMapping> result = new HashSet<>();
Set<ConfigGroupHostMapping> setByHost = new HashSet<>(it... | 1 |
tmpMap.put(_Fields.MSG, new org.apache.thrift.meta_data.FieldMetaData("msg", org.apache.thrift.TFieldRequirementType.DEFAULT,
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
} else { | 0 |
* header values.
* <p/> | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.