Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/ValidatorAction.java,v 1.5 2002/03/30 04:33:17 dwinterfeldt Exp $
* $Revision: 1.5 $
* $Date: 2002/03/30 04:33:17 $
*
* ===========================================================... | 0 |
public FileContentInfo create(final FileContent fileContent)
final String name = fileContent.getFile().getName().getBaseName();
final FileNameMap fileNameMap = URLConnection.getFileNameMap(); | 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 may ... | 1 |
private final ThreadLocal<Boolean> didWeStartWork = new ThreadLocal<>(); | 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 |
import org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation;
ExtensibleSVGDOMImplementation.getDOMImplementation()); | 0 |
BigQueryQuerySourceDef queryDef,
SerializableFunction<SchemaAndRecord, T> parseFn) {
return new BigQueryQuerySource<>(stepUuid, queryDef, bqServices, coder, parseFn);
private final BigQueryQuerySourceDef queryDef;
BigQueryQuerySourceDef queryDef,
SerializableFunction<SchemaAndRecord, T> pa... | 0 |
public ClientConnectionRequest requestConnection(final HttpRoute route) {
public ManagedClientConnection getConnection(
public ClientConnectionRequest requestConnection(final HttpRoute route) {
... | 0 |
import org.apache.cocoon.portal.impl.AbstractLogEnabled; | 0 |
import org.apache.beam.sdk.extensions.sql.impl.utils.CalciteUtils;
import org.apache.beam.sdk.schemas.Schema;
Schema.builder()
.addInt64Field("id")
.addStringField("name")
.addStringField("emailAddress")
.addStringField("creditCard")
.addStringField("c... | 0 |
private final Map<Resource.Type, ViewSubResourceDefinition> resourceDefinitions = new HashMap<Resource.Type, ViewSubResourceDefinition>();
/**
* The external resource type for the view.
*/
private final Resource.Type externalResourceType;
this.externalResourceType =
new Resource.Type(getQuali... | 0 |
import org.apache.hc.core5.http.config.Http1Config;
private final Http1Config http1Config;
final Http1Config http1Config,
this.http1Config = http1Config != null ? http1Config : Http1Config.DEFAULT;
http1Config, | 0 |
executorClock.advance(Amount.of(1L, Time.MILLISECONDS)); | 0 |
createForIterable(WindowFn<?, W> windowFn, Coder<V> inputCoder) {
return new GABWViaWindowSetDoFn<>(windowFn, BufferingWindowSet.<K, V, W>factory(inputCoder));
public static <K, VI, VA, VO, W extends BoundedWindow> GroupAlsoByWindowsDoFn<K, VI, VO, W>
final KeyedCombineFn<K, VI, VA, VO> combineFn,
r... | 0 |
package org.apache.atlas;
import org.apache.atlas.repository.graph.GraphProvider; | 0 |
* Set out printStream (usable for testing)
* Set err printStream (usable for testing)
* set the zookeeper instance | 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 |
.synchronizedList(new ArrayList<>()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/SingletonListIterator.java,v 1.2 2002/08/19 21:56:18 pjack Exp $
* $Revision: 1.2 $
* $Date: 2002/08/19 21:56:18 $
* @version $Id: SingletonListIterator.java,v 1.2 200... | 0 |
import java.util.List;
import org.apache.beam.sdk.io.FileBasedSink;
List<PCollectionView<?>> sideInputs =
WriteFilesTranslation.getDynamicDestinationSideInputs(transform);
FileBasedSink sink = WriteFilesTranslation.getSink(transform);
WriteFiles<InputT, ?, ?> replacement = WriteFiles.to(sink... | 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 l... | 0 |
public static final String INTERNAL_HOSTNAME = "_internal_ambari"; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/iterators/ObjectArrayIterator.java,v 1.8 2003/10/10 21:06:18 scolebourne Exp $
import java.util.Iterator;
* @version $Revision: 1.8 $ $Date: 2003/10/10 21:06:18 $
* @author James... | 0 |
return DefaultUserPrincipalLookupService.INSTANCE;
public static final DefaultUserPrincipalLookupService INSTANCE = new DefaultUserPrincipalLookupService();
| 0 |
import java.util.Collection;
import java.util.List;
import org.apache.sshd.common.NamedResource;
import org.apache.sshd.common.signature.SignatureFactoriesManager;
public class UserAuthPublicKey extends AbstractUserAuth implements SignatureFactoriesManager {
private List<NamedFactory<Signature>> factories;
... | 0 |
* $Revision: 1.10 $
* $Date: 2003/10/09 21:05:29 $
* 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.sshd.common.session.helpers.TimeoutIndicator;
import org.apache.sshd.common.session.helpers.TimeoutIndicator.TimeoutStatus;
AtomicReference<TimeoutIndicator> timeoutHolder = new AtomicReference<>(TimeoutIndicator.NONE);
public boolean handleTimeoutDisconnectReason(Session session, ... | 0 |
import java.io.Serializable;
import java.util.Set; | 0 |
public void init(InitParameters params) {
Map<String,String> options = params.getOptions();
public String dispatch(DispatchParmaters params) {
ScanInfo scanInfo = params.getScanInfo();
if (params.getScanExecutors().containsKey(executor)) { | 0 |
DoFn<InputT, OutputT> doFn = transform.getFn();
transform.getFn(),
transform.getFn(),
DoFn<InputT, OutputT> doFn = transform.getFn();
transform.getFn(),
transform.getFn(), | 0 |
import java.util.Arrays;
import java.util.Collections;
import java.util.List; | 0 |
HiveMetaStoreBridge dgiBridge = new HiveMetaStoreBridge(atlasProperties, hiveConf); | 0 |
import static org.junit.Assert.assertFalse;
int maxTries = 10;
while (maxTries-- > 0 && commitsReceived.size() < commitsRequested + numCommits) {
assertFalse("Should have received commits after 10s, but only got " + commitsReceived,
commitsReceived.size() < commitsRequested + numCommits);
... | 0 |
private final String prefix;
String prefix = null;
if ( !isEmpty(this.path) )
{
if ( !this.path.equals("/") && this.path.length() > 1 )
{
prefix = this.path.substring(0, this.path.length() - 1);
}
}
this.prefix = prefix;
... | 0 |
import static org.hamcrest.Matchers.containsInAnyOrder;
import java.util.ArrayList;
import java.util.List;
import org.apache.beam.model.fnexecution.v1.BeamFnApi.MonitoringInfo;
import org.apache.beam.sdk.metrics.MetricName;
public void testUpdateAllUpdatesUnboundedAndBoundedContainers() {
MetricsContainerStepMap ... | 0 |
public void testOnePreemptibleTask() { | 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 |
/** TestWidenings for {@link SchemaZipFold} with examples. */ | 0 |
import org.apache.accumulo.cloudtrace.instrument.Tracer;
client.update(Tracer.traceInfo(), rootCredentials, new KeyExtent(new Text("test_ingest"), null, new Text("row_0003750000")).toThrift(), mutation.toThrift()); | 1 |
EntityUtils.consume(backendResponse.getEntity());
EntityUtils.consume(backendResponse.getEntity()); | 0 |
// expect configuration reassigned
TestCase.assertEquals( bundle2.getLocation(), config.getBundleLocation() );
// config has to be reassigned
TestCase.assertEquals( bundle2.getLocation(), config.getBundleLocation() );
// config has to be reassigned... | 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 |
implements DoFnInvoker.ArgumentProvider<InputT, OutputT> {
implements DoFnInvoker.ArgumentProvider<InputT, OutputT> { | 0 |
* Creates a new CSSOMReadOnlyStyleDeclaration object.
*/
public CSSOMReadOnlyStyleDeclaration(CSSOMReadOnlyStyleDeclaration sd) {
properties = new PropertyMap(sd.properties);
viewCSS = sd.viewCSS;
parentElement = sd.parentElement;
}
/**
* Creates a copy of the giv... | 0 |
Mockito.<HttpRequest>any(),
final ArgumentCaptor<HttpRequest> reqCaptor = ArgumentCaptor.forClass(HttpRequest.class);
Mockito.verify(requestExecutor).execute(
reqCaptor.capture(),
Mockito.same(managedConn),
Mockito.same(context)); | 0 |
import org.apache.aurora.common.args.Arg;
import org.apache.aurora.common.args.CmdLine;
import org.apache.aurora.common.base.ExceptionalSupplier;
import org.apache.aurora.common.base.MoreSuppliers;
import org.apache.aurora.common.net.http.handlers.AbortHandler;
import org.apache.aurora.common.net.http.handlers.Contenti... | 0 |
* @return <code>true</code> if the key/value pair is accepted by the filter. | 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 |
/*
* $HeadURL$
* $Revision$
* $Date$
* ====================================================================
* 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 ow... | 0 |
import org.osgi.service.obr.RepositoryAdmin;
private ServiceTracker repositoryAdmin;
protected RepositoryAdmin getRepositoryAdmin()
if ( repositoryAdmin == null )
{
try
{
repositoryAdmin = new ServiceTracker( getBundleContext(), RepositoryAdmin.class.getNa... | 0 |
package org.apache.felix.obrplugin; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/PropertyOwnerPointer.java,v 1.2 2002/04/24 04:05:40 dmitri Exp $
* $Revision: 1.2 $
* $Date: 2002/04/24 04:05:40 $
import java.util.Locale;
import org.apache.commons.jxpath... | 0 |
import org.apache.atlas.GraphTransaction;
@Test(dependsOnMethods = "testStore") | 0 |
org.apache.felix.dm.ConfigurationDependency m_delegate;
public org.apache.felix.dm.ConfigurationDependency getDelegate() | 0 |
public interface MergingWindowing<T, W extends Window<W>> | 0 |
try {
switch (operator) {
case SELF_ADD:
return arithmetic.add(args[0], args[1]);
case SELF_SUBTRACT:
return arithmetic.subtract(args[0], args[1]);
case SELF_MULTIPLY:
return arithmetic.multip... | 0 |
import org.apache.cocoon.el.objectmodel.ObjectModel; | 0 |
* @version $Id$ | 0 |
import java.util.Map;
import java.util.Optional;
private final Map<String, ExecutorConfig> config;
public ExecutorSettings(
Map<String, ExecutorConfig> config,
boolean populateDiscoveryInfo) {
public Optional<ExecutorConfig> getExecutorConfig(String name) {
return Optional.ofNullable(config.get(n... | 0 |
import java.sql.SQLException;
import org.apache.ambari.server.AmbariException;
import org.apache.ambari.server.H2DatabaseCleaner;
public void teardown() throws AmbariException, SQLException {
H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector); | 0 |
package org.apache.accumulo.monitor.rest.tables; | 0 |
request.setEntity(createIncomingEntity(request, this.inBuffer, socketHolder.getInputStream(), len)); | 0 |
Mockito.verify(connectionEndpoint).setSocketTimeout(123); | 0 |
package org.apache.commons.beanutils2;
import org.apache.commons.beanutils2.BasicDynaClass;
import org.apache.commons.beanutils2.BeanUtilsBean;
import org.apache.commons.beanutils2.DynaBean;
import org.apache.commons.beanutils2.DynaClass;
import org.apache.commons.beanutils2.DynaProperty;
| 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 may no... | 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 static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
import org.apache.bea... | 0 |
import org.apache.sshd.util.BaseTestSupport;
public class BuiltinMacsTest extends BaseTestSupport {
assertSame(name, expected, actual);
assertNotNull("No match found for " + name, value);
assertTrue(name + " re-specified", avail.add(value));
assertEquals("Incomplete coverage"... | 0 |
import org.apache.sshd.common.SshdSocketAddress;
SshdSocketAddress startLocalPortForwarding(SshdSocketAddress local, SshdSocketAddress remote) throws Exception;
SshdSocketAddress startRemotePortForwarding(SshdSocketAddress remote, SshdSocketAddress local) throws Exception; | 0 |
import java.util.List;
import javax.inject.Inject;
import org.apache.atlas.RequestContext;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
String guid = classVertex.getProperty(Constants.GUID_PROPERTY_KEY, String.class);
// Check if... | 0 |
package org.apache.hc.client5.testing; | 0 |
/* $Id: ExtendedBaseRules.java,v 1.16 2005/01/17 10:56:50 skitching Exp $
* <p>By default, a Digester instance uses a {@link RulesBase} instance as
* its pattern matching engine. To use an ExtendedBaseRules instance, call
* the Digester.setRules method before adding any Rule objects to the digester
* instance:
* <... | 0 |
* @param t
* @param s | 0 |
import java.io.File;
import java.nio.charset.StandardCharsets;
import com.google.common.base.Strings;
import com.google.common.io.Files;
import static org.apache.aurora.scheduler.TierModule.TIER_CONFIG_PATH;
import static org.apache.aurora.scheduler.TierModule.readTierFile;
import static org.junit.Assert.assertFalse;
... | 0 |
import org.apache.commons.jexl.JexlContext;
* @since 1.1
public Object value(JexlContext jc) throws Exception
{
SimpleNode child = (SimpleNode)jjtGetChild(0);
return child.value(jc);
} | 0 |
/* ====================================================================
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* @version $Revision: 1.2 $ $Date: 2004/01/14 21:34:35 $ | 0 |
System.out.println("Connect request cancelled: " + request.getRemoteAddress());
System.out.println("Connect request failed: " + request.getRemoteAddress());
System.out.println("Connect request timed out: " + request.getRemoteAddress()); | 0 |
/**
* Sets the field name where to inject the original service. By default, the original service is injected
* in any attributes in the aspect implementation that are of the same type as the aspect interface.
*/
String field() default "";
/**
* The callback method to be invoked... | 0 |
import java.util.List;
protected List<FilterOp> subOps;
protected List<Arg> args; | 0 |
CreateStreamingFlinkView<ElemT, ViewT> createFlinkView = new CreateStreamingFlinkView<>(view); | 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 |
v.visitNameSignatureInstruction(this); | 0 |
super.setUp();
super.tearDown(); | 0 |
/**
* If this session tracker supports local sessions, return how many.
* otherwise returns 0;
*/
public long getLocalSessionCount(); | 0 |
import java.text.DateFormat;
import java.util.Date;
| 0 |
private static String getSystemTestUriOverride()
{
return System.getProperty(TEST_URI);
}
if (getSystemTestUriOverride() == null)
{
setUpClass();
}
String uri = getSystemTestUriOverride(); | 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... | 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 |
/*
* 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.accumulo.core.client.security.tokens.PasswordToken;
Connector connector = inst.getConnector("user", new PasswordToken("pass")); | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
/**
* @deprecated will be made private; do not access directly, use getter/setter
*/
@Deprecated
/**
* @deprecated will be made private; do not access directly, use getter/setter
*/
@Deprecated
/**
* @deprecated will be made private; do not access directly, use getter/sett... | 0 |
import org.apache.cocoon.portal.coplet.CopletInstance;
void init(CopletInstance coplet);
void destroy(CopletInstance coplet);
void toSAX(CopletInstance coplet, ContentHandler contentHandler)
void login(CopletInstance coplet);
void logout(CopletInstance coplet); | 0 |
package org.apache.hc.core5.http.integration;
import org.apache.hc.core5.http.impl.nio.BasicAsyncRequestProducer;
import org.apache.hc.core5.http.impl.nio.BasicAsyncResponseConsumer;
import org.apache.hc.core5.http.testserver.nio.HttpCoreNIOTestBase; | 1 |
warning("Unable to get size for table {}!", tableName); | 0 |
public static int decode(byte[] data, OutputStream out) throws IOException {
int off = 0;
int length = data.length; | 0 |
import java.io.File;
import java.io.FileOutputStream;
import org.apache.xml.security.keys.content.KeyName;
import org.apache.xml.security.signature.SignedInfo;
import org.apache.xml.security.signature.XMLSignature;
import org.apache.xml.security.transforms.Transforms;
import org.apache.xml.security.utils.Constants;
im... | 0 |
package org.apache.zookeeper.server;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.proto.WatcherEvent; | 0 |
ServerFactoryManager manager = ((ServerSession) getSession()).getFactoryManager();
ServerFactoryManager manager = ((ServerSession) getSession()).getFactoryManager();
ServerFactoryManager manager = ((ServerSession) getSession()).getFactoryManager();
((SessionAware) command).setSession... | 0 |
import org.apache.hc.core5.http2.nio.AsyncServerExchangeHandler;
private final HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory;
final HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory,
final HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.