Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
public URL locate(final FileSystem fileSystem, final FileLocator locator)
0
/** * Copyright 2016 Seznam a.s. * * 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
import java.util.Collection; import java.util.EnumSet; Collection<ClientSession.ClientSessionEvent> mask = EnumSet.of(ClientSession.ClientSessionEvent.CLOSED, ClientSession.ClientSessionEvent.WAIT_AUTH); Collection<ClientSession.ClientSessionEvent> result = s.wait...
0
private final AtlasGraph graph; private GraphToTypedInstanceMapper graphToInstanceMapper; this.graph = AtlasGraphProvider.getGraphInstance(); graphToInstanceMapper = new GraphToTypedInstanceMapper(graph); AtlasGraphQuery query = graph.query().has(Constants.ENTITY_TYPE_PROPERTY_KEY, enti...
0
import org.apache.accumulo.core.client.Accumulo; try (AccumuloClient c = Accumulo.newClient().from(getClientProps()).build()) { try (AccumuloClient c = Accumulo.newClient().from(getClientProps()).build()) { try (AccumuloClient accumuloClient = Accumulo.newClient().from(getClientProps()).build()) {
0
public void processElement(ProcessContext c) { X input = c.element(); c.output(typedTag, input);
0
public synchronized void initiateMajorCompaction(MajorCompactionReason reason) { return;
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 applica...
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/bag/TestTransformedSortedBag.java,v 1.4 2003/12/05 20:22:12 scolebourne Exp $ * @version $Revision: 1.4 $ $Date: 2003/12/05 20:22:12 $
0
import org.apache.sshd.common.util.SecurityUtils; protected int min = SecurityUtils.MIN_DHGEX_KEY_SIZE; protected int prf; protected int max; this.max = SecurityUtils.getMaxDHGroupExchangeKeySize(); this.prf = Math.min(SecurityUtils.PREFERRED_DHGEX_KEY_SIZE, max); Session session = g...
0
0, new InetSocketAddress("127.0.0.1", PortAssignment.unique()), new InetSocketAddress("127.0.0.1", PortAssignment.unique()), new InetSocketAddress("127.0.0.1", PortAssignment.unique()))); 1, new InetSocketAddress("127.0.0.1", PortAssignment.unique()), ...
0
import org.joda.time.Instant; @Override public Instant getOutputTime(Instant inputTimestamp, IntervalWindow window) { return inputTimestamp; }
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/comparators/ComparableComparator.java,v 1.11 2003/08/31 14:29:53 scolebourne Exp $ * @version $Revision: 1.11 $ $Date: 2003/08/31 14:29:53 $ * @author Henri Yandell
0
org.junit.Assume.assumeTrue(Security.getProvider("BC") != null); org.junit.Assume.assumeTrue(Security.getProvider("BC") != null); org.junit.Assume.assumeTrue(Security.getProvider("BC") != null);
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
builder.addPropertyReference("bundleContext", "bundleContext"); bd.addPropertyReference("bundleContext", "bundleContext");
0
* Copyright (c) 2002 The Apache Software Foundation. All rights
0
public static ReadPayload toProto(Unbounded<?> read, SdkComponents components) {
1
JSONArray results = atlasClient.search(query, 10, 0); JSONArray results = atlasClient.search(query, 10, 0);
0
import org.apache.http.client.utils.DateUtils;
0
* @version $Id$
0
public class RepositoryVersionResourceDefinition extends BaseResourceDefinition {
0
* The thread pool size for spring messaging. */ @Markdown(description = "Thread pool size for spring messaging") public static final ConfigurationProperty<Integer> MESSAGING_THREAD_POOL_SIZE = new ConfigurationProperty<>( "messaging.threadpool.size", 1); /** * @return max thread pool size for clie...
1
this.httpProcessor.process(request, request.getEntity(), context); this.httpProcessor.process(response, response.getEntity(), context);
0
AclSupportedParser.INSTANCE,
0
final StringTokenizer st = new StringTokenizer(subjectPrincipal, ",+");
0
import org.apache.sshd.common.util.AbstractLoggingBean; import org.apache.sshd.common.util.KeyUtils; /** * Returns the same constant result {@code true/false} regardless */ public static abstract class StaticPublickeyAuthenticator extends AbstractLoggingBean implements PublickeyAuthenticator { ...
0
put(AmbariUpdateEvent.Type.AGENT_ACTIONS, "/agent_actions");
0
if (!message.isPresent()) { message = Optional.of(MEMORY_LIMIT_DISPLAY); } if (!message.isPresent()) { message = Optional.of(DISK_LIMIT_DISPLAY); }
0
* @version $Revision: 1.4 $ $Date: 2004/06/02 22:12:14 $ public String getCompatibilityVersion() { return "3.1"; } // public void testCreate() throws Exception { // resetEmpty(); // writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnmodifiableS...
0
assertTrue(fileCopy.delete());
0
* <p>Note that there is no input typing interface. That is on purpose since all the transformations * are chained together and type of input(s) equals to types of previous transform output(s). Source * transforms needs to know which type of elements are producing explicitly. /** Returns {@link TypeDescriptor} of t...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.A...
0
sshd.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory()));
0
import org.apache.felix.karaf.gshell.console.OsgiCommandSupport; System.out.println("PackageAdmin service is unavailable."); System.out.println("PackageAdmin service is unavailable.");
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
/* * 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
public final String doubleString(double value) { return generatorContext.doubleString(value);
0
SimpleNode n = (SimpleNode)children[i]; if (n != null) { n.dump(prefix + " "); }
0
LogEvents[] expectedOrder = {LogEvents.OPEN, LogEvents.DEFINE_TABLET, LogEvents.MUTATION, LogEvents.MANY_MUTATIONS, LogEvents.COMPACTION_START, LogEvents.COMPACTION_FINISH};
0
import com.google.common.cache.Cache; private Cache<String,Long> fileLenCache; Cache<String,Long> fileLenCache, BlockCache dataCache, BlockCache indexCache) { this.fileLenCache = fileLenCache; .withBlockCache(dataCache, indexCache).withFileLenCache(fileLenCache).build();
0
ReentrantLock writeLock) { writeLock); ReentrantLock writeLock) {
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.felix.gogo.commands.Command; @Command(scope = "admin", name = "start", description = "Start an existing instance.")
0
/* ==================================================================== * Copyright (c) 2002-2004 The Apache Software Foundation. All rights * @version $Revision: 1.16 $ $Date: 2004/01/14 21:43:04 $
0
Bundle bundle = targetPackage.getBundle(bundleInfo.getSymbolicName());
0
return this.lineParser; public final void setLineParser(final LineParser parser) { this.lineParser = parser; return this.lineFormatter; public final void setLineFormatter(final LineFormatter formatter) { this.lineFormatter = formatter;
0
MAINTENANCE_MODE, /** * Received a final command report for some action */ ACTION_EXECUTION_FINISHED
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
public Password password = new Password("secret");
0
import java.util.Optional;
0
String base = System.getProperty("basedir") == null ? "./": System.getProperty("basedir"); (base + fs + "data" + fs + "test.jks");
0
/** * @todo temporary disbled test case until I can figure out how to get * it to work with commons-discovery */ /* */
0
log.debug("Create URI \"" + algorithmURI + "\" class \"" log.debug("The NodeList is " + contextNodes); "signature.Transform.UnknownTransform", exArgs); transformClassHash.put } catch (ClassNotFoundException e) { result = transformSpi.enginePerformT...
1
List<String> files = new ArrayList<>();
1
import org.apache.hc.core5.http.WritableByteChannelMock;
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/jdom/JDOMAttributePointer.java,v 1.4 2002/11/26 01:33:34 dmitri Exp $ * $Revision: 1.4 $ * $Date: 2002/11/26 01:33:34 $ * @version $Revision: 1.4 $ $Date: 2002/11/26 01:33:34 $ ...
0
/* * $Id$ * 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...
0
* Parent collector. private MetadataCollector m_collector; * @param collector : parent collector. public MethodCollector(String name, MetadataCollector collector) { m_collector = collector; if (CustomAnnotationVisitor.isCustomAnnotation(arg0)) { Element elem = Cust...
0
ClientContext context = new ClientContext(instance, credentials, ClientConfiguration.create());
0
import static com.google.common.base.Preconditions.checkArgument; import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.coders.KvCoder; import org.apache.beam.sdk.util.KeyedWorkItemCoder; checkArgument(input.getCoder() instanceof KvCoder, "Expected input coder to be KvCoder, but was %s", ...
0
System.out.println("Classname " + (args.length > 2 ? args[2] : "in JAR manifest") + " not found. Please make sure you use the wholly qualified package name."); @Override System.out .println("accumulo init | master | tserver | monitor | shell | admin | gc | classpath | rfile-...
0
* Used {@code retryCount</code> and <code>requestSentRetryEnabled} to determine * @return {@code true} if this handler will retry methods that have * successfully sent their request, {@code false} otherwise
0
import org.apache.ambari.server.events.publishers.STOMPUpdatePublisher; private STOMPUpdatePublisher STOMPUpdatePublisher; STOMPUpdatePublisher.publish(new AlertGroupsUpdateEvent(alertGroupUpdates, UpdateEventType.UPDATE));
1
import org.osgi.util.converter.Converter;
0
package org.apache.hc.core5.http.nio.support.classic;
0
final class NanosecondTimer implements Timer, Snapshotable<Map<Duration, Long>> {
0
package org.apache.beam.runners.spark.translation.streaming; import org.apache.beam.runners.spark.translation.EvaluationContext; import org.apache.beam.runners.spark.translation.SparkRuntimeContext; public void computeOutputs() {
0
handler = new InMemoryNodeModel(root).getNodeHandler();
0
bundle, ServiceListener.class, l, (f == null) ? null : FrameworkUtil.createFilter(f)); filter = FrameworkUtil.createFilter(expr);
0
import java.awt.Composite; import java.awt.geom.Point2D;
0
import org.apache.ambari.server.controller.internal.OperationStatusMetaData; } else if (resultMetadata.getClass() == OperationStatusMetaData.class) { processResultMetadata((OperationStatusMetaData) resultMetadata); private void processResultMetadata(OperationStatusMetaData metaData) throws IOException { ...
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
public class ZipFileSystemProvider * Returns the URI parser. */ protected ZipFileNameParser getParser() { return parser; } /**
0
public class SVGPaint implements SVGConverter { private SVGGeneratorContext generatorContext; * @param generatorContext the context. public SVGPaint(SVGGeneratorContext generatorContext) { this.svgLinearGradient = new SVGLinearGradient(generatorContext); this.svgTexturePaint = new SVGTextur...
0
log.warn("Ingoring invalid deletion candidate " + candidate);
0
for (int i = 0; i < attrs.length; i++) { addAttribute(attrs[i]); }
0
import java.util.Iterator; import java.util.List; import org.apache.commons.configuration.tree.DefaultConfigurationNode; import org.apache.commons.lang.SystemUtils; import org.apache.commons.logging.LogFactory; import org.apache.log4j.Logger; import org.apache.log4j.WriterAppender; if (SystemUtils.isJavaVersion...
0
package org.apache.beam.sdk.io; import org.apache.beam.sdk.io.XmlSink.XmlWriteOperation; import org.apache.beam.sdk.io.XmlSink.XmlWriter; import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.options.PipelineOptionsFactory;
0
* @deprecated use {@link HttpAsyncServerProtocolHandler}
0
* @throws ParserConfigurationException if a parser configuration error occurs * @throws SAXNotRecognizedException if the property name is not recognized * @throws SAXNotSupportedException if the property name is recognized but not supported * @throws ParserConfigurationException if a parser configur...
0
package org.apache.ambari.server.controller; import java.util.HashSet; import java.util.Set; import org.junit.Assert; import org.junit.Test; public class ClusterResponseTest { @Test public void testBasicGetAndSet() { Long clusterId = new Long(10); String clusterName = "foo"; Set<String> hostNames = ...
0
* @version $Id: AbstractConfiguration.java,v 1.21 2004/09/16 22:35:35 epugh Exp $ protected static char DELIMITER = ','; * For configurations extending AbstractConfiguration, allow them to * change the delimiter from the default comma (","). * @param delimiter The new delimiter */ public st...
0
Map<String, String> clusterScopedTypePropertyAttributes = clusterScopedTypeAttributes.get("attribute1"); assertEquals("someAttributePropValue", clusterScopedTypePropertyAttributes.get("property1")); Map<String, String> group2Type1Prop1Attributes = group2Type1Attributes.get("attribute1"); assertEquals("a...
0
import org.apache.sshd.common.RequestHandler; public class NoMoreSessionsHandler implements RequestHandler<ConnectionService> { public Result process(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) throws Exception { return Result.ReplyFailure; return Resul...
0
log.error("VisibilityParseException with visibility of Key {}: {}", k, e.getMessage()); log.error("BadArgumentException with visibility of Key {}: {}", k, e.getMessage());
0
import org.apache.accumulo.core.conf.AccumuloConfiguration; import org.apache.accumulo.core.conf.Property; conn.getInstance().getZooKeepers()); AccumuloConfiguration clusterClientConf = conn.getInstance().getConfiguration(); boolean sslEnabled = Boolean.valueOf(clusterClientConf.get(Property.INSTANCE_RP...
0
import org.apache.beam.sdk.io.common.NetworkTestHelper; esHttpPort = NetworkTestHelper.getAvailableLocalPort();
0
public String toString() { return "Async Activate: " + getComponentMetadata().getName(); } public String toString() { return "Async Deactivate: " + getComponentMetadata().getName(); ...
0
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.stub.StreamObserver;
0
import org.apache.accumulo.server.ServerContext; public ThriftClientHandler(ServerContext context, TransactionWatcher watcher) { int zkTimeOut = (int) DefaultConfiguration.getInstance() .getTimeInMillis(Property.INSTANCE_ZK_TIMEOUT); ServerContext context = new ServerContext(opts.iname, opts.keepers...
0
private final Map<E, ? super V> map; private final V dummyValue;
0
import org.apache.ambari.server.security.authorization.InvalidUsernamePasswordCombinationException; throw new InvalidUsernamePasswordCombinationException();
0
import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException;
1
final Set<String> names = HttpSessionWrapper.getExpiredSessionContextNames(session); mgr.sessionDestroyed(session, names);
0
package org.apache.accumulo.core.client.mapreduce.lib.util;
0
package org.apache.accumulo.core.clientImpl;
0
m_componentDesc = new ComponentDescription(m_factory.getName(), m_className, m_context.getBundle().getBundleId());
0
import org.apache.ambari.server.configuration.AmbariServerConfiguration; import org.apache.ambari.server.security.encryption.Encryptor; import com.google.inject.TypeLiteral; import com.google.inject.name.Names; bind(new TypeLiteral<Encryptor<AmbariServerConfiguration>>() {}).annotatedWith(Names.named("AmbariSer...
0