Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
List<CheckQualification> qualifications = Lists.newArrayList( | 0 |
ALWAYS_APPLY(true, true),
NEVER_APPLY(false, false),
ONLY_STACK_DEFAULTS_APPLY(true, false),
ALWAYS_APPLY_DONT_OVERRIDE_CUSTOM_VALUES(true, false);
public static ConfigRecommendationStrategy defaultForAddService() {
return ALWAYS_APPLY_DONT_OVERRIDE_CUSTOM_VALUES;
}
private final boolean useStackA... | 0 |
* $HeadURL:https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/impl/nio/TestBuffers.java $
* $Revision:503277 $
* $Date:2007-02-03 18:22:45 +0000 (Sat, 03 Feb 2007) $
package org.apache.http.nio.util;
import org.apache.http.nio.util.InputBuffer;
import org.... | 0 |
package org.apache.felix.sigil.common.repository; | 0 |
* @since 4.2 | 0 |
* @version CVS $Id: PortletEnvironment.java,v 1.3 2004/05/01 00:05:44 joerg Exp $
* In portlet environment this is the same as {@link #redirect(boolean, String)} | 0 |
FILE, EXTERNAL_AUTH, SIMPLE | 0 |
@Override | 0 |
void verify(HttpRequest request, EntityDetails entityDetails, ExpectationChannel expectationChannel) throws HttpException, IOException;
| 0 |
import org.apache.cocoon.components.RequestLifecycleComponent;
* @version CVS $Id: AuthenticationManager.java,v 1.2 2003/03/19 12:47:34 cziegeler Exp $
implements Configurable, SitemapConfigurable, RequestLifecycleComponent { | 0 |
new ImmutableSet.Builder<>(); | 0 |
* @return The interval between the subsequent retry in milliseconds.
long getRetryInterval(HttpResponse response, HttpContext context); | 0 |
* or more contributor license agreements. See the NOTICE file
* regarding copyright ownership. The ASF licenses this file
* with the License. You may obtain a copy of the License at
* KIND, either express or implied. See the License for the | 0 |
@Override
@Override
@Override
@Override | 0 |
BatchScanConfig tableConfig1 = new BatchScanConfig(table1);
BatchScanConfig tableConfig2 = new BatchScanConfig(table2);
* Verify {@link BatchScanConfig} objects get correctly serialized in the JobContext.
BatchScanConfig table1 = new BatchScanConfig(TEST_TABLE_1).setRanges(Collections.singletonList(n... | 0 |
import java.util.LinkedList;
import java.util.List;
@Override
public List<Set<AuthProperty>> getProperties() {
List<Set<AuthProperty>> toRet = new LinkedList<Set<AuthProperty>>();
Set<AuthProperty> internal = new TreeSet<AuthProperty>();
internal.add(new AuthProperty("password", "the password for the p... | 0 |
"BeamProjectRel(order_id=[$0], site_id=[$1], price=[$2], shipping=[$3], notes=[$4])\n"
+ " BeamProjectRel(order_id=[$0], site_id=[$1], price=[$2], shipping=[null],"
+ " notes=[null])\n" | 0 |
* <code>"M</code>ü<code>ller-L</code>ü<code>denscheidt" => "MULLERLUDENSCHEIDT" => "6005507500206880022"</code>
* <code>"6005507500206880022" => "6050750206802"</code></li>
* <code>"6050750206802" => "65752682"</code></li> | 0 |
Path rootPath =
new Path(fs.getUri().toString() + cluster.getTemporaryPath(), getClass().getName()); | 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 law... | 0 |
* Does nothing. This factory does not cache user credentials.
// Does nothing. This factory does not cache user credentials. | 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 |
import org.apache.beam.sdk.io.Source;
XMLReader(XmlSource<T> source) { | 0 |
/**
* Copyright 2016 Seznam a.s.
*
* 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 |
/*
* Copyright 2002-2006 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 ap... | 0 |
/*
* Copyright 2006 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 appl... | 0 |
assertTrue("Expecting NEW_VAL in "+environment,environment.indexOf("NEW_VAL") >= 0);
}
public void testAddEnvironmentVariableEmbeddedQuote() throws Exception {
Map myEnvVars = new HashMap();
myEnvVars.putAll(EnvironmentUtils.getProcEnvironment());
String name = "NEW_VAR";
... | 0 |
Properties proxyProps = new Properties();
proxyProps.put("tokenClass", PasswordToken.class.getName());
proxyProps.putAll(getConnectionInfo().getProperties());
final TServer proxyServer = Proxy.createProxyServer(
HostAndPort.fromParts("localhost", proxyPort), protocol, proxyProps).server; | 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 |
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum { | 0 |
* @return the names, as a Set<String> | 0 |
tabletsByGroup.add(new ComparablePair<>(partitioner.apply(entry.getKey()), entry.getKey()));
serversGroupsToRemove.add(new Pair<>(group, srcTgi.getTserverInstance()));
serversToRemove.add(new Pair<>(group, srcTgi));
emptyServerGroups.add(new Pair<>(group, srcTgi.getTserve... | 0 |
if (modelsDirContents != null && modelsDirContents.length > 0) {
Arrays.sort(modelsDirContents);
for (File folder : modelsDirContents) {
if (folder.isFile()) {
// ignore files
continue;
} e... | 0 |
import java.awt.color.ColorSpace;
import java.awt.image.ComponentSampleModel;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Attic/TransformIterator.java,v 1.6 2002/08/15 23:13:51 pjack Exp $
* $Revision: 1.6 $
* $Date: 2002/08/15 23:13:51 $
* @deprecated this class has been moved to the iterators su... | 0 |
package org.apache.accumulo.examples.simple.client; | 0 |
public class BoundedSideInputJoin extends NexmarkQueryTransform { | 0 |
if(width==0 || height==0){
if(image instanceof RenderedImage){
handleHREF((RenderedImage)image, imageElement);
}
else{
BufferedImage buf = new BufferedImage(width, height,
BufferedImage.TYPE... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/AbstractFactory.java,v 1.5 2003/01/11 05:41:21 dmitri Exp $
* $Revision: 1.5 $
* $Date: 2003/01/11 05:41:21 $
* The {@link JXPathContext#createPath JXPathContext.createPath()} method of
... | 1 |
if (!doubleBufferedRendering) {
suspendInteractions = false;
}
if (doubleBufferedRendering) {
suspendInteractions = false;
}
if (doubleBufferedRendering) {
suspendInteractions = false;
}
| 0 |
import org.apache.felix.scr.impl.helper.ComponentMethods;
* @param componentMethods
ComponentMetadata metadata, ComponentMethods componentMethods )
super( activator, metadata, componentMethods );
final MethodResult result = getComponentMethods().getActivateMethod().invoke( implementatio... | 0 |
private boolean returnRawTypes;
public ConvertType(boolean returnRawTypes) {
this.returnRawTypes = returnRawTypes;
}
TypeDescriptor ret = createListType(type);
return returnRawTypes ? ret.getRawType() : ret.getType();
return returnRawTypes ? type.getRawType() : type.getType(); | 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 ap... | 1 |
* <li>{@link #findFiles} to find a set of matching descendants in in the same file system.
*<p>You can iterate over a FileObject using the Java "foreach" statement, which provides all descendants of a File
* Finds the set of matching descendants of this file, in depthwise order.
* Finds the set of matching... | 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 static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState;
import or... | 0 |
ResourceDependency setPropagate(boolean propagate); | 0 |
AlgorithmSuiteSecurityEvent algorithmSuiteSecurityEvent = new AlgorithmSuiteSecurityEvent();
algorithmSuiteSecurityEvent.setAlgorithmURI(digestAlgorithm.getURI());
algorithmSuiteSecurityEvent.setKeyUsage(XMLSecurityConstants.Dig);
algorithmSuiteSecurityEvent.setCorrelationID(referenceTyp... | 0 |
/** Determine if this is windows. */
private static final boolean WINDOWS = (File.separatorChar == '\\');
//-----------------------------------------------------------------------
public void testConstants() throws Exception {
assertEquals('/', IOUtils.DIR_SEPARATOR_UNIX);
assertEqu... | 0 |
EXT_XML, Collections.singletonList(FILE_PARAMS));
Collections.singletonList("org.apache.commons.configuration2.builder.XMLBuilderParametersImpl"));
Collections.singletonList("org.apache.commons.configuration2.builder.JndiBuilderParametersImpl"));
... | 0 |
public void encode(WindowedValue<T> windowedElem, OutputStream outStream)
throws CoderException, IOException {
encode(windowedElem, outStream, Context.NESTED);
}
@Override
public WindowedValue<T> decode(InputStream inStream) throws CoderException, IOException {
return decode(inStrea... | 0 |
* @version $Revision$ $Date$ | 0 |
addNewConfigurationsFromXml(); | 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 |
+ "`process`, deletes will supress data. When set to `fail`, any deletes seen will cause"
+ " an exception. The purpose of `fail` is to support tables that never delete data and"
+ " need fast seeks within the timestamp range of a column. When setting this to fail, "
+ "also con... | 0 |
Document n = (Document)newNode();
if (deep) {
for (Node c = getFirstChild();
c != null;
c = c.getNextSibling()) {
n.appendChild(n.importNode(c, deep));
}
}
return n; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/LongTest.java,v 1.6 2003/05/22 03:12:18 dgraham Exp $
* $Revision: 1.6 $
* $Date: 2003/05/22 03:12:18 $
* @version $Revision: 1.6 $ $Date: 2003/05/22 03:12:18 $
resources =... | 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 |
* Copyright (c) 2002 The Apache Software Foundation. All rights | 0 |
public void execute(final E input) { | 0 |
* Copyright 2016 Seznam.cz, a.s. | 0 |
ServerContext context = ServerContext.getInstance(opts.iname, opts.keepers, zkTimeOut);
TransactionWatcher watcher = new TransactionWatcher(context); | 0 |
r.addDescriptionEntry(ENTRY_EXPECTED_KEY,
SelfContainedSVGOnLoadTest.ENTRY_KEY_NUMBER_OF_TEST_RESULT_ELEMENTS); | 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 |
* Implementation of a PATRICIA Trie (Practical Algorithm to Retrieve Information
* Coded in Alphanumeric).
* <p>
* A PATRICIA {@link Trie} is a compressed {@link Trie}. Instead of storing
* <p>
* Most importantly, PATRICIA requires very few comparisons to keys while
* <p>
* The {@link Trie} can return operation... | 0 |
* limitations under the License. | 0 |
streamApp.submit(); | 0 |
import org.apache.kafka.clients.consumer.OffsetAndTimestamp;
hasRecordTimestamp = ConsumerRecord
.class
.getMethod("timestamp", (Class<?>[]) null)
.getReturnType()
.equals(Long.TYPE);
hasOffsetsForTimes = Consumer
.class
.getMethod("offsetsForTimes", Map.class... | 0 |
* @version $Id$ | 0 |
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
| 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 |
* @version $Revision$ | 0 |
* <p>Please see 'build_rules.gradle' file for instructions regarding
* running this test using Beam performance testing framework.</p> | 0 |
* @version $Revision$ | 0 |
* Discovers a DuckSetExecutor.
*
* @param is the introspector
* @param clazz the class to find the set method from
* @param key the key to use as 1st argument to the set method
* @param value the value to use as 2nd argument to the set method
* @return the executor if found, null oth... | 0 |
import org.apache.sshd.common.util.logging.AbstractLoggingBean; | 0 |
// Set the node mask
// Set the node clip | 0 |
Arg.create(Amount.of(10L, Time.SECONDS)); | 0 |
@Override
@Override
@Override | 0 |
import com.google.cloud.dataflow.sdk.transforms.windowing.Trigger.OnElementEvent;
import com.google.cloud.dataflow.sdk.transforms.windowing.Trigger.OnMergeEvent;
import com.google.cloud.dataflow.sdk.transforms.windowing.Trigger.OnTimerEvent;
isTriggerContext(), Mockito.<OnElementEvent<IntervalWindow>>any()))
... | 0 |
import org.apache.commons.digester3.spi.TypeConverter;
/**
* Allows retrieve the bound converter for the given type.
*
* NOTE: the first version will be a commons-beanutils Converter façade.
*
* @param <T>
* @param type
* @return
*/
<T> TypeConverter<T> lookupConverter(Cl... | 0 |
* @author <a href="mailto:rolandw at apache.org">Roland Weber</a> | 0 |
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
* permission of the Apache Software Foundation. | 0 |
import org.apache.batik.ext.awt.image.renderable.Clip;
import org.apache.batik.ext.awt.image.renderable.Filter; | 0 |
* @cocoon.sitemap.component.documentation | 0 |
import org.apache.accumulo.server.ServerConstants;
import org.apache.accumulo.server.fs.VolumeManager;
import org.apache.accumulo.server.fs.VolumeManagerImpl;
public static String createTabletDirectory(VolumeManager fs, String tableId, Text endRow) {
String volume = fs.choose(ServerConstants.getTablesDirs());
... | 1 |
* Defines the maximum number of ignorable lines before we expect
* a HTTP response's status code.
* <p>
* With HTTP/1.1 persistent connections, the problem arises that
* broken scripts could return a wrong Content-Length
* (there are more bytes sent than specified).<br />
* Unfortunat... | 0 |
* @param bucketAccessible next return values
private GcsUtil buildMockGcsUtil(Boolean bucketExist, Boolean... bucketAccessible)
when(mockGcsUtil.bucketAccessible(any(GcsPath.class)))
.thenReturn(bucketExist, bucketAccessible); | 0 |
assertTrue(schema.getField("str").getType().getNullable());
assertFalse(schema.getField("anInt").getType().getNullable()); | 0 |
package org.apache.cocoon.xml.util;
import org.apache.cocoon.xml.util.NamespacesTable; | 0 |
package javax.activation;
import java.net.URL;
/**
* Mock class providing the declarations required to compile the Cocoon code when
* the actual library is not present.
*
* @version CVS $Id: URLDataSource.java,v 1.1 2003/08/08 11:35:03 cziegeler Exp $
*/
public class URLDataSource implements DataSource {
... | 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 |
private static final String AMS_GRAFANA_INI = "ams-grafana-ini";
Config amsGrafanaIni = cluster.getDesiredConfigByType(AMS_GRAFANA_INI);
if (amsGrafanaIni != null) {
Map<String, String> amsGrafanaIniProperties = amsGrafanaIni.getProperties();
String content = amsGrafanaIniP... | 0 |
package org.apache.felix.upnp.basedriver.util; | 0 |
* @see ResourceOrigin | 0 |
coder.structuralValue(windowedKey.getValue()), | 0 |
return ImmutableList.of(new S3FileSystem(options.as(S3Options.class))); | 0 |
ProviderTestSuite suite = new ProviderTestSuite(new WebdavProviderTestCase());
suite.addTests(WebdavVersioningTests.class);
return suite; | 0 |
import java.util.SortedMap;
private SortedMap<String, SortedMap<String, String>> configurations;
private SortedMap<String, SortedMap<String, SortedMap<String, String>>> configurationAttributes;
public ClusterConfigs(SortedMap<String, SortedMap<String, String>> configurations, SortedMap<String, SortedMap<String, S... | 0 |
maxDuration != null && maxDuration.isLongerThan(Duration.ZERO),
"maxDuration must be greater than 0");
* {@link RetryPredicate#test(Object)} returns true, {@link Write} tries to resend the requests
* to the Solr server if the {@link RetryConfiguration} permits it.
"Erro... | 1 |
// This is called before gatherInformation, so need to always queue for compaction until
// context | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.