Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
package org.apache.hc.core5.reactor; | 1 |
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
Halt.halt(serverStopRequested ? 0 : 1, new Runnable() {
Halt.halt(1, new Runnable() { | 0 |
initialValue = 1 | 0 |
import org.apache.flink.api.common.ExecutionConfig;
private boolean objectReuse = false;
if (objectReuse) {
environment.getExecutionConfig().enableObjectReuse();
} else{
environment.getExecutionConfig().disableObjectReuse();
}
* See {@link ExecutionConfig#disableObjectReuse()}
... | 0 |
containsInAnyOrder( | 0 |
*
*
*
*
if (definition instanceof ActionDefinition) {
ActionDefinition other = (ActionDefinition) definition;
this.actionCommand = other.actionCommand;
this.listener = other.listener;
} else {
throw new Exception("Definition to inherit from is 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 ... | 0 |
import org.apache.hc.core5.util.Args;
Args.notNull(request, "Request");
execute(SimpleRequestProducer.create(request, null), SimpleResponseConsumer.create(), context, new FutureCallback<SimpleHttpResponse>() { | 0 |
import org.apache.beam.sdk.testing.PAssert;
import org.apache.beam.sdk.testing.TestPipeline;
TestPipeline p = TestPipeline.create();
PAssert.that(output).containsInAnyOrder(expectedOutput);
p.run();
TestPipeline p = TestPipeline.create(); | 0 |
LOG.debug(" {}", auth);
LOG.debug(" {}", auth);
LOG.debug(" {}", auth);
LOG.debug(" {}", auth);
LOG.debug(" {}", auth);
LOG.debug(" {}", auth); | 0 |
import org.apache.beam.sdk.transforms.OldDoFn;
* A {@link OldDoFn} that splits a given query into multiple sub-queries, assigns them unique
* keys and outputs them as {@link KV}.
static class SplitQueryFn extends OldDoFn<Query, KV<Integer, Query>> {
* A {@link OldDoFn} that reads entities from Datast... | 0 |
/*
* Copyright 2005 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 applica... | 0 |
* @version CVS $Id: EffectWidgetReplacingPipe.java,v 1.6 2004/01/23 18:42:52 tim Exp $
out.buffer(); | 0 |
package org.apache.accumulo.core.clientImpl;
import org.apache.accumulo.core.dataImpl.KeyExtent; | 0 |
@Deprecated
public XMLSignatureException(String msgID, Exception originalException) {
this(originalException, msgID);
}
@Deprecated
public XMLSignatureException(String msgID, Object[] exArgs, Exception originalException) {
this(originalException, msgID, exArgs);
} | 0 |
* {@link State} that can be read via {@link #read()}.
* <p>Use {@link #readLater()} for marking several states for prefetching. Runners
* can potentially batch these into one read. | 0 |
appPath = workflowFilesService.getWorkflowFileName(appPath.trim());
String filePath = workflowFilesService.createFile(appPath,
appPath = workflowFilesService.getWorkflowDrafFileName(appPath.trim());
workflowFilesService.createFile(appPath, postBody, overwrite);
appPath = workflowFilesService.getWo... | 0 |
* @since 1.2 | 0 |
Integer separationSeconds = requestExecution.getBatch()
.getBatchSettings().getBatchSeparationInSeconds();
.usingJobData(BatchRequestJob.NEXT_EXECUTION_SEPARATION_SECONDS,
separationSeconds != null ? separationSeconds : 0) | 0 |
* @deprecated
@Deprecated | 0 |
handleGeometryChanged(); | 0 |
public class TestNetscapeCookieAttribHandlers extends TestCase {
public TestNetscapeCookieAttribHandlers(String testName) {
return new TestSuite(TestNetscapeCookieAttribHandlers.class);
String[] testCaseName = { TestNetscapeCookieAttribHandlers.class.getName() };
public void testNetscapeDomainVa... | 0 |
import org.apache.http.nio.reactor.EventMask;
import org.apache.http.nio.reactor.SessionBufferStatus;
private SessionSet bufferingSessions;
this.bufferingSessions = new SessionSet();
SessionBufferStatus bufStatus = session.getBufferStatus();
if (bufStatus != null) {
if (bufStatus... | 0 |
// can't pass root cause since the constructor is not available on JDK 1.3
throw new RuntimeException(e.getMessage()); | 0 |
if (value == null) {
throw new CoderException("cannot encode a null " + protoMessageClass.getSimpleName());
} | 0 |
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.collect.Lists;
import org.apache.beam.sdk.util.CloudObject;
import org.apache.beam.sdk.util.PropertyNames;
import org.apache.beam.sdk.util.SerializableUtils;
import org.apache.beam.sdk.util.StringUtils; | 0 |
public void fireServiceEvent(final ServiceEvent event, final Dictionary<String, ?> oldProps, final Bundle framework)
listeners = filterListenersUsingHooks(event, framework, listeners);
ServiceEvent event, Bundle framework, Map<BundleContext, List<ListenerInfo>> listeners)
if (framework =... | 0 |
if (contextObject == null) | 0 |
if (response.getStatusLine().getStatusCode() == 200) {
this.stats.success(contentLen);
} else {
this.stats.failure(contentLen);
} | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.20 2001/10/11 00:28:42 craigmcc Exp $
* $Revision: 1.20 $
* $Date: 2001/10/11 00:28:42 $
* @version $Revision: 1.20 $ $Date: 2001/10/11 00:28:42 $ | 0 |
PEMResourceParserUtils.PROXY,
OpenSSHKeyPairResourceParser.INSTANCE);
SECURITY_ENTITY_FACTORIES.computeIfAbsent(
entityType, k -> new TreeMap<>(String.CASE_INSENSITIVE_ORDER));
factoryEntry = factoriesMap.computeIfAbsent(
ef... | 0 |
import org.apache.accumulo.trace.instrument.Span;
import org.apache.accumulo.trace.instrument.Trace; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/validate/src/java/org/apache/commons/jelly/tags/validate/AssertValidTag.java,v 1.2 2003/01/26 08:44:58 morgand Exp $
* $Revision: 1.2 $
* $Date: 2003/01/26 08:44:58 $
* $Id: AssertValidTag.java,v 1.2 2003/01/26 0... | 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 |
package org.apache.commons.ognl.test.objects; | 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.Iterables; | 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 ... | 0 |
protected IteratorUtils() {} | 0 |
if (typeMap != null && typeMap.containsKey(propertyName) && typeMap.get(propertyName) != null) {
if (typeMap != null && typeMap.containsKey(propertyName) && typeMap.get(propertyName) != null) { | 0 |
private final Logger m_logger;
private final Map m_configMap;
private final File m_revisionRootDir;
private final String m_location;
public BundleRevision(Logger logger, Map configMap, File revisionRootDir, String location)
m_configMap = configMap;
* Returns the configuration map for th... | 0 |
FilterInfo(int serviceRanking,
long serviceId,
String name,
String[] patterns,
String[] servletNames,
String[] regexs,
boolean asyncSupported,
DispatcherType[] dispatcher,
Map<String, String> initParams)
{
su... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BinaryHeap.java,v 1.13 2003/05/11 14:15:23 scolebourne Exp $
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* any, must include the following acknowledg... | 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
... | 1 |
import org.apache.ambari.view.pig.utils.MisconfigurationFormattedException;
import org.junit.rules.ExpectedException;
@Rule public ExpectedException thrown = ExpectedException.none();
@Test
thrown.expect(MisconfigurationFormattedException.class); | 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 m... | 0 |
import java.util.HashSet;
Set<SubResourceDefinition> subResourceDefinitions = new HashSet<SubResourceDefinition>();
subResourceDefinitions.add(new SubResourceDefinition(Resource.Type.ViewInstance));
subResourceDefinitions.add(new SubResourceDefinition(Resource.Type.ViewPermission));
return subResourceDe... | 0 |
public void onHeaderInput(final List<? extends Header> headers) {
public void onHeaderOutput(final List<? extends Header> headers) { | 1 |
throw new ConnectionPoolTimeoutException("Timeout waiting for connection from pool"); | 0 |
* @since 1.1
* @since 1.1
* @since 1.1
* @since 1.1
* @since 1.1
* @since 1.1
* @since 1.1
* @since 1.1
* @since 1.1 | 0 |
* <li>MultiValuedLinkedHashMap - implementation that uses a LinkedHashMap as backing map | 0 |
* Updates request with link to source schedule
*/
@Transactional
void setSourceScheduleForRequest(long requestId, long scheduleId);
/** | 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 |
* 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 |
package org.apache.beam.sdk.util;
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.coders.CoderException; | 0 |
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.Status;
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.stub.StreamObserver;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.MoreObjects;
import org.a... | 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 applica... | 0 |
"OR".equals(person.state)
|| "ID".equals(person.state)
|| "CA".equals(person.state))) | 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 |
/*
* 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 |
* An adapter for JDBC drivers that do not include an implementation | 0 |
import org.apache.http.util.EntityUtils;
* A simple example that uses HttpClient to execute an HTTP request
* over a secure connection tunneled through an authenticating proxy.
new AuthScope("localhost", 8080),
HttpHost targetHost = new HttpHost("www.verisign.com", 443, "https");
Http... | 0 |
import org.apache.atlas.utils.AtlasJson;
if (classification.getValidityPeriods() != null) {
String strValidityPeriods = AtlasJson.toJson(classification.getValidityPeriods());
AtlasGraphUtilsV1.setProperty(traitInstanceVertex, Constants.CLASSIFICATION_VALIDITY_PERIODS_KEY, strValidityPeri... | 0 |
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
private final Logger log = LogManager.getLogger(CPool.class); | 0 |
@Override | 0 |
private final boolean weakETagOnPutDeleteAllowed;
public RequestProtocolCompliance() {
super();
this.weakETagOnPutDeleteAllowed = false;
}
public RequestProtocolCompliance(final boolean weakETagOnPutDeleteAllowed) {
super();
this.weakETagOnPutDeleteAllowed = weakETagOnP... | 0 |
* Sets the default table name to use if one emits a null in place of a table name for a given
* mutation. Table names can only be alpha-numeric and underscores.
public static void setDefaultTableName(Class<?> implementingClass, Configuration conf,
String tableName) {
* Sets the configuration for for th... | 0 |
import org.apache.ambari.server.security.SecurityHeaderFilter;
private final SecurityHeaderFilter securityHeaderFilter = createNiceMock(SecurityHeaderFilter.class);
Capture<FilterHolder> securityHeaderFilterCapture = new Capture<FilterHolder>();
handler.addFilter(capture(securityHeaderFilterCapture), eq("/*")... | 0 |
import java.io.InputStream;
* @author Ian Springer
/**
* Test for {@link IOUtils#toInputStream(String)} and {@link IOUtils#toInputStream(String, String)}.
* Note, this test utilizes on {@link IOUtils#toByteArray(java.io.InputStream)} and so relies on
* {@link #testInputStreamToByteArray()} to ensure... | 0 |
try (AccumuloClient c = createAccumuloClient()) { | 0 |
package org.apache.sshd.common.session.impl;
import org.apache.sshd.common.session.ConnectionService;
import org.apache.sshd.common.session.Session; | 0 |
String newValue = currentHadoopProxyuserHttpHosts.replace("webhcat_server_host|", "webhcat_server_hosts|"); // replacing webhcat_server_host to webhcat_server_hosts
newValue = newValue.replace("\\\\,", "\\,"); // Replacing the concatDelimiter in 'append' variable replacement function
... | 0 |
if (oper == null)
case 'a': case 'A':
return null; // error
in1 = CSSUtilities.getFilterSource(filteredNode, in1Attr,
in2 = CSSUtilities.getFilterSource(filteredNode, in2Attr,
// in which case the default region is the
Filter sourceGraphics
... | 0 |
import org.apache.accumulo.core.conf.SiteConfiguration;
for (Entry<String,String> entry : SiteConfiguration.getInstance()) { | 1 |
Config hadoopEnvConfig = configFactory.createNew(cluster, "hadoop-env",
Config hbaseEnvConfig = configFactory.createNew(cluster, "hbase-env",
new HashMap<String, String>() {{
put("a", "b");
}}, new HashMap<String, Map<String,String>>());
hadoopEnvConfig.setTag("version1... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Buffer.java,v 1.7 2003/12/13 23:51:28 scolebourne Exp $
* Defines a collection that allows objects to be removed in some well-defined order.
* <p>
* The removal order can be bas... | 0 |
public HttpRequest receiveRequestHeader()
HttpRequest request = receiveRequestLine();
protected HttpRequest receiveRequestLine() | 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 long serialVersionUID = 1L;
| 0 |
* The described dependency.
private Dependency m_dependency;
* @param dep the described dependency
public DependencyDescription(Dependency dep) {
m_dependency = dep;
public boolean isMultiple() { return m_dependency.isAggregate(); }
public boolean isOptional() { return m_dependency.isO... | 0 |
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
static class SystemHashCodeSimulatingKey implements Serializable {
... | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/AbstractTestList.java,v 1.3 2003/10/20 22:58:28 scolebourne Exp $
* @version $Revision: 1.3 $ $Date: 2003/10/20 22:58:28 $
if (list2.size() < 2 && isAddSupported()) ... | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
import org.apache.beam.sdk.extensions.gcp.options.GcpOptions;
@Deprecated
@Default.InstanceFactory(
org.apache.beam.sdk.extensions.gcp.options.GcsOptions.ExecutorServiceFactory.class)
@Default.InstanceFactory(
org.apache.beam.sdk.extensions.gcp.options.GcsOptions.PathValidatorFactory.class) | 0 |
import org.apache.commons.digester3.binder.AbstractRulesModule;
definedClass._extends( AbstractRulesModule.class ); | 0 |
List<ExtensionLinkEntity> list = new ArrayList<>(); | 0 |
public static FileLocator fromMap(Map<String, ?> map) | 0 |
protected static final AttributeInitializer attributeInitializer;
protected static final String[] UNITS_VALUES = { | 1 |
import org.apache.batik.util.SVGTypes;
* Implements {@link ValueManager#isAnimatableProperty()}.
*/
public boolean isAnimatableProperty() {
return false;
}
/**
* Implements {@link ValueManager#isAdditiveProperty()}.
*/
public boolean isAdditiveProperty() {
return fal... | 1 |
public static final String BIGQUERY_EXPORT_FORMAT = "bigquery_export_format";
public static final String BIGQUERY_EXPORT_SCHEMA = "bigquery_export_schema"; | 0 |
kexState.set(KEX_STATE_INIT);
if (kexState.get() == KEX_STATE_DONE) {
| 0 |
*
* @deprecated use {@link AuthenticationStrategy}
@Deprecated | 0 |
import java.util.concurrent.Executor;
private final Executor delayedRunExecutor;
this(storage, shutdownRegistry, Executors.newCachedThreadPool(
new ThreadFactoryBuilder().setDaemon(true).setNameFormat("CronDelay-%d").build()));
}
@VisibleForTesting
CronJobManager(Storage storage, ShutdownRegistry s... | 0 |
* A {@link TupleTagList} is an immutable list of heterogeneously typed {@link TupleTag TupleTags}.
* A {@link TupleTagList} is used, for instance, to specify the tags of the additional outputs of a
*
* <pre>{@code
* }</pre>
* <p>Longer {@link TupleTagList TupleTagLists} can be created by calling {@link #and} on... | 1 |
private Long hostId;
public void setHostId(Long hostId) {
this.hostId = hostId;
@Override
public Long getHostId() {
return hostId;
public static AgentConfigsUpdateEvent emptyUpdate() {
return new AgentConfigsUpdateEvent(null);
return Objects.equals(hostId, that.hostId) &&
return Objects.ha... | 0 |
import org.apache.atlas.type.AtlasType;
public GroovyExpression generatePersisentToLogicalConversionExpression(GroovyExpression expr, AtlasType type) {
public boolean isPropertyValueConversionNeeded(AtlasType type) { | 1 |
* @version CVS $Id$
public boolean invokeErrorHandler(ProcessingNode node, Exception ex, Environment env, InvokeContext originalContext)
errorContext.setRedirector(originalContext.getRedirector());
return true;
throw ex; | 0 |
import org.apache.hc.client5.http.impl.sync.CloseableHttpClient;
import org.apache.hc.client5.http.impl.sync.HttpClientBuilder; | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.