Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
m_cluster.createClusterVersion(stackId.getStackName(), stackId.getStackVersion(), "admin", RepositoryVersionState.UPGRADING); | 0 |
Copyright 2001-2003,2005-2006 The Apache Software Foundation
call("initEvent", new Object[] { t,
b ? Boolean.TRUE : Boolean.FALSE,
c ? Boolean.TRUE : Boolean.FALSE });
call("initEventNS", new Object[] { ns, t,
b ? Boolean.TRUE : Boo... | 0 |
import com.google.common.collect.ImmutableList;
BigQueryTableRowIterator iterator;
iterator =
BigQueryTableRowIterator.fromQuery(
transform.query, options.getProject(), client, transform.getFlattenResults());
iterator = BigQueryTableRowIterator.fromTable(transform.table, client)... | 0 |
import javax.naming.directory.Attribute;
import org.springframework.ldap.core.DistinguishedName;
DistinguishedName basePath = new DistinguishedName(basePathString);
expect(ldapCtxSource.getBaseLdapPath())
DistinguishedName basePath = new DistinguishedName(basePathString);
expect(ldapCtxSource.getBaseLda... | 0 |
* Authentication credentials required to respond to a authentication
*
* Creates a new InvalidCredentialsException with a <tt>null</tt> detail message.
*
* | 0 |
import org.apache.accumulo.core.client.impl.Table;
Table.ID tableId = new Table.ID("1");
Key k = new Key(new Text("foo"), StatusSection.NAME, new Text(tableId.getUtf8()));
Table.ID tableId = new Table.ID("1");
Key k = new Key(new Text("foo"), StatusSection.NAME, new Text(tableId.getUtf8())); | 1 |
SourceUtil.toSAX(serviceManager, source, null, handler); | 0 |
import org.apache.accumulo.server.master.balancer.ChaoticLoadBalancer; | 1 |
import org.osgi.util.promise.Promise;
Promise<Void> enableComponents( boolean async );
Promise<Void> disableComponents( boolean async ); | 0 |
private static final int DEFAULT_CONNECTION_TIMEOUT = 0;
private static final int DEFAULT_SO_TIMEOUT = 0;
/**
* The connection timeout.
*
* @param opts The FileSystem options.
* @param connectionTimeout The connection timeout.
* @since 2.1
*/
public void setConn... | 0 |
import java.util.UUID;
Key key = DatastoreHelper.makeKey(ancestorKey, kind, UUID.randomUUID().toString()).build();
.apply(DatastoreIO.writeTo(options.getDataset())); | 0 |
import java.util.Collection;
/**
* expectedSize is the number of elements that the Sample should contain. expected is the set
* of elements that the sample may contain.
*/
VerifyCorrectSample(int expectedSize, Collection<T> expected) {
this.expectedValues = (T[]) expected.toArra... | 0 |
* @version $Id: JNDIConfiguration.java,v 1.6 2004/02/24 13:08:03 epugh Exp $
return defaultValue; | 0 |
// 'pointer-events'
node.setPointerEventType(CSSUtilities.convertPointerEvents(e)); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBoundedFifoBuffer.java,v 1.5 2003/04/26 15:12:28 scolebourne Exp $
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* Test cases for BoundedFifoBuffer.
... | 0 |
* Default implementation of a server-side HTTP connection.
public class DefaultHttpServerConnection extends SocketHttpServerConnection {
super.bind(socket, params); | 0 |
* @version $Revision$ $Date$ | 0 |
static class PrepareStatementFromTestRow implements JdbcIO.PreparedStatementSetter<TestRow> { | 0 |
public void addRequirement(String s) throws BundleException;
public void removeRequirement() throws BundleException;
public void addCapability() throws BundleException;
public void removeCapability() throws BundleException; | 0 |
import com.google.api.client.repackaged.com.google.common.base.Joiner;
import com.google.common.base.Charsets;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collections;
import java.util.List;
| 0 |
import org.apache.ambari.server.ldap.domain.AmbariLdapConfigurationKeys;
properties.setProperty(AmbariLdapConfigurationKeys.USER_SEARCH_BASE.key(), "dc=ambari,dc=the apache,dc=org");
properties.setProperty(AmbariLdapConfigurationKeys.GROUP_BASE.key(), "ou=the groups,dc=ambari,dc=the apache,dc=org"); | 0 |
import java.nio.file.Path;
import org.apache.sshd.common.util.ValidateUtils;
import org.apache.sshd.git.GitLocationResolver;
* @param rootDirResolver Resolver for GIT root directory
public GitPgmCommand(GitLocationResolver rootDirResolver, String command, ExecutorService executorService, boolean shutdownOnExit... | 0 |
* @author <a href="mailto:bluetkemeier@s-und-n.de">Björn Lütkemeier</a>
* @version CVS $Id: CopletInstanceDataManager.java,v 1.4 2003/07/10 13:16:59 cziegeler Exp $ | 0 |
store.put(Constants.ZROOT_TABLET_FUTURE_LOCATION, value.getBytes());
store.put(Constants.ZROOT_TABLET_LOCATION, value.getBytes());
store.put(Constants.ZROOT_TABLET_LAST_LOCATION, value.getBytes()); | 0 |
* Binary heap implementation of {@link Buffer} that provides for
* @version $Id$ | 0 |
import org.apache.sshd.util.Utils;
port = Utils.getFreePort(); | 0 |
List<XMLSecurityConstants.Action> actions = new ArrayList<>();
List<XMLSecurityConstants.Action> actions = new ArrayList<>();
List<XMLSecurityConstants.Action> actions = new ArrayList<>();
List<XMLSecurityConstants.Action> actions = new ArrayList<>();
List<XMLSecurityConstants.Ac... | 0 |
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import java.security.cert.X509Certificate;
import java.security.spec.AlgorithmParameterSpec;
import java.security.sp... | 0 |
HeapByteBufferAllocator.INSTANCE, params);
HeapByteBufferAllocator.INSTANCE); | 0 |
import org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException;
public ExportTable(String namespaceId, String tableName, String tableId, String exportDir) throws ThriftTableOperationException {
tableInfo.namespaceID = namespaceId; | 1 |
*/
public class PUTFIELD extends FieldInstruction implements PopInstruction, ExceptionThrower {
/**
* Empty constructor needed for the Class.newInstance() statement in
* Instruction.readInstruction(). Not to be used otherwise.
*/
PUTFIELD() {
}
public PUTFIELD(int index) {
super... | 0 |
package org.apache.felix.karaf.features.internal;
import org.apache.felix.karaf.features.Repository;
import org.apache.felix.karaf.features.Feature; | 0 |
try (final OutputStream outstream = createContentOutputStream(len, this.outbuffer, socketHolder.getOutputStream(), entity.getTrailers())) {
entity.writeTo(outstream);
} | 0 |
package com.twitter.mesos.updater;
import com.google.inject.Inject;
import com.twitter.mesos.gen.MesosSchedulerManager.Iface;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Coordinates between the scheduler and the update logic to perform an update.
*
* @author wfarner
*/
public class Coo... | 0 |
import java.util.ArrayList;
import org.apache.felix.http.base.internal.AbstractActivator;
import org.apache.felix.http.base.internal.logger.SystemLogger;
import org.apache.felix.http.whiteboard.internal.manager.ExtenderManager;
import org.osgi.util.tracker.ServiceTracker;
private final ArrayList<ServiceTracker<?, ... | 0 |
package org.apache.commons.digester3;
/*
* 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 Licens... | 0 |
ConstantUtf8 c = (ConstantUtf8) super.getConstantPool().getConstant(sourcefile_index, | 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.Objects;
return Objects.equals(id, that.id);
return Objects.hashCode(id); | 0 |
import org.apache.atlas.kafka.AtlasKafkaMessage;
import org.apache.kafka.common.TopicPartition;
List<NotificationConsumer<HookNotificationMessage>> notificationConsumers =
for (final NotificationConsumer<HookNotificationMessage> consumer : notificationConsumers) {
private final NotificationConsu... | 0 |
static class SizedCountWindow extends Window<SizedCountWindow> {
@Override
public int compareTo(SizedCountWindow o) {
return Integer.compare(size, o.size);
} | 0 |
* @version $Id$ | 0 |
p2.put("int", 4);
p2.put("boolean", false);
p2.put("string", "bar");
fooProvider2 = ipojoHelper.createComponentInstance(type, p2);
assertEquals("Check longProp equality (1)", boolProp, false);
assertEquals("Check strProp equality (1)", strProp, "foo");
assertEqual... | 0 |
import java.lang.management.ManagementFactory;
String procName = ManagementFactory.getRuntimeMXBean().getName();
File cacheDir = new File(System.getProperty("java.io.tmpdir"), "accumulo-vfs-cache-" + procName + "-" + System.getProperty("user.name", "nouser"));
if (!cacheDirPath.isEmpty())
| 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.accumulo.core.client;
import org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException;
/**
* Thrown when the table specified already exists, and it was expected that it didn't
*/
public class TableExistsException extends Exception
{
/**
* Exception to throw if an operati... | 1 |
import java.util.ArrayList;
import java.util.List;
* Collection of File paths that failed to delete.
*/
final List<String> deleteFailures = Collections.synchronizedList(new ArrayList<String>());
/**
* Return the file paths that failed to delete.
*
* @return the file paths that failed to... | 0 |
import org.apache.http.HttpResponse;
public class DefaultResponseParser extends AbstractMessageParser<HttpResponse> {
protected HttpResponse parseHead( | 0 |
ThrowingProviderBinder.create(binder()).bind(GraphProvider.class, TitanGraph.class).to(TitanGraphProvider.class)
Multibinder<TypesChangeListener> typesChangeListenerBinder =
Multibinder.newSetBinder(binder(), TypesChangeListener.class); | 0 |
* $Revision: 1.11 $
* $Date: 2003/12/26 15:43:55 $
* @author Dirk Verbeeck
* @version $Revision: 1.11 $ $Date: 2003/12/26 15:43:55 $
public void activateObject(Object key, Object obj) throws Exception { | 0 |
import static org.junit.Assert.assertTrue;
public class JSRForbiddenRefCountTest { | 0 |
import org.junit.Rule;
import org.junit.rules.TemporaryFolder;
private Path srcDir;
@Rule
public TemporaryFolder tempFolder = new TemporaryFolder();
srcDir = tempFolder.newFolder("BFSTemp").toPath();
destDir = tempFolder.newFolder("BFDTemp").toPath();
try (FileInputStream fileInputStream = new FileInp... | 0 |
public static final Set<BuiltinDigests> VALUES =
Collections.unmodifiableSet(EnumSet.allOf(BuiltinDigests.class));
BuiltinDigests(String factoryName, String algorithm, int blockSize) {
this.factoryName = factoryName;
this.algorithm = algorithm;
this.blockSize = blockSize;
... | 1 |
repository.put(RepositoryResourceProvider.REPOSITORY_DISTRIBUTION_PROPERTY_ID, "testDist");
repository.put(RepositoryResourceProvider.REPOSITORY_COMPONENTS_PROPERTY_ID, "testComponentName");
repository2.put(RepositoryResourceProvider.REPOSITORY_DISTRIBUTION_PROPERTY_ID, "testDist6");
repository2.put(Rep... | 0 |
import org.apache.commons.lang.StringUtils;
@Test
public void testGetServicePackageFolder() {
StackInfo stack = stackManager.getStack("HDP", "0.1");
assertNotNull(stack);
assertEquals("HDP", stack.getName());
assertEquals("0.1", stack.getVersion());
ServiceInfo hdfsService1 = stack.getService("... | 0 |
@SuppressWarnings("serial") | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
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.common.collect.Sets; | 0 |
import java.io.IOException;
import java.io.Serializable;
import java.util.Map;
import org.apache.cocoon.components.sax.XMLByteStreamCompiler;
import org.apache.cocoon.components.sax.XMLByteStreamInterpreter;
XMLByteStreamCompiler serializer = null;
XMLByteStreamInterpreter deserializer ... | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/text/ParsePosition.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... | 0 |
port = Utils.getFreePort(); | 0 |
import org.apache.accumulo.core.client.impl.AuthenticationTokenIdentifier; | 1 |
import org.apache.avalon.framework.logger.AbstractLogEnabled;
public class DefaultFormManager extends AbstractLogEnabled implements FormManager, ThreadSafe, Composable, Disposable, Configurable {
getLogger().warn("No Woody widgets found in FormManager configuration.");
throw new Configuratio... | 0 |
this.resolver = resolver; | 0 |
LoggerFactory.getLogger(ZooReservation.class).debug("Node does not exist {}", 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... | 0 |
implements org.apache.batik.dom.dom3.DocumentFragment {
| 0 |
ComponentDescriptionDTO[] result = scr.getComponentDescriptionDTOs().toArray(new ComponentDescriptionDTO[0]);
Arrays.sort(result, new Comparator<ComponentDescriptionDTO>() {
@Override
public int compare(ComponentDescriptionDTO c1, ComponentDescriptionDTO c2) {
ret... | 0 |
package org.apache.hc.core5.ssl;
import org.apache.hc.core5.annotation.NotThreadSafe;
import org.apache.hc.core5.util.Args; | 1 |
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException,
TableNotFoundException, IOException, ShellCommandException {
throw new ShellCommandException(ErrorCode.INITIALIZATION_FAILURE, "Unable to load " + classname + "... | 0 |
import org.apache.commons.lang.StringUtils;
if(StringUtils.isBlank(jsonString)) { | 0 |
return Date.class;
return TYPE_DATETIME;
return clock.getCalendar().getTime(); | 0 |
import org.apache.http.nio.util.ByteBufferAllocator;
final ByteBufferAllocator allocator,
super(session, requestFactory, allocator, params); | 0 |
System.out.println("test"); | 0 |
bind(JobUpdater.class).to(JobUpdaterImpl.class);
bind(JobUpdaterImpl.class).in(Singleton.class);
| 0 |
LOG.info("Published " + metrics.size() + " metrics."); | 0 |
package aQute.lib.osgi;
import java.io.*;
public class JarResource implements Resource {
Jar jar;
String extra;
public JarResource(Jar jar ) {
this.jar = jar;
}
public String getExtra() {
return extra;
}
public long lastModified() {
return jar.lastModified();
}
public void write(OutputStream ou... | 0 |
private static final String __parms = "\\d{1,3},\\d{1,3},\\d{1,3},\\d{1,3},\\d{1,3},\\d{1,3}";
private static final java.util.regex.Pattern __parms_pat; | 0 |
CSSStyleDeclaration decl = CSSUtilities.getComputedStyle(element);
CSSStyleDeclaration decl = CSSUtilities.getComputedStyle(element); | 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 |
public final class Int2IntFunction {
private Int2IntFunction() {
throw new UnsupportedOperationException("No instance");
public static IntUnaryOperator sub(int delta) {
public static IntUnaryOperator add(int delta) {
return IntUnaryOperator.identity();
public static IntUnaryOperator ... | 0 |
public void testNullInput() throws Exception {
BCodec bcodec = new BCodec();
assertNull(bcodec.doDecoding(null));
assertNull(bcodec.doEncoding(null));
}
bcodec.decode("=?NONSENSE?B?Hello there!?="); | 0 |
KV.of("foo", TimestampedValue.of(0, new Instant(0))),
KV.of("foo", TimestampedValue.of(0, new Instant(0))), new Instant(100)), | 0 |
* The DefaultAttributeValueProducer for x.
*/
protected final static DefaultAttributeValueProducer X_DEFAULT_VALUE_PRODUCER =
new DefaultAttributeValueProducer() {
public String getDefaultAttributeValue() {
return SVG_DEFAULT_VALUE_FE_POINT_LIGHT_X;
... | 0 |
import org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker;
TupleTagList.of(new TupleTag<byte[]>() {}).and(new TupleTag<Integer>() {})),
ParDo.of(new SplittableDropElementsFn())
.withOutputTags(
new TupleTag<Void>(),
TupleTagList.empty()));
pr... | 0 |
import java.util.Collections;
import org.apache.accumulo.core.client.Connector;
import org.apache.accumulo.minicluster.MiniAccumuloConfig;
import org.junit.Test;
public class LargeRowIT extends MacTest {
@Override
public void configure(MiniAccumuloConfig cfg) {
cfg.setSiteConfig(Collections.singletonMap(Propert... | 0 |
super(Resource.Type.UpgradeGroup, PROPERTY_IDS, KEY_PROPERTY_IDS, controller); | 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 |
String zPath = ZooUtil.getRoot(getConnector().getInstanceID()) + Constants.ZTSERVERS + "/"
getConnector().info().getZooKeepersSessionTimeOut()), zPath); | 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 |
import org.apache.beam.runners.core.metrics.ExecutionStateTracker;
import org.apache.beam.runners.core.metrics.ExecutionStateTracker.ExecutionState; | 0 |
final TabletLocator locator = TabletLocator.getLocator(context, tableId); | 0 |
import org.apache.commons.net.ftp.parser.UnixFTPEntryParser;
* As of version 1.2, this class merely extends UnixFTPEntryParser.
* It will be removed in version 2.0.
public final class DefaultFTPFileListParser extends UnixFTPEntryParser | 0 |
f.evaluate(Result.FAILED_TERMINATED, FAILED);
f.evaluateCurrentState(Result.FAILED_STUCK);
f.evaluateCurrentState(Result.FAILED_STUCK); | 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 ap... | 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 |
* @version CVS $Id: Transport.java,v 1.3 2003/04/17 20:27:03 haul Exp $
public static void send(Message message) throws MessagingException { | 0 |
package org.apache.felix.ipojo.test.scenarios.service.dependency.filter; | 0 |
URL url = locateIncludeFile(locator.getBasePath(), fileName);
url = locateIncludeFile(baseURL.toString(), fileName);
/**
* Tries to obtain the URL of an include file using the specified (optional)
* base path and file name.
*
* @param basePath the base path
* @param... | 0 |
if (name.equals("<clinit>")) {
return new InnerClassAssignedToStaticFieldDetector();
}
/**
* Class required to detect inner classes assigned to static field and thus must not be manipulated (FELIX-4347).
* If an inner class is assigned to a static field, it must not be manipu... | 0 |
import static org.hamcrest.Matchers.is;
import org.apache.beam.sdk.values.PCollection;
public void testWindowIntoAccumulatingLatenessNoTrigger() {
FixedWindows fixed = FixedWindows.of(Duration.standardMinutes(10));
WindowingStrategy<?, ?> strategy =
pipeline
.apply(Create.of("hello", "worl... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.