Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
char[] value =
CredentialProviderFactoryShim.getValueFromCredentialProvider(hadoopConf, key);
String value =
staticConfigs.containsKey(key) ? staticConfigs.get(key) : getXmlConfig().get(key);
char[] value =
CredentialProviderFactoryShim.getValueFromCredent... | 0 |
*
* @deprecated since 2.0. This class maintained for backwards compatibility please do not remove.
* New users see org.apache.accumulo.hadoop.mapreduce.AccumuloInputFormat
@Deprecated | 0 |
public Service createAdapterService(Class serviceInterface, String serviceFilter, String adapterInterface, Object adapterImplementation, Dictionary adapterProperties) {
return m_manager.createAdapterService(serviceInterface, serviceFilter, adapterInterface, adapterImplementation, adapterProperties);
}
... | 0 |
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import org.apache.accumulo.test.constraints.NumericValueConstraint; | 0 |
import org.apache.hc.core5.http.nio.ContentInputBuffer; | 1 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Joiner;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
import org.apache.beam.vendor.guava.v20_0.com.google.common.io.CharStreams; | 0 |
*
* @deprecated Use
* {@link #DiskFileItemFactory(FileCleaningTracker, int, File)}.
* @deprecated Use
* {@link #DiskFileItemFactory(FileCleaningTracker, int, File)}.
* @param tracker The tracker, which is responsible to delete
* temporary files.
publ... | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.BiMap;
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.ImmutableSet;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.colle... | 0 |
* @deprecated | 0 |
* <p>
* </p>
*
* <p>
* This class is thread-safe.
* </p> | 0 |
Boolean isHttpMode = context.getProperties().get("hive.transport.mode").equalsIgnoreCase("http");
String port;
if(isHttpMode){
port = context.getProperties().get("hive.http.port");
}else{
port = context.getProperties().get("hive.port");
}
return port;
params.put(Utils.HiveAuthen... | 0 |
} else if (reader.getWatermark().isBefore(BoundedWindow.TIMESTAMP_MAX_VALUE)) {
// If the reader had no elements available, but the shard is not done, reuse it later
resultBuilder.addUnprocessedElements(
Collections.<WindowedValue<?>>singleton(
element.withVal... | 0 |
Map<String, Object> props = createScaleClusterPropertiesGroup1_HostName(CLUSTER_NAME, BLUEPRINT_NAME);
addSingleHostByName(props);
addSingleHostByName(replaceWithPlainHostNameKey(props));
}
private void addSingleHostByName(Map<String, Object> props) throws InvalidTopologyTemplateException {
ScaleCl... | 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 ... | 0 |
import org.apache.commons.jxpath.JXPathInvalidSyntaxException;
throw new JXPathInvalidSyntaxException(
throw new JXPathInvalidSyntaxException( | 0 |
private boolean isDynAttribute = false;
private boolean isDynAttributeEvalTrigger = false;
break;
break;
break;
break;
public boolean getIsDynAttribute() { return isDynAttribute; }
public void se... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DefaultMapBag.java,v 1.6 2002/10/12 22:15:19 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2002/10/12 22:15:19 $ | 0 |
public class TestCacheKeyGenerator {
CacheKeyGenerator extractor;
extractor = new CacheKeyGenerator();
extractor = new CacheKeyGenerator() {
extractor = new CacheKeyGenerator() {
extractor = new CacheKeyGenerator() {
extractor = new CacheKeyGenerator() {
extractor = n... | 0 |
import com.google.cloud.dataflow.sdk.util.WindowingStrategy.AccumulationMode;
tester = TriggerTester.buffering(
windowFn, AfterEach.inOrder(mockTrigger1, mockTrigger2),
AccumulationMode.DISCARDING_FIRED_PANES);
.orFinally(AfterPane.<IntervalWindow>elementCountAtLeast(7))),
Ac... | 0 |
if (LOG.isDebugEnabled()) {
LOG.debug("graph commit");
}
| 0 |
long timeout = acuConf.getTimeInMillis(Property.TSERV_CLIENT_TIMEOUT);
bresult = scanSession.nextBatchTask.get(timeout, TimeUnit.MILLISECONDS);
sessionManager.removeIfNotAccessed(scanID, timeout); | 0 |
import org.junit.Assert;
import org.junit.Test;
public class TestCookieBestMatchSpec {
@Test
@Test
Assert.fail("MalformedCookieException exception should have been thrown");
@Test
Assert.fail("MalformedCookieException exception should have been thrown");
@Test
Assert.... | 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 |
package org.apache.hadoop.metadata.typesystem.types.store;
import org.apache.hadoop.metadata.typesystem.TypesDef;
import org.apache.hadoop.metadata.typesystem.types.ClassType;
import org.apache.hadoop.metadata.typesystem.types.DataTypes;
import org.apache.hadoop.metadata.typesystem.types.HierarchicalTypeDefinition;
imp... | 0 |
public static Map<String, PropertyDescriptor> getPropertyDescriptors( Class<?> targetClass )
Map<String, PropertyDescriptor> result;
if ( ( result = _propertyDescriptorCache.get( targetClass ) ) == null )
result = new HashMap<String, PropertyDescriptor>( 101 );
return get... | 0 |
import org.apache.beam.sdk.extensions.gcp.auth.TestCredential; | 0 |
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ServiceComponentHostResponse that =
(ServiceComponentHostResponse) o;
if (clusterName != null ?
!clusterName.equals(that.clusterName) : that.clusterNa... | 0 |
import org.apache.accumulo.core.clientImpl.TabletLocator; | 0 |
for (String type : emails.keySet()) {
for (Address addr : addresses) { | 0 |
* @param <K> the type of the keys in this map
* @param <V> the type of the values in this map | 0 |
TimeValue.ofMilliseconds(500), TimeValue.ofSeconds(3));
TimeValue.ofMilliseconds(500), null); | 0 |
package org.apache.accumulo.shell.commands;
import org.apache.accumulo.shell.Shell;
import org.apache.accumulo.shell.Shell.Command; | 0 |
List<String> list = new ArrayList<>();
Collection<Object> props = new ArrayList<>();
props = new ArrayList<>();
Map<String, Lookup> prefixLookups = new HashMap<>();
List<Lookup> defLookups = new ArrayList<>(); | 0 |
if (object != null && !definition.getDatatype().getTypeClass().isAssignableFrom(object.getClass())) | 0 |
import org.apache.cocoon.forms.validation.ValidationErrorAware;
import org.apache.cocoon.forms.validation.ValidationError;
* @version $Id: BooleanField.java,v 1.11 2004/07/02 09:17:08 jeremy Exp $
public class BooleanField extends AbstractWidget implements ValidationErrorAware, ValueChangedListenerEnabled {
prot... | 0 |
private String roundtrip( final String msg ) throws IOException {
private String roundtrip( final String msg, final boolean ensure ) throws IOException { | 0 |
if (!this.blueprints.containsKey(blueprintName)) {
String msg = "Blueprint ["+blueprintName+"] is not defined";
throw new WebApplicationException ((new ExceptionResponse(msg, Response.Status.BAD_REQUEST)).get());
}
if (!this.blueprints.get(blueprintName).containsKey... | 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 cz.seznam.euphoria.core.client.operator.InnerJoin;
InnerJoin.of(left, right)
.using((Pair<String, Long> l, Pair<String, Long> r,
Collector<Triple<TimeInterval, String, String>> c) -> | 0 |
import org.apache.accumulo.core.metadata.MetadataTable; | 1 |
import org.apache.commons.configuration.event.ConfigurationEvent;
import org.apache.commons.configuration.event.EventListener;
@SuppressWarnings("unchecked")
EventListener<ConfigurationEvent> cl = EasyMock.createMock(EventListener.class);
source.addEventListener(ConfigurationEvent.ANY, cl);
... | 0 |
Object sm = System.getSecurityManager();
if (sm != null)
{
try
{
((SecurityManager) sm).checkPermission(new AdminPermission(this,
AdminPermission.RESOURCE));
}
catch (Exception e)
{
r... | 1 |
this.doClose();
this.doClose(); | 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 |
* limitations under the License. | 0 |
package org.apache.ambari.api.handlers;
import org.apache.ambari.api.query.Query;
import org.apache.ambari.api.resource.ResourceDefinition;
import org.apache.ambari.api.services.Request;
import org.apache.ambari.api.services.Result;
import org.junit.Test;
import java.util.HashSet;
import java.util.Set;
import stati... | 1 |
import org.apache.ambari.server.orm.dao.PrivilegeDAO;
* Data access object used to obtain privilege entities.
protected static PrivilegeDAO privilegeDAO;
* @param privilegeDAO
ViewInstanceDAO viewInstanceDAO, PrivilegeDAO privilegeDAO) {
GroupPrivilegeResourceProvider.privilegeDAO ... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/BeanAttributeIterator.java,v 1.5 2003/01/11 05:41:24 dmitri Exp $
* $Revision: 1.5 $
* $Date: 2003/01/11 05:41:24 $
* @version $Revision: 1.5 $ $Date: 2003/01/11 05:41:24 $... | 1 |
public static void init(HeartBeatHandler instance) { | 0 |
import com.google.api.services.pubsub.Pubsub;
import com.google.api.services.pubsub.model.PublishRequest;
import com.google.api.services.pubsub.model.PubsubMessage;
import com.google.common.collect.ImmutableMap;
import java.io.IOException;
import java.util.Arrays; | 0 |
public int consumeContent(final ContentDecoder decoder) throws IOException {
return -1;
this.mutex.notifyAll();
if (totalRead > 0) {
return totalRead;
} else {
if (this.endOfStream) {
return -1;
... | 0 |
package org.apache.beam.sdk.util; | 0 |
import org.apache.xml.security.algorithms.JCEMapper;
import org.apache.xml.security.algorithms.SignatureAlgorithmSpi;
import org.apache.xml.security.signature.XMLSignatureException;
import org.apache.xml.security.utils.Base64;
import org.apache.xml.security.utils.Constants;
return SignatureDSA._URI;
JCE... | 0 |
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javax.annotation.Nonnull;
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.Iterators;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.co... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/bean/src/java/org/apache/commons/jelly/tags/bean/BeanPropertyTag.java,v 1.5 2003/01/25 23:34:42 morgand Exp $
* $Revision: 1.5 $
* $Date: 2003/01/25 23:34:42 $
* $Id: BeanPropertyTag.java,v 1.5 2003/01/25 23:34:4... | 0 |
@SuppressWarnings("checkstyle:MethodCount") | 0 |
import org.apache.cocoon.portal.event.CopletInstanceEvent;
* @version CVS $Id: URICopletAdapter.java,v 1.12 2004/02/09 12:14:20 cziegeler Exp $
if ( uri == null ) {
throw new SAXException("No URI for coplet data "+coplet.getCopletData().getId()+" found.");
}
List list = ... | 0 |
* @version $Id: TestBaseConfiguration.java,v 1.2 2003/12/24 14:28:21 epugh Exp $
* now add another and get a List
assertTrue("This returns array", ( eprop.getList("number")
instanceof java.util.List ) );
* when we access a list valued property
assertTrue("This returns... | 0 |
return new SessionFactory(this); | 0 |
repositoryVersion.setResolved(true);
repositoryVersion = repositoryVersionDAO.merge(repositoryVersion); | 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 |
DO_NOT_INJECT_INVALID_DOCS | 0 |
expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn(
expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn(
expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn(
expect(am.getTasks(EasyMock.<List<Long>>anyObject())).andReturn(
expect(am.getTasks(EasyMock.<List<Long>>... | 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 |
private int _autoGeneratedKeys = 1;
public TesterPreparedStatement(final Connection conn, final String sql, final int autoGeneratedKeys) {
super(conn);
_sql = sql;
_autoGeneratedKeys = autoGeneratedKeys;
try {
_catalog = conn.getCatalog();
} catch (final SQLEx... | 0 |
final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class ); | 0 |
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/tags/util/Attic/UtilTagLibrary.java,v 1.6 2002/11/13 12:59:35 jstrachan Exp $
* $Revision: 1.6 $
* $Date: 2002/11/13 12:59:35 $
* $Id: UtilTagLibrary.java,v 1.6 2002/11/13 12:59:35 jstracha... | 0 |
import org.apache.accumulo.core.client.security.tokens.AuthenticationToken;
import org.apache.accumulo.core.client.security.tokens.PasswordToken; | 1 |
opTimer.stop("Found master at " + (loc == null ? null : new String(loc, Constants.UTF8)) + " in %DURATION%");
return Collections.singletonList(new String(loc, Constants.UTF8));
opTimer.stop("Found root tablet at " + (loc == null ? null : new String(loc, Constants.UTF8)) + " in %DURATION%");
return new S... | 0 |
(BeamFnApi.Elements t) -> {
inboundServerValues.add(t);
waitForInboundServerValuesCompletion.countDown();
})
.build(); | 0 |
import org.apache.accumulo.core.security.Credentials;
boolean hasPermission = WalkingSecurity.get(state).canAskAboutUser(new Credentials(principal, token).toThrift(state.getInstance()), target); | 0 |
import org.apache.accumulo.core.conf.ClientProperty;
cfg.setClientProperty(ClientProperty.INSTANCE_ZOOKEEPERS_TIMEOUT, "15s"); | 0 |
return new Timeout(scalingFactor * 10 * 60 * 1000); | 0 |
properties.setProperty("maxWaitMillis", "500"); | 0 |
final RelProtoDataType protoRowType =
a0 ->
a0.builder()
.add("col_tinyint", SqlTypeName.TINYINT)
.add("col_smallint", SqlTypeName.SMALLINT)
.add("col_integer", SqlTypeName.INTEGER)
.add("col_bigint", SqlTypeName.BIGINT)
... | 0 |
for (final String confPid : confPids )
boolean created = false;
if ( !created )
{
return false;
... | 0 |
"/org/apache/beam/model/fnexecution/v1/standard_coders.yaml"; | 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 |
Set<Resource> setResources = new HashSet<>();
Set<Resource> setResources = new HashSet<>(); | 1 |
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;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Lists;
import org.apache.beam.vendor.guava.v20_0.com.google.common.io.Files;
import org.ap... | 0 |
import java.awt.Font;
import org.apache.batik.util.SwingInitializer;
Font font = new Font("Dialog", Font.PLAIN, 10);
SwingInitializer.swingDefaultsFontInit(font);
| 0 |
@Override
public String toString() {
return "RepositoryRequest [repoId=" + repoId + ", baseUrl=" + baseUrl
+ ", verify=" + verify + ", getOsType()=" + getOsType()
+ ", getRepositoryVersionId()=" + getRepositoryVersionId()
+ ", getStackVersion()=" + getStackVersion() + ", getStackName()="... | 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 |
* @version $Revision: 1.4 $ $Date: 2004/02/27 00:25:14 $
public void testClone() {
CaseInsensitiveMap map = new CaseInsensitiveMap(10);
map.put("1", "1");
Map cloned = (Map) map.clone();
assertEquals(map.size(), cloned.size());
assertSame(map.get("1"), cloned.get("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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/CollectionDoubleCollection.java,v 1.2 2003/08/31 17:21:17 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this... | 0 |
* @version $Id: Action.java,v 1.3 2004/03/09 13:08:45 cziegeler Exp $
contentHandler.startElement(Constants.INSTANCE_NS, ACTION_EL, Constants.INSTANCE_PREFIX_COLON + ACTION_EL, buttonAttrs);
contentHandler.endElement(Constants.INSTANCE_NS, ACTION_EL, Constants.INSTANCE_PREFIX_COLON + ACTION_EL); | 0 |
private List<Predicate> predicates = new LinkedList<>();
addPredicate(new EqualsPredicate<>(propertyId, value));
addPredicate(new GreaterPredicate<>(propertyId, value));
addPredicate(new GreaterEqualsPredicate<>(propertyId, value));
addPredicate(new LessPredicate<>(propertyId, value));
a... | 1 |
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
private final Logger connLog = LoggerFactory.getLogger("org.apache.hc.core5.http.connection"); | 0 |
package org.apache.aurora.scheduler.offers;
import org.apache.aurora.scheduler.offers.OfferManager.OfferManagerImpl;
import org.apache.aurora.scheduler.offers.OfferManager.OfferReturnDelay; | 0 |
import org.junit.Assert;
import org.junit.Test;
public class UncategorizedTest extends org.junit.Assert { | 0 |
protected boolean isCorrectClass(final String className) {
protected InstanceKeyDataSource getNewInstance(final Reference ref) { | 0 |
public void encode(PubsubMessage value, OutputStream outStream)
throws IOException {
encode(value, outStream, Context.NESTED);
}
@Override
public PubsubMessage decode(InputStream inStream) throws IOException {
return decode(inStream, Context.NESTED);
}
@Override | 0 |
private GrpcFnServer(Server server, ServiceT service, ApiServiceDescriptor apiServiceDescriptor) { | 0 |
public boolean consistentWithEquals() {
return true;
}
@Override | 0 |
void onInit(Config config, SamzaPipelineOptions 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... | 0 |
* {@inheritDoc}
* {@inheritDoc} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.