Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* @version $Revision$
0
public boolean isSecurityEnabled() { return hbaseConf.get("hbase.security.authentication", "").equals("kerberos"); }
0
import org.apache.accumulo.core.client.impl.SecurityOperationsImpl;
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...
1
package org.apache.felix.framework.cache; * @see org.apache.felix.framework.BundleCache
1
stackId.getStackVersion(), "admin", RepositoryVersionState.INSTALLING);
0
private static HashMap<String,String> initialMetadataConf = new HashMap<>(); private static HashMap<String,String> initialMetadataCombinerConf = new HashMap<>(); private static HashMap<String,String> initialReplicationTableConf = new HashMap<>(); } else if (zoo.exists(instanceNamePath)) { exists = t...
1
import org.apache.sshd.common.util.ValidateUtils; public static final ChannelAgentForwardingFactory OPENSSH = new ChannelAgentForwardingFactory("auth-agent@openssh.com"); // see https://tools.ietf.org/html/draft-ietf-secsh-agent-02 public static final ChannelAgentForwardingFactory IETF = new ChannelAgentFor...
0
import org.apache.http.Consts; Assert.assertEquals(new String(GARBAGE, Consts.ISO_8859_1.name()),
0
package org.apache.ambari.infra.conf.security; import org.junit.Test; import java.util.Optional; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distr...
0
return ("" + size + "," + numEntries + "," + time).getBytes(); return ("" + size + "," + numEntries).getBytes();
0
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
0
systemProperty("karaf.name").value("root"), systemProperty("karaf.base").value("target/smx.base"), systemProperty("karaf.startLocalConsole").value("false"), systemProperty("karaf.startRemoteShell").value("false"),
0
/* * $Header: /cvshome/build/ee.foundation/src/java/security/spec/X509EncodedKeySpec.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"); * y...
0
static public class Factory extends Thread { static { Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { public void uncaughtException(Thread t, Throwable e) { LOG.error("Thread " + t + " died", e); } ...
0
import java.nio.charset.StandardCharsets; new IncomingMessage( DATA.getBytes(StandardCharsets.UTF_8), null, MESSAGE_TIME, REQ_TIME, ACK_ID, MESSAGE_ID); new OutgoingMessage(DATA.getBytes(StandardCharsets.UTF_8), null, MESSAGE_TIME, ...
0
* http://www.apache.org/licenses/LICENSE-2.0
0
* @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
List<Element> elements = new ArrayList<>();
0
Object[] parameters = this.getDigester().peekParams();
0
private void abortConnection() { public void releaseConnection() {
0
NameContextsForTests.nameContextForTest(), "testState", null, NoopProfileScope.NOOP, null); NameContextsForTests.nameContextForTest(), "testState", null, NoopProfileScope.NOOP, null);
0
FutureTask<State> tentativeCancelTask = new FutureTask<>(() -> { Job content = new Job(); content.setProjectId(getProjectId()); content.setId(jobId); content.setRequestedState("JOB_STATE_CANCELLED"); try { Job job = dataflowClient.updateJob(jobId, content); return Monit...
0
org.apache.accumulo.core.security.crypto.CryptoModule cryptoOps = org.apache.accumulo.core.security.crypto.CryptoModuleFactory .getCryptoModule(cryptoModuleName); private final Instance instance;
0
.apply(Create.empty(VarIntCoder.of())) List<Integer> inputs = Collections.emptyList(); .apply(Create.empty(VarIntCoder.of()))
0
import org.apache.beam.sdk.transforms.Aggregator; import org.apache.beam.sdk.transforms.AppliedPTransform; import org.apache.beam.sdk.transforms.Combine.CombineFn; import org.apache.beam.sdk.transforms.PTransform;
0
* <p>Provides a <i>light weight</i> <code>DynaBean</code> facade to a <code>Map</code> * with <i>lazy</i> map/list processing.</p> if (name == null) { } if (isRestricted()) { }
0
import org.apache.cocoon.classloader.ClassLoaderConfiguration; import org.apache.cocoon.classloader.ClassLoaderFactory;
0
storeProvider.getJobUpdateStore().saveJobUpdate(update); storeProvider.getJobUpdateStore().saveJobUpdateEvent(event, UPDATE_ID); storeProvider.getJobUpdateStore().saveJobInstanceUpdateEvent(event, UPDATE_ID);
0
* returns. The behavior is unspecified if init is called after deepCopy either on the original or the copy. A proper implementation would call deepCopy on * the source.
0
import org.apache.hadoop.metrics2.sink.timeline.deserialize .IgnoringNullsLinkedHashMap; import org.codehaus.jackson.map.annotate.JsonDeserialize; @JsonDeserialize(as = IgnoringNullsLinkedHashMap.class)
0
import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.replay; import org.apache.accumulo.server.ServerContext; ServerContext context1 = createMockContext(); replay(context1); final TestServerConfigurationFactory factory = new TestServerConfigurationFactory(context1); ServerCon...
0
import java.io.IOException; import java.io.ObjectInputStream; import java.util.HashMap; import java.util.Map; public class BeamSqlEnv implements Serializable { transient Map<String, BeamSqlTable> tables; tables = new HashMap<String, BeamSqlTable>(16); tables.put(tableName, table); public void deregisterTabl...
0
private final ConcurrentHashMap<String, BundleProcessor<?>> clientProcessors; @SuppressWarnings("unchecked") (BundleProcessor<T>) clientProcessors.computeIfAbsent(
0
import org.apache.cocoon.portal.services.aspects.DynamicAspect; implements LinkService, DynamicAspect {
0
import org.apache.aurora.common.base.Commands; bind(Command.class).annotatedWith(ShutdownStage.class).toInstance(Commands.NOOP); bind(TierManager.TierManagerImpl.TierConfig.class) .toInstance(TierManager.TierManagerImpl.TierConfig.EMPTY);
0
io.setDescription( "Combiner that joins multiple Status protobufs to track replication metadata"); public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { log.trace("Returned single value: " + key.toStringNoTrun...
0
* * @deprecated (4.3) use {@link DefaultHttpRequestWriter} @Deprecated
0
public class BasicHeader implements Header, Serializable {
0
import java.nio.charset.Charset; public Charset getNameDecodingCharset() { return delegate.getNameDecodingCharset(); } @Override public void setNameDecodingCharset(Charset cs) { delegate.setNameDecodingCharset(cs); } @Override
0
* or more contributor license agreements. See the NOTICE file * regarding copyright ownership. The ASF licenses this file * with the License. You may obtain a copy of the License at * KIND, either express or implied. See the License for the
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
* @author $Id: 98afbf4376ad2866c36a4a0e13eb41ebe4feb463 $ /** * Special object to indicate that a custom converter rule or error handler * cannot handle the conversion. */ static final Object CANNOT_HANDLE = new Object(); * @return The conversion result or {@link #CANNOT_HANDLE} to indicate that * ...
0
public class AgentActionEvent extends STOMPHostEvent {
1
list.addAll(Arrays.asList(getFullElements()));
0
Collections.emptyList(), return Collections.singletonMap(
0
@Nullable Set<Integer> instances, @Nullable String message) throws TException;
0
Pipeline pipeline = FlinkTestPipeline.createForBatch();
0
@Override
0
* A wrapper around commons-codec's Base64 to make sure we get the non-chunked behavior that became the default in commons-codec version 1.5+ while relying on * the commons-codec version 1.4 that Hadoop Client provides. private Base64() {}
0
* <li>{@link AccumuloRowInputFormat#setConnectorInfo(Job, String, byte[])} OR {@link AccumuloRowInputFormat#setConnectorInfo(Job, Path)}
0
package org.apache.beam.sdk.extensions.sql.impl.parser; import java.util.List;
0
if (prefix == null) {
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/LangAttributePointer.java,v 1.11 2003/10/09 21:31:40 rdonkin Exp $ * $Revision: 1.11 $ * $Date: 2003/10/09 21:31:40 $ * any, must include the following acknowledgement: ...
0
import org.junit.Assert; Iterable<KV<String, Long>> actualLower = res.get(luc.get(lowerCnts)); Iterable<KV<String, Long>> actualUpper = res.get(luc.get(upperCnts)); Assert.assertEquals("Here", actualUpper.iterator().next().getKey()); Iterable<Long> actualUniqCount = res.get(unique); Assert.assertEqu...
0
private final static Set<String> HOP_BY_HOP = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( HttpHeaders.HOST.toLowerCase(Locale.ROOT), HttpHeaders.CONTENT_LENGTH.toLowerCase(Locale.ROOT), HttpHeaders.TRANSFER_ENCODING.toLowerCase...
0
* @param <E> the type of elements in this bag
0
import java.util.Hashtable; protected final Map<String, Key> keyTable = new Hashtable<String, Key>();
0
/** * Get the next Article * @return the next {@link Article}, never {@code null}, if unparseable then isDummy() * will be true, and the subject will contain the raw info. */
0
.append(':') redirect.append('?').append(queryString);
0
* Tests whether a configuration can be updated. */ @Test public void testUpdateConfiguration() throws ConfigurationException { System.getProperties().remove("Id"); CombinedConfigurationBuilder builder = new CombinedConfigurationBuilder(); builder.configure(P...
0
import org.apache.hc.core5.http.nio.AsyncPushConsumer; import org.apache.hc.core5.http.nio.HandlerFactory; private final HandlerFactory<AsyncPushConsumer> pushHandlerFactory; final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, this.pushHandlerFactory = pushHandlerFactory; ...
0
import org.apache.solr.common.cloud.ZkConfigManager; import org.apache.zookeeper.KeeperException; String aliasesPath = String.format("%s/%s", zNode, "aliases.json"); // TODO: protect this later somehow List<String> excludePaths = Arrays.asList(configsPath, collectionsPath, aliasesPath); createZnodeIfNeeded(...
0
@Override
0
private TemporaryFolder folder1 = new TemporaryFolder( new File(System.getProperty("user.dir") + "/target")); private TemporaryFolder folder2 = new TemporaryFolder( new File(System.getProperty("user.dir") + "/target")); FileUtils.copyURLToFile(this.getClass().getResource("/HelloWorld.jar"), ...
0
ArrayList<LT> ret = new ArrayList<>(escapedElements.length);
0
if ("Transforms".equals(nextSibling.getLocalName()) if (!"DigestMethod".equals(nextSibling.getLocalName())
0
@SuppressWarnings("rawtypes")
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
+ "[" + m_provider + "]";
1
new StateSupport.MergeFromStateMerger<>(),
0
return n.getBaseURI(); if (hashCode() < other.hashCode()) { return n.lookupPrefix(namespaceURI); originalElement.lookupNamespaceURI(prefix); if (!n.isEqualNode(m)) { if (!n1.isEqualNode(n2)) {
0
import javax.persistence.JoinColumn; import javax.persistence.JoinColumns; import javax.persistence.ManyToOne; @ManyToOne @JoinColumns({ @JoinColumn(name = "resource_type_id", referencedColumnName = "resource_type_id", nullable = false), }) private ResourceTypeEntity resourceType; /** * Get the admin...
0
/** * Starts the authentication process. * User identities will be tried until the server successfully authenticate the user. * User identities must be provided before calling this method using * {@link #addPasswordIdentity(String)} or {@link #addPublicKeyIdentity(java.security.KeyPair)}. *...
0
JSVGCanvasHandler handler = null; handler = new JSVGCanvasHandler(this, this); handler = null; handler.scriptDone(); public boolean canvasInit(JSVGCanvas canvas) { return true;
1
import org.apache.http.impl.nio.codecs.DefaultHttpRequestWriter; import org.apache.http.impl.nio.codecs.DefaultHttpResponseParser; protected final NHttpMessageParser<HttpResponse> responseParser; protected final NHttpMessageWriter<HttpRequest> requestWriter; protected NHttpMessageParser<HttpResponse> create...
0
/* $Id$ *
0
import org.apache.commons.httpclient.util.HttpURLConnection; // Verify that this is the active Monitor instance if (!isActiveMonitor()) { resp.sendError(HttpURLConnection.HTTP_UNAVAILABLE, STANDBY_MONITOR_MESSAGE); return; }
0
AtlasRelationshipEndDef existingEnd2 = existingRelationshipDef.getEndDef2(); AtlasRelationshipEndDef newEnd2 = newRelationshipDef.getEndDef2(); boolean endsSwaped = false; if (RequestContext.get().isInTypePatching() && isValidUpdate(existingEnd1, newEnd2)) { //...
0
import org.apache.http.annotation.NotThreadSafe; @NotThreadSafe
0
import org.apache.accumulo.core.conf.ClientProperty; cfg.setClientProperty(ClientProperty.INSTANCE_ZOOKEEPERS_TIMEOUT, "15s"); final String zInstanceRoot = Constants.ZROOT + "/" + conn.getInstanceID();
0
import org.apache.beam.runners.dataflow.DataflowRunner; * Options that can be used to configure the {@link DataflowRunner}.
0
getLogger(), itsContext, this.itsManager, config.getChild("nodes", false));
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//fileupload/src/java/org/apache/commons/fileupload/FileItem.java,v 1.14 2003/05/12 05:24:52 martinc Exp $ * $Revision: 1.14 $ * $Date: 2003/05/12 05:24:52 $ * @version $Id: FileItem.java,v 1.14 2003/05/12 05:24:52 martinc Exp $ ...
0
* @return A {@link Method} corresponding to
0
IOChannelUtils.getFactory(extractFiles.iterator().next()).remove(extractFiles); abstract Builder<T> setTableFunction( SerializableFunction<ValueInSingleWindow<T>, TableDestination> tableFunction); SerializableFunction<ValueInSingleWindow<T>, TableDestination> tableFunction) { ...
0
import org.apache.accumulo.core.clientImpl.BaseIteratorEnvironment;
0
* @version $Revision$ $Date$
0
/** The build information */ public static final String BUILD_INFO = properties.getProperty("build.info");
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.junit.Assert; import org.junit.Test; @Override super.setUp(); * This is a simple test - try to connect two clients to a server * accepting a maximum of one connection from each address. Check that * eventually connects. * * There is a possibility of a false positive here,...
0
private static final long serialVersionUID = 7476908955452692098L; public ParseException(String msg, Exception originalException) {
0
return this.m_componentManager.getLogger(); m_componentManager.getLogger().log( LogService.LOG_INFO, "Interrupted twice waiting for implementation object to become accessible", e1 );
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
* @param pojo : pojo object.
0
public static final short KNOWN_ATTRIBUTES = 22; // count of attributes // TODO: mutable public array!! // Constants defining the behavior of the Method Handles (JVMS �5.4.3.5)
0
if (!super.isApplicable(request)) { return false; }
0
if (isDdlOperation(entity)) { private boolean isDdlOperation(AtlasEntity entity) { return entity != null && !context.isMetastoreHook() && (context.getHiveOperation().equals(HiveOperation.CREATETABLE_AS_SELECT) || context.getHiveOperation().equals(HiveOperation....
0