Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
private Long hostId; public void setHostId(Long hostId) { this.hostId = hostId; public Long getHostId() { return hostId; return Objects.equals(hostId, that.hostId) && return Objects.hash(hostId, hostLevelParamsClusters);
0
g.dispose();
0
* 'a' then 'b'. Exact parent and parent match rules take precedence.
0
ClientSession s = client.connect("localhost", port).await().getSession(); ClientSession s = client.connect("localhost", port).await().getSession(); int res = s.waitFor(ClientSession.CLOSED, 5000);
0
String desc = "This iterator allows ranges of key to be transformed (with" + " the exception of row transformations)."; String bufferDesc = "Maximum buffer size (in accumulo memory spec) to use" + " for buffering keys before throwing a BufferOverflowException. Users" + " should keep this...
0
import org.apache.log4j.Logger; fs.delete(new Path("/tmp/testmf"), true); fs.delete(new Path("/tmp/testmf_failures"), true); fs.delete(new Path("/tmp/testmf"), true); CreateMapFiles.main(new String[] {"tmp/testmf", "8", "0", "100000", "99"}); bulkImport(fs, TABLE_NAME, "/tmp/testmf");
0
private static final long serialVersionUID = -7732226881069447957L;
0
import org.apache.felix.scr.impl.inject.ComponentMethods;
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
0
if (m_type == AggregateDependencyInjectionType.SET) { m_proxyObject = new ServiceSet(this); } else { m_proxyObject = new ServiceList(this); }
0
KeySelectorResult ksResult = null; KeySelector keySelector = validateContext.getKeySelector(); if (keySelector != null) { ksResult = keySelector.select (ki, KeySelector.Purpose.VERIFY, sm, validateContext); if (k...
0
import java.util.Iterator; import org.apache.hc.core5.http.HeaderElement; import org.apache.hc.core5.http.MessageHeaders; public static Iterator<HeaderElement> iterate(final MessageHeaders headers, final String name) { Args.notNull(headers, "Message headers"); Args.notBlank(name, "Header name"); ...
0
package org.apache.sshd.common.session.impl;
0
import org.apache.hc.core5.http.HttpEntity; import org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.http.HttpRequest; import org.apache.hc.core5.http.HttpResponse; import org.apache.hc.core5.http.HttpVersion; import org.apache.hc.core5.http.message.BasicHttpRequest; import org.easymock.IExpectationSetters;...
0
UnaryFunction<KeyInT, K> keyExtractor, super(name, flow, outputType, windowing, euphoriaWindowing, keyExtractor, keyType);
0
/** The type of the exception to catch. NULL means ANY. */ private ObjectType catchtype; /** The InstructionHandle where the handling begins. */ private InstructionHandle handlerpc; /** Leave instance creation to JustIce. */ ExceptionHandler(ObjectType catch_type, InstructionHandle handler_pc){ ...
0
String project = options.as(GcpOptions.class).getProject();
0
"Component '%s' is mapped to an invalid number of host groups '%s'.", propertyName, component, matchingGroupCount)); yarnSiteMap.put("yarn.timeline-service.reader.webapp.address", new MultipleHostTopologyUpdater("TIMELINE_READER")); yarnSiteMap.put("yarn.timeline-service.reader.webapp.https.addr...
0
private final CharsetDecoder decoder; * @param chardecoder chardecoder to be used for decoding HTTP protocol elements. * If <code>null</code> simple type cast will be used for byte to char conversion. final CharsetDecoder chardecoder) { this.decoder = chardecoder; if (this.de...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/TypedList.java,v 1.5 2003/08/31 17:24:46 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowledgement may appea...
0
* Copyright 2004,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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestSingletonIterator.java,v 1.4 2003/02/19 20:33:10 scolebourne Exp $ import junit.framework.Test; import junit.framework.TestSuite; * @version $Id: TestSingletonItera...
0
@JsonProperty("source_field")
0
extends AbstractObjectCreationFactory<Book> public Book createObject( Attributes attributes )
0
package org.apache.atlas.bridge.hivestructure; import org.apache.atlas.MetadataException; import org.apache.atlas.bridge.ABridge; import org.apache.atlas.repository.MetadataRepository; import org.apache.atlas.typesystem.types.AttributeDefinition; import org.apache.atlas.typesystem.types.ClassType; import org.apache.at...
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/SetNextRule.java,v 1.13 2002/03/23 17:45:58 rdonkin Exp $ * $Revision: 1.13 $ * $Date: 2002/03/23 17:45:58 $ * @version $Revision: 1.13 $ $Date: 2002/03/23 17:45:58 $ * * @d...
0
// look for hints of a failure on the previous tablet server if (!logEntries.isEmpty() || needsMajorCompaction(MajorCompactionReason.NORMAL)) { // look for any temp files hanging around removeOldTemporaryFiles(); }
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
if(stats.getServerState().equals("leader")) {
0
* - "session_id_to_ephemeral_paths": Map<Long, Set<String>> * - "max_file_descriptor_count": Long (unix only)
0
package org.apache.cocoon.template.jxtg.instructions; import org.apache.cocoon.template.jxtg.script.event.Event; import org.apache.cocoon.template.jxtg.script.event.StartElement; import org.apache.cocoon.template.jxtg.script.event.StartInstruction;
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
0
public static final short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
0
final Object value = new Object(); final String strVal = converter.convert(String.class, value); } catch(final ConversionException cex) {
0
* @version $Id$
0
import org.apache.zookeeper.common.Time; request.setHdr(new TxnHeader(request.sessionId, request.cxid, zxid, Time.currentWallTime(), type)); Time.currentWallTime(), OpCode.multi)); throw e; request.setHdr(new TxnHeader(request.sessi...
0
* reconfiguration will fail. Should be committed from the CLI to disable this option. static { if (cl.hasOption("file") && cl.hasOption("members")) { try { try (FileInputStream inConfig = new FileInputStream(cl.getOptionValue("file"))) {
0
int bytesRead = in.read(keyEncryptionKey); // check if the number of bytes read into the array is the same as the value of the length field, if (bytesRead == keyEncryptionKeyLength) { cipher.init(encryptionMode, new SecretKeySpec(keyEncryptionKey, params.getAlgorithmName())); if (Cip...
0
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
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
@Override @Override @Override @Override @Override @Override @Override
0
package org.apache.commons.digester3; import org.apache.commons.digester3.CallMethodRule; import org.apache.commons.digester3.Digester; import org.apache.commons.digester3.ExtendedBaseRules; ("/org/apache/commons/digester3/" + name));
1
@Override @Override @Override
0
@Override @Deprecated @Deprecated
0
* @version CVS $Id: AbstractEnvironment.java,v 1.5 2003/03/18 18:24:27 bruno Exp $ synchronized (this.getClass()) { throw new ProcessingException("The deprecated resolve() method of the environment was called." +"Please either update y...
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
final HttpRequest promise, final AsyncPushProducer pushProducer, final HttpContext httpContext) throws HttpException, IOException {
0
static final Logger LOGGER = Logger.getLogger(VarTest.class.getName());
0
public static final String HIVE_CLUSTER_NAME = "atlas.cluster.name"; public static final String ATLAS_ENDPOINT = "atlas.rest.address"; atlasClient = new AtlasClient(hiveConf.get(ATLAS_ENDPOINT, DEFAULT_DGI_URL), ugi, doAsUser);
0
return true;
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 com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.nio.ByteBuffer; import java.nio.channels.ReadableByteChannel; import j...
0
JdbcConnection connection = JdbcDriver.connect(inMemoryMetaStore, options);
0
* encodes/decodes values of type {@code T} by converting to/from {@code IntermediateT} and then * encoding/decoding using the underlying {@code Coder<IntermediateT>}. * <p>The conversions from {@code T} to {@code IntermediateT} and vice versa must be supplied as * {@link CodingFunction}, a serializable function tha...
1
import org.apache.atlas.v1.model.instance.Id; import org.apache.atlas.v1.model.instance.Referenceable; import org.apache.atlas.v1.typesystem.types.utils.TypesUtil; private TypesUtil.Pair<String, Feed> getHDFSFeed(String feedResource, String clusterName) throws Exception { assertEquals(((List<Id>)processEnti...
1
/* * $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
// I know that 60 seems _really_ high but it turns out // That the GraphicsNodeTree was not being cleared when I // tested with as high as 36. So I would leave it at 60 // (why so large I don't know). final static int NUM_GC=60; for (int i=0; i<NUM_GC; i++) { } s...
0
* @version CVS $Id$ implements Serviceable, ThreadSafe, AspectDataStore, Contextualizable {
0
import java.nio.file.FileVisitOption; import java.util.EnumSet; Files.walkFileTree(root, EnumSet.of(FileVisitOption.FOLLOW_LINKS), Integer.MAX_VALUE, new FilteringFileVisitor());
0
import static com.google.common.base.Charsets.UTF_8; import java.text.ParseException; this.visibility = new String(visibility, UTF_8);
0
* @return * @throws XMLSecurityException
0
* @return Comparator&lt;? super V&gt;
0
StringBuffer buf = new StringBuffer(64); buf.append(access).append(signature).append(" ").append(name); buf.append(" = ").append(cv); buf.append(" [").append(a.toString()).append("]");
0
import org.junit.Ignore; @Ignore("We have a concurrency bug in HttpCore which will be addressed after HttpClient 4.3.2 is released")
0
import java.io.File; import java.util.Iterator; import java.util.Set; import org.apache.xml.security.c14n.implementations.Canonicalizer20010315OmitComments; import org.apache.xml.security.signature.XMLSignature; import org.apache.xml.security.signature.XMLSignatureInput; import org.apache.xml.security.transforms.Tran...
0
import java.util.List; import org.apache.commons.configuration.PropertyConverter; * @version $Revision: 1.4 $, $Date$ Object value = config.getInitParameter(key); List list = PropertyConverter.split((String) value, getDelimiter()); return list.size() > 1 ? list : value;
0
// AntTagLibrary ant = (AntTagLibrary) context.getTagLibrary( "jelly:ant" ); org.apache.tools.ant.Project antProject = (org.apache.tools.ant.Project) context.findVariable( "org.apache.commons.jelly.ant.Project" );
0
protected abstract byte[] engineUpdate(byte buf[]) throws XMLSecurityException; protected abstract byte[] engineUpdate(byte buf[], int offset, int len) throws XMLSecurityException; protected abstract int engineGetKeySize(); protected abstract int engineGetBlockSize(); /** * Der init kan...
0
builder.add(DisplayData.item("predicate", predicateDescription));
0
import org.apache.http.conn.routing.HttpRoute; import org.apache.http.conn.routing.HttpRoutePlanner; import org.apache.http.conn.ClientConnectionManager;
0
import java.util.*; cipherOutputStream = new TrimmerOutputStream(outputStream, 8192 * 10, 3, 4); xmlEventWriter = XMLSecurityConstants.xmlOutputFactory.createXMLEventWriter(cipherOutputStream, "UTF-8"); final Deque<XMLSecCharacters> charactersBuffer = characterEventGe...
0
import java.util.Collections; import java.util.Set; import javax.annotation.Nullable; import org.apache.beam.sdk.extensions.sql.impl.BeamCalciteSchema; /** Get a specific table from this provider it is present, or null if it is not present. */ default @Nullable Table getTable(String tableName) { return getTable...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/axes/RootContext.java,v 1.10 2003/02/19 00:59:51 dmitri Exp $ * $Revision: 1.10 $ * $Date: 2003/02/19 00:59:51 $ * @version $Revision: 1.10 $ $Date: 2003/02/19 00:59:51 $ private J...
0
import org.apache.ambari.server.state.HostState; boolean performingInitialBootstrap = false; performingInitialBootstrap = true; // During initial bootstrap, unhealthy hosts are ignored // so we boostrap the CURRENT version anyway if (performingInitialBootstrap && ...
0
import java.util.Properties; Properties props = m_providedServices[i].getProperties(); Iterator iterator = props.keySet().iterator(); Object obj = props.get(name); if (obj != null) { prop.addAttribute(new Attribute("value", obj.toString())); ...
0
import org.apache.cocoon.caching.IdentifierCacheKey; * @version CVS $Id: CachingSource.java,v 1.11 2004/04/15 08:05:56 cziegeler Exp $ final protected IdentifierCacheKey cacheKey; this.cacheKey = new IdentifierCacheKey(key, false); protected IdentifierCacheKey getCacheKey() {
0
*/ public abstract class ReturnInstruction extends Instruction implements ExceptionThrower, TypedInstruction, StackConsumer { /** * Empty constructor needed for the Class.newInstance() statement in * Instruction.readInstruction(). Not to be used otherwise. */ ReturnInstruction() { }...
0
import org.apache.beam.sdk.fn.channel.ManagedChannelFactory;
0
if (!isDelimiterParsingDisabled() || !(value instanceof String))
0
DistributedTrace.enable("localhost", "testTrace", getClientConfig());
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
/* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE file. */ package org.apache.commons.collections; import java.util.Enumerat...
0
return (DataSink<T>) new HadoopDataSink(
0
import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString;
0
/** * Invalidates all clusters by retrieving each from the database and refreshing all of its internal * stateful collections. */ void invalidateAllClusters();
0
import org.apache.xml.security.test.TestUtils; TestUtils.createDSctx(doc, "x",
0
import com.google.auto.value.AutoValue; import com.google.common.collect.ImmutableList; import java.util.Collection; import java.util.EnumSet; import java.util.Set; import javax.annotation.Nullable;
0
String[] ba = new String(encodedDFV, Constants.UTF8).split(","); return ("" + size + "," + numEntries + "," + time).getBytes(Constants.UTF8); return ("" + size + "," + numEntries).getBytes(Constants.UTF8);
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
* @version $Id: TestConfigurationConverter.java,v 1.3 2004/01/16 14:23:39 epugh Exp $ protected Configuration config = new BaseConfiguration(); ExtendedProperties ep = ConfigurationConverter.getExtendedProperties(config);
0
private boolean useContextClassLoader = true;
0
* @version CVS $Id: CIncludeTransformer.java,v 1.3 2003/05/16 07:04:55 cziegeler Exp $ SourceUtil.toSAX(source, mimeType, new IncludeXMLConsumer(this.contentHandler, this.lexicalHandler)); SourceUtil.toSAX(source, mimeType, this.filter);
0
clusters.addCluster(clusterName, new StackId("HDP-0.1"));
0
s_commandExecutionHelper.get().addExecutionCommandsToStage(actionContext, stage, requestParams, jsons); s_commandExecutionHelper.get().addExecutionCommandsToStage(actionContext, stage, requestParams, jsons);
0
/***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * v...
1
import org.apache.ambari.server.security.credential.PrincipalKeyCredential; import org.apache.ambari.server.utils.ShellCommandUtil; import org.apache.commons.codec.binary.Base64; import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.apache.directory.server.kerberos.shared.cry...
0
import java.util.HashMap; Either.class, // broadcast hash join HashMap.class
0
import org.apache.felix.sigil.common.model.ModelElementFactory; import org.apache.felix.sigil.common.model.eclipse.ILibrary; import org.apache.felix.sigil.common.model.osgi.IPackageImport;
0
executionCommand.setRoleParams(new HashMap<>()); executionCommand.setRoleParams(new HashMap<>()); executionCommand.setRoleParams(new HashMap<>());
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
0