Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.accumulo.core.client.sample.SamplerConfiguration; | 0 |
import java.util.concurrent.ScheduledExecutorService;
import org.apache.sshd.common.PropertyResolverUtils;
import org.apache.sshd.common.session.Session;
ChannelSession channel = ChannelSession.this;
long timeout = PropertyResolverUtils.getLongProperty(
channel, S... | 0 |
@Test
public void testNullCacheConfig() throws Exception {
CachingHttpClientBuilder.create().setCacheConfig(null).build();
}
| 0 |
DoFnSignature signature = DoFnSignatures.getSignature(fn.getClass()); | 0 |
@Override
@Override
@Override | 0 |
return isSet(CommandSession.OPTION_NO_GLOB, false) ? null : session().currentDir();
}
protected boolean isSet(String name, boolean def) {
Object v = session.get(name);
if (v instanceof Boolean) {
return (Boolean) v;
} else if (v != null) {
String s = v.to... | 0 |
import org.apache.ambari.server.state.MaintenanceState;
public void testHostMaintenance() throws Exception {
Assert.assertNull(stateEntity.getMaintenanceState());
Assert.assertEquals(MaintenanceState.OFF, host.getMaintenanceState(c1.getClusterId()));
host.setMaintenanceState(c1.getClusterId(), Maintenance... | 0 |
resultList.get(i).apply(BigQueryIO.write().to(tableRef).withSchema(getSchema())); | 0 |
public class FELIX2344_ExtraDependencyWithCallbackTest extends Base { | 0 |
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import org.apache.sshd.common.config.keys.KeyUtils; | 0 |
import org.apache.log4j.Level;
return (audit.isInfoEnabled() || audit.isEnabledFor(Level.WARN)) && !tableId.equals(MetadataTable.ID) && shouldAudit(credentials); | 0 |
import org.apache.xml.security.utils.Constants;
import org.apache.xml.security.utils.SignatureElementProxy;
import org.w3c.dom.Document;
import org.w3c.dom.Element; | 0 |
import org.apache.ambari.spi.ClusterInformation;
import org.apache.ambari.spi.RepositoryType;
import org.apache.ambari.spi.RepositoryVersion;
import org.apache.ambari.spi.upgrade.UpgradeCheckRequest;
import org.apache.ambari.spi.upgrade.UpgradeCheckResult;
import org.apache.ambari.spi.upgrade.UpgradeCheckStatus;
import... | 0 |
import static org.apache.aurora.scheduler.state.StateChangeResult.ILLEGAL;
import static org.apache.aurora.scheduler.state.StateChangeResult.ILLEGAL_WITH_SIDE_EFFECTS;
import static org.apache.aurora.scheduler.state.StateChangeResult.NOOP;
import static org.apache.aurora.scheduler.state.StateChangeResult.SUCCESS;
... | 0 |
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* | 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.ambari.server.controller.internal.PropertyIdImpl;
import org.apache.ambari.server.controller.internal.ResourceImpl; | 1 |
import org.apache.ambari.server.controller.internal.ClusterControllerImpl;
import org.mortbay.log.Log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Map that associates categories with temporal data.
*/
private final static Logger LOG =
LoggerFactory.getLogger(QueryImpl.class);
//... | 1 |
public String createConfig(ConfigurationInfo info) | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/NonSerializableListDoubleList.java,v 1.3 2003/11/07 20:07:51 rwaldhoff Exp $
*
* @deprecated This code has been moved to Jakarta Commons Primitives (ht... | 0 |
// It's expected that the user is already logged in via UserGroupInformation or external to this program (kinit).
// ACCUMULO-3701 We need to ensure we're logged in before parseArgs returns as the MapReduce Job is going to make a copy of the current user (UGI)
// when it is instantiated.
if (nul... | 0 |
try (BatchWriter bw = accumuloClient.createBatchWriter(tableName)) {
// populate
for (int i = 0; i < NUM_ROWS; i++) {
Mutation m = new Mutation(new Text(String.format("%05d", i)));
m.put(new Text("col" + ((i % 3) + 1)), new Text("qual"),
new Value("junk".getBytes(... | 0 |
suite.addTest(org.apache.xml.security.test.c14n.helper.AttrCompareTest.suite());
suite.addTest(org.apache.xml.security.test.c14n.implementations.ExclusiveC14NInterop.suite());
suite.addTest(org.apache.xml.security.test.c14n.implementations.Bug45961Test.suite());
suite.addTest(org.apache.xml.secu... | 0 |
// DEPRECATED METHODS - for API compatibility only - DO NOT USE
/**
* @deprecated, use {@link #getSystemType()} instead
*/
@Deprecated
public String getSystemName() throws IOException
{
if (__systemName == null && FTPReply.isPositiveCompletion(syst()))
__systemName = _... | 0 |
import net.jcip.annotations.NotThreadSafe;
@NotThreadSafe // Entity is @NotThreadSafe | 0 |
/*
* Copyright (c) OSGi Alliance (2009). 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 |
/**
* 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.batik.ext.awt.image.renderable.Filter;
import org.apache.batik.ext.awt.image.renderable.FilterChainRable;
import org.apache.batik.ext.awt.image.renderable.FilterChainRable8Bit;
// Build a FilterChainRable8Bit
= new FilterChainRable8Bit(sourceGraphic, filterRegion); | 0 |
import org.apache.commons.vfs.impl.test.VfsClassLoaderTests;
* @version $Revision: 1.3 $ $Date: 2002/11/23 00:32:12 $
private final String prefix;
public ProviderTestSuite( final ProviderTestConfig providerConfig ) throws Exception
this( providerConfig, "", false );
}
private ProviderTestSuite... | 0 |
import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hc.core5.http.protocol.HttpCoreContext;
final HttpContext context,
final Command executionCommand = new ExecutionCommand<>(
requestProducer,
responseConsumer,
context != null ? con... | 0 |
super(s, initCause); | 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 |
/**
* Returns the kerning value of this character pair.
*/
public float getKerning(String unicode1, String unicode2);
| 0 |
protected static void configureForEnvironment(MiniAccumuloConfigImpl cfg, Class<?> testClass) {
configureForSsl(cfg);
protected static void configureForSsl(MiniAccumuloConfigImpl cfg) {
File sslDir = new File(cfg.getDir(), "ssl"); | 0 |
import org.apache.sshd.client.session.ClientSession;
import org.apache.sshd.common.session.SessionHolder;
public interface ScpClient extends SessionHolder<ClientSession>, ClientSessionHolder { | 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 java.util.ArrayList;
import java.util.List;
import org.apache.xml.security.exceptions.XMLSecurityException;
import org.apache.xml.security.stax.ext.DocumentContext;
import org.apache.xml.security.stax.ext.OutboundSecurityContext;
import org.apache.xml.security.stax.ext.OutputProcessor;
import org.apache.xml.sec... | 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 |
final ByteArrayOutputStream expected = new ByteArrayOutputStream();
expected.write(i);
assertByteArrayEquals("TeeOutputStream.write(int)", expected.toByteArray(), baos1.toByteArray());
assertByteArrayEquals("TeeOutputStream.write(int)", expected.toByteArray(), baos2.toByteArray());
... | 0 |
import org.apache.accumulo.core.client.impl.ClientContext;
ClientContext context = new ClientContext(instance, new Credentials(principal, token), ClientConfiguration.loadDefault());
scanner = new ScannerImpl(context, split.getTableId(), authorizations);
ClientContext context = new ClientCo... | 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 not... | 0 |
package org.apache.accumulo.server.mini; | 0 |
KERBEROS("Kerberos"); | 0 |
Assert.assertNotNull(
dag.getOperatorMeta("ParDo(EmbeddedCollector)/ParMultiDo(EmbeddedCollector)")); | 0 |
long sum = 0l;
public Value aggregate() {
try {
return new Value(NumSummation.longToBytes(sum));
} catch (IOException e) {
throw new RuntimeException(e);
}
public void collect(Value value) {
long l;
try {
l = NumSummation.bytesToLong(value.get());
} catch (IOException... | 1 |
import com.google.common.net.HostAndPort;
protected HostAndPort httpServer;
httpServer = injector.getInstance(HttpService.class).getAddress();
return String.format("http://%s:%s%s", httpServer.getHostText(), httpServer.getPort(), path); | 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 |
public interface Transactioned extends Mutable, Transactional {
} | 0 |
if (count != 0)
throw new Exception("count == " + count);
if (count != 0)
throw new Exception("count == " + count); | 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 not... | 0 |
+ "Set this to an unprivileged user if the mesos master was started with "
+ "\"--no-root_submissions\". If set to anything other than \"root\", the executor "
+ "will ignore the \"role\" setting for jobs since it can't use setuid() anymore. "
+ "This means that all your ... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntCollectionCollection.java,v 1.5 2003/10/02 22:14:31 scolebourne Exp $
import org.apache.commons.collections.AbstractTestObject;
* @version $Revisi... | 0 |
public class SearchTab
{
searchCriteriaSelections.add( Arrays.asList( Boolean.TRUE, Boolean.FALSE, Boolean.FALSE ) );
searchCriteriaSelections.add( Arrays.asList( Boolean.FALSE, Boolean.TRUE, Boolean.TRUE ) );
public List<List<Boolean>> getSearchCriteriaSelections()
{
public void setSearchC... | 0 |
package org.apache.accumulo.shell.commands;
import org.apache.accumulo.shell.Shell;
import org.apache.accumulo.shell.Token;
import org.apache.accumulo.shell.Shell.Command; | 0 |
/**
* Creates an instance of the content.
* This method needs to be called once only for singleton provided service.
* This methods call the {@link InstanceManager#createObject()} method, and adds
* the created object to the {@link InstanceManager#m_pojoObjects} list. Then,
* it calls ... | 0 |
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a> | 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 |
* files, which are encoded in Intel format (i.e. little indian). | 1 |
* @param useHex if <code>true</code> then use Base32 Hex alphabet
* @param useHex if <code>true</code> then use Base32 Hex alphabet
* if <code>true</code>, then use Base32 Hex alphabet, otherwise use Base32 alphabet
* if <code>true</code>, then use Base32 Hex alphabet, otherwis... | 1 |
import com.google.common.base.Optional;
void changedState(String taskId, ScheduleStatus status, Optional<String> message);
public void changedState(String taskId, ScheduleStatus status, Optional<String> message) { | 0 |
* $Date$ | 0 |
* <p>
* </p> | 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 |
* @param logFile the file to read. | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/text/Format.java,v 1.6 2006/03/14 01:20:30 hargrave Exp $
*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 0 |
* Tests adding nodes from another configuration.
*/
public void testAddNodesCopy() throws ConfigurationException
{
XMLConfiguration c2 = new XMLConfiguration(testProperties2);
conf.addNodes("copiedProperties", c2.getRootNode().getChildren());
conf.save(testSaveConf);
XM... | 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 java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.Serializable;
/**
* Broadcast helper.
*/ | 0 |
* to provide their own display data. | 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 |
if (!topology.getBlueprint().getComponents(HIVE_SERVICE).contains(MYSQL_SERVER_COMPONENT)) { | 0 |
private static final FrameworkInfo BASE_INFO = FrameworkInfo.newBuilder()
.build();
private static final DriverSettings SETTINGS = new DriverSettings(
"fakemaster",
Optional.absent());
private FrameworkInfoFactory infoFactory;
infoFactory = createMock(FrameworkInfoFactory.class);
dri... | 0 |
super.next();
if (super.hasTop())
super.next(); | 0 |
public TemporaryFolder folder =
new TemporaryFolder(new File(System.getProperty("user.dir") + "/target")); | 0 |
reduceFnRunner.processElements(element.elementsIterable()); | 0 |
import org.apache.ambari.server.configuration.AmbariServerConfigurationCategory;
super(configurationMap);
@Override
protected AmbariServerConfigurationCategory getCategory() {
return AmbariServerConfigurationCategory.TPROXY_CONFIGURATION;
* Determines of trusted proxy support is enabled based on the c... | 0 |
Object newV = (newValue) ? Boolean.TRUE : Boolean.FALSE; | 0 |
* Tests whether a clear() operation clears the footer comment.
*/
@Test
public void testClearFooterComment()
{
conf.clear();
assertNull("Still got a footer comment", conf.getFooter());
assertNull("Still got a header comment", conf.getHeader());
}
/** | 0 |
import java.io.OutputStream;
* @version CVS $Id: HttpEnvironment.java,v 1.7 2003/05/07 20:35:43 cziegeler Exp $
/**
* Get the output stream where to write the generated resource.
* The returned stream is buffered by the environment. If the
* buffer size is -1 then the complete output is buffere... | 0 |
when(mockTrigger1.onElement(Mockito.<Trigger<IntervalWindow>.OnElementContext>any()))
.thenReturn(TriggerResult.CONTINUE);
when(mockTrigger2.onElement(Mockito.<Trigger<IntervalWindow>.OnElementContext>any()))
.thenReturn(TriggerResult.CONTINUE);
tester.injectElements(
TimestampedValu... | 0 |
// nothing to override | 0 |
List<PermissionEntity> permissionEntities = new LinkedList<>();
List<PermissionEntity> permissionEntities = new LinkedList<>(); | 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 |
this.queue.remove(t); | 0 |
* DoFunctions ignore outputs that are not the main output. MultiDoFunctions deal with additional
* outputs by enriching the underlying data with multiple TupleTags. | 0 |
import org.apache.http.client.utils.DateUtils; | 0 |
private static final Veto ALMOST = Veto.insufficientResources("Almost", 1);
private static final Veto NOPE = Veto.insufficientResources("Nope", 5);
private static final Veto NO_CHANCE = Veto.insufficientResources("No chance", 1000); | 0 |
return -1;
return -1;
return null;
return null; | 0 |
getConnector().securityOperations().grantTablePermission(getAdminPrincipal(),
MetadataTable.NAME, TablePermission.WRITE);
ClientContext context = new ClientContext(getConnector().getInstance(), credentials,
cluster.getClientConfig()); | 0 |
package org.apache.beam.sdk.extensions.euphoria.operator.test;
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.Dataset;
import org.apache.beam.sdk.extensions.euphoria.core.client.operator.Filter;
import org.apache.beam.sdk.extensions.euphoria.operator.test.junit.AbstractOperatorTest;
import org.apac... | 0 |
import org.apache.http.protocol.HttpCoreContext;
context.setAttribute(HttpCoreContext.HTTP_REQUEST, request);
context.setAttribute(HttpCoreContext.HTTP_CONNECTION, conn);
context.setAttribute(HttpCoreContext.HTTP_RESPONSE, response); | 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.examples.complete;
import org.apache.beam.examples.common.DataflowExampleOptions;
import org.apache.beam.examples.common.DataflowExampleUtils;
import org.apache.beam.examples.common.ExampleBigQueryTableOptions;
import org.apache.beam.examples.common.ExamplePubsubTopicAndSubscriptionOptions;
imp... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/FloatArrayList.java,v 1.10 2003/08/31 17:21:14 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may... | 0 |
@SuppressWarnings("resource") // BasicHttpClientConnectionManager | 0 |
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
| 0 |
/* $Id: FinderFromDfltMethod.java,v 1.5 2004/05/10 06:34:01 skitching Exp $
* Copyright 2004 The Apache Software Foundation. | 0 |
final TupleTag<Integer> additionalOutputTag = new TupleTag<Integer>("extra") {};
c.output(additionalOutputTag, c.element());
.withOutputTags(emptyOutputTag, TupleTagList.of(additionalOutputTag)));
PAssert.that(outputs.get(additionalOutputTag)).containsInAnyOrder(inputs); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.