Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import com.google.bigtable.v2.Row;
.setInstanceId(options.getInstanceId()); | 0 |
this.dataType =
(tempTypes != null && tempTypes.containsKey(def.dataTypeName)) ? tempTypes.get(def.dataTypeName) :
t.getDataType(IDataType.class, def.dataTypeName); | 0 |
* @since 3.1
* @since 3.1 | 0 |
upgradeCatalog.updateConfigurationProperties("yarn-env",
Collections.singletonMap("min_user_id", "1000"), false, false);
expectLastCall(); | 0 |
fail("map must not be null");
} catch (NullPointerException e) {
// expected | 0 |
import org.apache.http.impl.DefaultHttpResponseFactory;
import org.apache.http.nio.protocol.HttpAsyncServiceExchange;
new DefaultHttpResponseFactory(),
requestHandlerResolver,
expectationVerifier,
final HttpAsyncServiceExchange httpexchange,
... | 0 |
/**
* Test SetPropertyRule when matched XML element has no attributes.
* See: DIGESTER-114
*/
public void testElementWithNoAttributes() throws Exception {
String TEST_XML_3 = "<?xml version='1.0'?><root><set/></root>";
// Set up the rules we need
digester.addObjectCreate(... | 0 |
private interface OptionsWithDefaultMethod extends PipelineOptions {
private interface ExtendedOptionsWithDefault extends OptionsWithDefaultMethod {}
private interface Options extends PipelineOptions {
private interface SubtypeReturingOptions extends Options { | 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 |
@DoFn.Setup
public void setup() throws Exception {
@Teardown
public void teardown() throws Exception {
@ProcessElement
public void processElement(ProcessContext c) throws Exception {
BatchReadOnlyTransaction tx =
spannerAccessor.getBatchClient().batchReadOnlyTransaction(config.getTimestampBound(... | 1 |
import org.apache.aurora.gen.JobUpdateKey;
import org.apache.aurora.scheduler.storage.entities.IJobKey;
import org.apache.aurora.scheduler.storage.entities.IJobUpdateKey;
private static final IJobKey JOB = JobKeys.from("role", "env", "job");
IInstanceKey.build(new InstanceKey(JOB.newBuilder(), 0));
private st... | 0 |
import java.util.function.Consumer;
public void readFromBeginning(Consumer<LogEntry> reader)
reader.accept(logEntry); | 0 |
import org.apache.ambari.server.orm.RequiresSession;
@RequiresSession
@RequiresSession
@RequiresSession | 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... | 0 |
expect(managementController.getAuthName()).andReturn("admin").anyTimes();
properties.put(ClusterStackVersionResourceProvider.CLUSTER_STACK_VERSION_REPOSITORY_VERSION_PROPERTY_ID, "2.2.0.1-885"); | 0 |
/**
* A default implementation of 'ExecuteResultHandler' used for asynchronous
* process handling.
*/
public class DefaultExecuteResultHandler implements ExecuteResultHandler {
/** The exit value of the finished process */
/** Any offending exception */
/**
/**
} | 0 |
import org.apache.aurora.scheduler.offers.HostOffer; | 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... | 1 |
protected final Method getMethod()
{
return m_method;
} | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.client.accumulators;
import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; | 0 |
private static final long serialVersionUID = 7456061169617014189L;
| 0 |
import org.apache.beam.sdk.transforms.DoFn;
filteredTimesTwo = filtered.apply("timesTwo", ParDo.of(new DoFn<Integer, Integer>() {
@ProcessElement
public void processElement(ProcessContext c) throws Exception { | 0 |
package org.apache.felix.framework.resolver; | 0 |
* @deprecated This block is deprecated and will be removed in future versions. | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
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 |
public class HalfDeadTServerIT extends ConfigurableMacBase { | 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.util.ArrayList;
import java.util.List;
private List<String> testList;
private List<Object> newList;
private ArrayList<Object> arrayList;
testList = new ArrayList<String>();
newList = new ArrayList<Object>();
arrayList = new ArrayList<Object>();
List<?> list =... | 0 |
* This class implements {@link SVGGElement}.
* <b>DOM</b>: Implements {@link Node#getLocalName()}. | 0 |
* Copyright (c) 1999 The Apache Software Foundation. All rights
* notice, this list of conditions and the following disclaimer.
* if any, must include the following acknowledgment:
* software without prior written permission. For written
* The development of this software was partly funded by the Europea... | 0 |
import org.apache.accumulo.core.conf.ClientProperty;
cfg.setClientProperty(ClientProperty.INSTANCE_ZOOKEEPERS_TIMEOUT, "15s"); | 0 |
return Math.min(
VetoType.INSUFFICIENT_RESOURCES.getScore(),
(int) (VetoType.INSUFFICIENT_RESOURCES.getScore() * value) / range);
private Optional<Veto> getConstraintVeto(
// Break early to avoid potentially-expensive operations to satisfy other constraints.
return veto;
... | 0 |
allowedSchemes = Collections.EMPTY_SET;
allowedSchemes = new HashSet();
allowedSchemes.addAll(Arrays.asList(schemes));
if (!allowedSchemes.contains(scheme)) {
return (options & flag) > 0;
return (options & flag) == 0; | 0 |
* its password. Finally store the generated password in the shared principal-to-password map and
* store the new key numbers in the shared principal-to-key_number map so that subsequent process
* may use the data if necessary.
Map<String, Integer> principalKeyNumberMap = getPrincipalKeyNumberMap(requestSh... | 0 |
MetadataTableUtil.deleteTable(tableInfo.tableId, false, SystemCredentials.get(), environment.getMasterLock());
security.grantTablePermission(SystemCredentials.get().toThrift(env.getInstance()), tableInfo.user, tableInfo.tableId, permission);
AuditedSecurityOperation.getInstance().deleteTable(SystemCrede... | 0 |
package org.apache.ambari.funtest.server.utils;
import org.apache.ambari.funtest.server.WebRequest;
import org.apache.ambari.funtest.server.WebResponse; | 0 |
* Use <code>ifClosure</code> if you want that.
* Use <code>ifClosure</code> if you want that. | 0 |
private String hostname;
private String publicHostname;
private List<String> clusterNames; // CREATE/UPDATE
private Map<String, String> hostAttributes; // CREATE/UPDATE
private String rackInfo;
public String getRackInfo() {
return rackInfo;
}
public void setRackInfo(String info) {
rackInfo... | 1 |
public enum AtlasPrivilege {
TYPE_CREATE("type-create"),
TYPE_UPDATE("type-update"),
TYPE_DELETE("type-delete"),
ENTITY_READ("entity-read"),
ENTITY_CREATE("entity-create"),
ENTITY_UPDATE("entity-update"),
ENTITY_DELETE("entity-delete"),
ENTITY_READ_CLASSIFICATION("entity-read-cl... | 0 |
import org.apache.http.client.methods.HttpRequestWrapper;
protected HttpRequestWrapper request;
request = HttpRequestWrapper.wrap(new BasicHttpRequest("GET", "/foo", HttpVersion.HTTP_1_1)); | 0 |
serializedOptions, ImmutableMap.of()); | 0 |
* Autogenerated by Thrift Compiler (0.11.0)
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)") | 0 |
import org.apache.beam.sdk.io.fs.ResourceId;
ValueProvider<ResourceId> baseOutputFilename,
super(baseOutputFilename, filenamePolicy, writableByteChannelFactory);
public FileBasedWriter<String> createWriter() throws Exception { | 0 |
/*
* Copyright 2013 Twitter, 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 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 |
myCoder.getSchema(), myCoder.getSchema(), myCoder.reflectData.get()); | 0 |
new JobDiff(ImmutableMap.of(), ImmutableSet.of());
new JobDiff(ImmutableMap.of(), ImmutableSet.of(2, 3, 4)),
new JobDiff(ImmutableMap.of(1, task, 2, task), ImmutableSet.of()), | 0 |
package org.apache.beam.sdk.runners; | 0 |
import org.mockito.ArgumentMatchers;
Mockito.verify(h1).parse(ArgumentMatchers.<SetCookie>any(), ArgumentMatchers.eq("stuff"));
Mockito.verify(h2, Mockito.never()).parse(ArgumentMatchers.<SetCookie>any(), ArgumentMatchers.anyString());
Mockito.verify(h1).parse(ArgumentMatchers.<SetCookie>any(), ... | 0 |
p.run().waitUntilFinish(); | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Lists; | 0 |
LOG.info("Estimated size bytes for the query is: {}", estimatedSizeBytes);
* Datastore system tables with statistics are periodically updated. This method fetches
* the latest timestamp (in microseconds) of statistics update using the {@code __Stat_Total__}
* table.
*/
private static lon... | 0 |
import org.apache.hc.core5.http.HttpResponse;
T handleResponse(HttpResponse response) throws IOException; | 0 |
* @return {@code true} if there is data in the buffer,
* {@code false} otherwise.
* destination buffer, but cannot be more than {@code maxLen} value.
* {@code maxLen} value.
* destination buffer the method returns {@code true}. The line
* the buffer, this method returns {@code false} wit... | 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.Map;
HashMap map = new HashMap(2);
map.put(TextAttribute.FAMILY, "default");
map.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD);
message = new MessageArea(map);
public class MessageArea extends JLabel {
Map textAttMap;
Font font;
public ... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/impl/TextScript.java,v 1.8 2002/06/25 19:12:29 jstrachan Exp $
* $Revision: 1.8 $
* $Date: 2002/06/25 19:12:29 $
* $Id: TextScript.java,v 1.8 2002/06/25 19:12:29 jstrachan Exp $
* @versio... | 0 |
* of short data type, the color Black being represented by 0,0,0 and
* White by 65536,65536,65536. In order to display these images, the
* default behavior is to dither the short values down to 8 bits.
* The dithering is done by calling the <code>decode16BitsTo8Bits</code>
* by the SampleFormat tag, the dithering ... | 0 |
import org.apache.cocoon.test.ServletTestCase;
public class BlocksManagerTestCase extends ServletTestCase { | 0 |
@Override | 0 |
* RequestHostOutgoing is responsible for adding {@code Host} header to the outgoing message.
* This interceptor is required for client side protocol processors.
Args.notNull(context, "HTTP context");
final ProtocolVersion ver = context.getProtocolVersion();
HttpHost targethost = request.ge... | 0 |
return typeAttributeDifference.getElementsAbsentInExisting(existing, incoming);
return typeAttributeDifference.getElementsAbsentInExisting(existing, incoming);
return typeAttributeDifference.addElements(existing, incoming); | 0 |
import org.apache.sshd.client.session.ClientSession; | 0 |
* Copyright 2016 Seznam.cz, a.s. | 0 |
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.io.TextIO;
import org.apache.beam.sdk.transforms.Count;
import org.apache.beam.sdk.transforms.Create;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.ParDo;
import org.apache.beam.sdk.transforms.windowing.Sessions;
import ... | 0 |
((UnboundedDataset<T>) context.borrowDataset(transform)).getDStream();
(UnboundedDataset<InputT>) context.borrowDataset(transform); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestTreeBag.java,v 1.6 2003/10/05 21:23:21 scolebourne Exp $
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* permission of the Apache Software Foundati... | 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 applicable l... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/CallParamRule.java,v 1.7 2002/03/23 17:45:57 rdonkin Exp $
* $Revision: 1.7 $
* $Date: 2002/03/23 17:45:57 $
* @version $Revision: 1.7 $ $Date: 2002/03/23 17:45:57 $
*
* @de... | 0 |
* This class contains all the definitions used in the package.
final class TarConstants
public static final int MODELEN = 8;
public static final int UIDLEN = 8;
public static final int GIDLEN = 8;
public static final int CHKSUMLEN = 8;
public static final int SIZELEN = 12;
public static final i... | 0 |
import org.apache.ambari.server.orm.entities.MpackEntity;
import org.apache.ambari.server.orm.entities.StackEntity;
/***
* Remove Mpack from the mpackMap and stackMap which is used to power the Mpack and Stack APIs.
* @param mpackEntity
* @param stackEntity
* @throws IOException
*/
void removeMpack(M... | 0 |
@QueryParam("value") String value) { | 0 |
package org.apache.felix.karaf.gshell.features; | 0 |
public ExtensionFileComparator(final IOCase caseSensitivity) {
public int compare(final File file1, final File file2) {
final String suffix1 = FilenameUtils.getExtension(file1.getName());
final String suffix2 = FilenameUtils.getExtension(file2.getName()); | 1 |
/*
* 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 |
IWire[] newWires = null;
newWires = new IWire[1];
newWires = new IWire[wires.length + 1];
} | 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 |
final Request request = ObjectModelHelper.getRequest(service.getProcessInfoProvider().getObjectModel()); | 0 |
import com.amazonaws.AmazonClientException;
public TransientKinesisException(String s, AmazonClientException e) { | 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 |
response.addHeader(HTTP.SERVER_DIRECTIVE, s); | 0 |
* Create a minimal web application based on the current block
* @throws MojoExecutionException if any problem occurs while executing this Mojo
cocoon.setTargetUrl("target/cocoon-webapp");
cocoon.setWebappUrn("org.apache.cocoon:cocoon-minimal-webapp:1.0-SNAPSHOT:war");
cocoon.setBlockFw... | 0 |
import org.apache.accumulo.core.cli.BatchWriterOpts;
import org.apache.accumulo.harness.ManagedAccumuloIT;
public class DynamicThreadPoolsIT extends ManagedAccumuloIT {
public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {
TestIngest.ingest(c, opts, new BatchWriterOpts());... | 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 |
protected NHttpConnectionFactory<DefaultNHttpServerConnection> createServerConnectionFactory() throws Exception {
return new LoggingSSLServerConnectionFactory(SSLTestContexts.createServerSSLContext());
protected NHttpConnectionFactory<DefaultNHttpClientConnection> createClientConnectionFactory() throws ... | 0 |
* Return the associated java class description
*/
public JavaClassDescription getJavaClassDescription() {
if ( this.tag != null ) {
return this.tag.getJavaClassDescription();
}
return null;
}
/** | 0 |
import static org.junit.Assert.assertTrue;
private static final String DEFAULT_USER_AGENT_NAME = "Apache_Beam_SDK_for_Java";
@Test
public void testUserAgentFactory() {
PipelineOptions options = PipelineOptionsFactory.create();
String userAgent = options.getUserAgent();
assertNotNull(userAgent);
... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/TagLibrary.java,v 1.10 2002/06/06 07:13:41 jstrachan Exp $
* $Revision: 1.10 $
* $Date: 2002/06/06 07:13:41 $
* $Id: TagLibrary.java,v 1.10 2002/06/06 07:13:41 jstrachan Exp $
import org.ap... | 0 |
* Default implementation of an {@link HttpRoutePlanner}. This implementation
* It will not make use of any Java system properties, nor of system or
* The following parameters can be used to customize the behavior of this
* class:
| 0 |
+ Analyzer.FIXUPMESSAGES_IS_DIRECTIVE + "=" | 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 u... | 0 |
package org.apache.beam.sdk.nexmark; | 0 |
*
*
*
*
}
else
* | 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 |
RecoveryConfig recoveryConfig = new RecoveryConfig(autoStartConfig.getEnabledComponents(hostname)); | 0 |
throw new JobConfigurationException(String.format("Configuration of job %s is invalid: %s!", jobName, ex.getMessage()), ex); | 0 |
expect(clusters.getClusters()).andReturn(clustersMap).times(1);
expect(clusterDAO.findAll()).andReturn(Collections.<ClusterEntity> emptyList()).times(2);
expect(clusterEntity.getConfigMappingEntities()).andReturn(Collections.singleton(configMappingEntity)).times(2); | 0 |
private MockNamespace namespace;
MockTable(MockNamespace namespace, boolean limitVersion, TimeType timeType) {
public void setNamespace(MockNamespace n) {
public MockNamespace getNamespace() { | 0 |
private static org.slf4j.Logger LOG =
LOG.debug("Signature provider:" + signature.getProvider());
LOG.debug("Verifying with key: " + key);
LOG.debug("JCA Algorithm: " + getJCAAlgorithm());
LOG.debug("Signature Bytes length: " + sig.length);
LOG.debug("Sign... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/buffer/TestPriorityBuffer.java,v 1.1 2004/01/02 02:14:28 scolebourne Exp $
* Tests the PriorityBuffer.
* @version $Revision: 1.1 $ $Date: 2004/01/02 02:14:28 $
public class TestP... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.