Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
package org.apache.accumulo.core.clientImpl; import org.apache.accumulo.core.clientImpl.thrift.ClientService; import org.apache.accumulo.core.clientImpl.thrift.ClientService.Client; import org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException;
0
import java.util.Comparator;
0
import org.apache.ambari.server.controller.internal.PropertyIdImpl; import org.apache.ambari.server.controller.internal.ResourceImpl;
1
"EC-256-gpg2-public.asc", "EC-521-gpg2-public.asc",
0
public void testPrompt() throws Exception { Context c = new Context(); c.addCommand("echo", this); c.set("USER", "gnodet"); c.set("APPLICATION", "karaf"); //c.set("SCOPE", ""); Object p = c.execute("\"@|bold ${USER}|@${APPLICATION}:@|bold ${SCOPE}|> \""); Syst...
0
import org.apache.sshd.common.util.security.SecurityUtils;
0
package org.apache.sshd.cli.client; import org.apache.sshd.client.SshClient; public class SshKeyScanMain implements Channel, Callable<Void>, ServerKeyVerifier, SessionListener, SimplifiedLog { public SshKeyScanMain() { public static List<String> parseCommandLineArguments(SshKeyScanMain scanner, String... args) ...
0
import org.apache.batik.ext.awt.image.GraphicsUtil; import org.apache.batik.ext.awt.image.codec.tiff.TIFFEncodeParam; import org.apache.batik.ext.awt.image.codec.tiff.TIFFField; import org.apache.batik.ext.awt.image.codec.tiff.TIFFImageDecoder; import org.apache.batik.ext.awt.image.codec.tiff.TIFFImageEncoder; import ...
0
io.setDescription( "MaxCombiner interprets Values as Longs and finds their maximum. A variety of encodings (variable length, fixed length, or string) are available");
0
import org.apache.beam.sdk.values.PCollection; import org.apache.beam.vendor.grpc.v1_13_1.com.google.protobuf.ByteString; import org.apache.beam.vendor.grpc.v1_13_1.com.google.protobuf.InvalidProtocolBufferException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = Logg...
0
@Override public boolean isReversed() { return false; } @Override public void maybeReverse(boolean mirror) { }
0
/* * $Header: /cvshome/build/ee.foundation/src/java/util/ListResourceBundle.java,v 1.6 2006/03/14 01:20:26 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 no...
0
@Override @Override
0
// Create extra adapter service dependency upon which our adapter depends on. } else { Assert.fail("wrong call to updated method: count=" + updateCount); }
0
import java.util.Iterator; import org.apache.hc.core5.annotation.NotThreadSafe; import org.apache.hc.core5.http.Header; import org.apache.hc.core5.http.HeaderElement; import org.apache.hc.core5.http.HttpResponse; import org.apache.hc.core5.util.Args; final Iterator<Header> it = response.headerIterator("Allow");...
0
package org.apache.hadoop.metadata.typesystem.types.store; return !name.startsWith(".") && !name.startsWith("_") && !name.equals(ARCHIVE_LOCATION.getName()); public synchronized void delete(String namespace) throws StorageException { Path archivePath = new Path(ARCHIVE_LO...
0
origStage.getRequestContext(), origStage.getClusterHostInfo(), origStage.getCommandParamsStage(), origStage.getHostParamsStage());
0
package org.apache.accumulo.examples.wikisearch.normalizer;
0
import org.apache.hc.core5.annotation.Internal; /** * {@link IOEventHandler} that also exposes {@link HttpConnection} properties. * * @since 5.0 */ @Internal
0
import org.apache.accumulo.core.metadata.schema.TabletsMetadata; return () -> { try { return TabletsMetadata.builder().forTable(tableId).fetchLocation().fetchPrev() .build(context).stream().map(tm -> { Location loc = Location.NONE; if (tm.hasCurrent()) { ...
0
List<V> list = listMap.get((K) "A"); ListIterator<V> listIt = listMap.get((K) "B").listIterator(); List<V> list = listMap.get((K) "A"); MultiValuedMap map1 = makeObject(); MultiValuedMap map2 = makeObject(); ListValuedMap map1 = makeObject(); ListValuedMap map2 = ...
0
import org.apache.accumulo.core.client.AccumuloClient; AccumuloClient conn; public synchronized static void configureMetadataTable(AccumuloClient conn, String tableName) {
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
* nor may "Apache" appear in their name, without
0
import java.io.Serializable; public final class ByteArrayBuffer implements Serializable { private static final long serialVersionUID = 4359112959524048036L;
0
import org.apache.beam.sdk.values.Schema; private final Schema schema; private SqlRowCoder(Schema schema) { this.schema = schema; public static SqlTypeCoder of(Schema schema) { return new SqlRowCoder(schema); public Schema getSchema() { return schema; return schema.getRowCoder();...
0
if (SecurityUtils.isECCSupported()) {
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 void process(byte cmd, Buffer buffer) throws Exception { if (cmd == SshConstants.SSH_MSG_USERAUTH_REQUEST) { buffer = session.createBuffer(SshConstants.SSH_MSG_USERAUTH_BANNER, 0); buffer = session.createBuffer(SshConstants.SSH_MSG_USERAUTH_SUCCESS, 0); ...
0
public abstract class JoinFn<LeftT, RightT, K, OutputT> extends DoFn<KV<K, CoGbkResult>, Pair<K, OutputT>> { TupleTag<LeftT> leftTag, TupleTag<RightT> rightTag) { ProcessContext c, K key, CoGbkResult value,
0
import javax.annotation.Nullable; @Nullable
0
@Test() public void testGetDefaultAgentTaskTimeout() { Properties ambariProperties = new Properties(); Configuration conf = new Configuration(ambariProperties); Assert.assertEquals("900", conf.getDefaultAgentTaskTimeout(false)); Assert.assertEquals("1800", conf.getDefaultAgentTaskTimeout(true)); ...
0
public void deleteClassification(final String guid, final String classificationName) throws AtlasBaseException { deleteClassification(guid, classificationName, null); } @Override @GraphTransaction public void deleteClassification(final String guid, final String classificationName, final Str...
0
import java.sql.SQLException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import com.google.inject.Inject; import com.google.inject.Injector;
0
public class FileHandle extends Handle {
0
import com.twitter.aurora.gen.TaskConfig; private final Set<TaskConfig> tasks; * Constructs a ParsedConfiguration object and populates the set of {@link TaskConfig}s for ImmutableSet.Builder<TaskConfig> builder = ImmutableSet.builder(); public Set<TaskConfig> getTaskConfigs() {
0
private static final long serialVersionUID = -4099655108069755015L;
0
maxBufferSize = AccumuloConfiguration.getFixedMemoryAsBytes(options.get(MAX_BUFFER_SIZE_OPT)); AccumuloConfiguration.getFixedMemoryAsBytes(option.getValue());
1
import javax.servlet.DispatcherType; import org.apache.felix.http.base.internal.handler.ErrorsMapping; import org.apache.felix.http.base.internal.handler.ServletHandler; import org.apache.felix.http.base.internal.handler.holder.FilterHolder; import org.apache.felix.http.base.internal.runtime.FilterInfo; private fin...
0
import java.util.HashSet; import java.util.Set; private Long createTime; private Set<String> changedConfigTypes = new HashSet<>(); public ConfigsUpdateEvent(ServiceConfigEntity configs, String configGroupName, List<String> hostNames, Set<String> changedConfigTypes) { this.createTim...
1
import java.util.List; final List<PublicSuffixList> lists = new PublicSuffixListParser().parseByType( return new PublicSuffixMatcher(lists);
0
import org.apache.commons.vfs.FileSystemManager; import org.apache.commons.vfs.FilesCache; private final FilesCache files; /** * FileSystemManager which requested this filesystem */ private final FileSystemManager manager; protected AbstractFileSystem(final FileSystemManager manager, ...
0
protected Map<CacheKey, WrapDynaClass> initialValue() { return new WeakHashMap<>(); } final Map cache = CLASSLOADER_CACHE.get(); return propertiesMap.get(name); return properties; return descriptorsMap.get(name); final PropertyU...
0
/** * Gets the described dependency. * @return the dependency. */
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...
0
import org.apache.beam.model.fnexecution.v1.BeamFnApi; import org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionRequest; import org.apache.beam.model.fnexecution.v1.BeamFnApi.InstructionResponse; import org.apache.beam.model.fnexecution.v1.BeamFnApi.LogControl; import org.apache.beam.model.fnexecution.v1.BeamFn...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/compiler/ExpressionPath.java,v 1.8 2003/03/11 00:59:22 dmitri Exp $ * $Revision: 1.8 $ * $Date: 2003/03/11 00:59:22 $ * Copyright (c) 1999-2003 The Apache Software Foundation. All rig...
0
private static void removeContent(Node node) { while (node.hasChildNodes()) { node.removeChild(node.getFirstChild());
0
* <p>Allows for {@link BeamFnApi.RegisterRequest}s to occur in parallel with subsequent requests * that may lookup registered values by blocking lookups until registration occurs. BeamFnApi.InstructionResponse.Builder response = BeamFnApi.InstructionResponse.newBuilder() .setRegister(RegisterR...
1
return new TestSuite(LocaleConvertUtilsTestCase.class);
0
if (!isZKServerRunning()) {
0
StringBuilder args = new StringBuilder("new int[] { ");
0
import org.apache.beam.runners.core.construction.TransformInputs; return (InputT) Iterables.getOnlyElement( TransformInputs.nonAdditionalInputs(getCurrentTransform(transform)));
0
import org.apache.samza.application.SamzaApplication; import org.apache.samza.application.descriptors.ApplicationDescriptor; import org.apache.samza.application.descriptors.ApplicationDescriptorImpl; import org.apache.samza.application.descriptors.ApplicationDescriptorUtil; import org.apache.samza.context.ExternalConte...
0
import java.util.Optional; Optional.empty());
0
import java.util.List; private List<RepositorySetting> repoSettings; processRepoSettings(); //todo: /** * Parse stack repo info stored in the blueprint_settings table * @return set of repositories * */ private void processRepoSettings(){ repoSettings = new ArrayList<RepositorySetting>(); ...
0
import java.io.FileNotFoundException; FileStatus[] files = null; try { files = fs.listStatus(instanceDirectory); } catch (FileNotFoundException ex) { // ignored }
0
} else if ( HTML_BODY.name().equals(m) ) { } else if ( JSON.name().equals(m) ) { } else if ( ZIP_FILE_TEXT.name().equals(m) ) { } else if ( ZIP_FILE_JSON.name().equals(m) ) {
0
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
case INTEGER: intCoder.encode(value.getInteger(idx), outStream, context.nested()); break; case SMALLINT: case TINYINT: intCoder.encode((int) value.getShort(idx), outStream, context.nested()); break; case DOUBLE: doubleCoder.encode(value.g...
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 ma...
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 org.apache.accumulo.core.util.MetadataTable; Scanner scanner = conn.createScanner(MetadataTable.NAME, Authorizations.EMPTY); MetadataTable.PREV_ROW_COLUMN.fetch(scanner); scanner.fetchColumnFamily(MetadataTable.LAST_LOCATION_COLUMN_FAMILY); scanner.fetchColumnFamily(MetadataTable.CURRENT_...
0
import org.w3c.dom.Attr; Attr attr = element.getAttributeNodeNS(null, "Id"); if (attr != null) { element.setIdAttributeNode(attr, true); Attr refAttr = refElem.getAttributeNodeNS(null, "Id"); if (refAttr != null) { refElem.setIdAttributeNode(refAttr, t...
0
package org.ognl.test.objects; import java.util.HashMap; import java.util.Map; /** * */ public class TestImpl extends TestClass { public Map<String, String> getTheMap() { Map<String, String> map = new HashMap(); map.put("key", "value"); return map; } }
0
import com.google.inject.Inject; import org.apache.ambari.server.orm.dao.HostDAO; import org.apache.ambari.server.orm.entities.HostEntity; private HostEntity hostEntity; @Inject @Inject private HostDAO hostDAO; /** * Simple constructor, should be created using the Factory class. * @param hostName Host...
0
* Autogenerated by Thrift Compiler (0.11.0)
0
/** * Parses a name=value specification, where the = and value are optional. * * @param buffer the buffer holding the name-value pair to parse * * @return the name-value pair, where the value is <code>null</code> * if no value is specified * * @throws ParseExcep...
0
protected final AtomicInteger failedCollectorConnectionsCounter = new AtomicInteger(0); private final int RETRY_COUNT_BEFORE_COLLECTOR_FAILOVER = 3;
0
hdfs.addServiceComponent(Role.HDFS_CLIENT.name()); hdfs.addServiceComponent(Role.NAMENODE.name()); hdfs.addServiceComponent(Role.DATANODE.name()); mapred.addServiceComponent(Role.RESOURCEMANAGER.name()); hdfs.addServiceComponent(Role.HDFS_CLIENT.name()); hdfs.addServiceComponent(Role.NAMENODE.na...
0
private long startTime; private long expiryTime; private final String host; public HostRoleCommand(String host, Role role, RoleCommand cmd) { this.host = host; public Role getRole() { return role; } public HostRoleStatus getStatus() { return status; } public long getStartTime() { ...
0
/** * Test for GroupByNullKey. */ /** * DoFn extracting user and timestamp. */
0
import org.apache.hc.core5.annotation.NotThreadSafe; import org.apache.hc.core5.util.Args;
1
* Adds a cinclude tag for a FrameLayout's source to the resulting stream. * * <h2>Example XML:</h2> * <pre> * &lt;xy:z src="coplet://copletID"/&gt; * </pre> * * <h2>Applicable to:</h2> * <ul> * <li>{@link org.apache.cocoon.portal.layout.impl.FrameLayout}</li> * </ul> * * <h2>Parameters</h2> * <table><t...
0
* Cache resource backed by a byte array on the heap. * * @since 4.1 class HeapResource implements Resource { private static final long serialVersionUID = -2078599905620463394L; private final byte[] b; public HeapResource(final byte[] b) { super(); this.b = b; byte[] getByteArray() { ...
0
import org.junit.rules.ExpectedException; @Rule public transient ExpectedException thrown = ExpectedException.none(); public void testMissingFieldName() { thrown.expect(IllegalArgumentException.class); pipeline .apply(Create.of(new POJO("pass", 52, 2))) .apply(Filter.<POJO>create().whereFiel...
0
final Map<Resource.Type, String> mapIds = new HashMap<>();
0
import java.text.ParseException; import java.text.SimpleDateFormat; private final SimpleDateFormat ISO8601_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX"); return ISO8601_DATE_FORMAT.format(f.getTime()); try { Calendar cc = Calendar.getInstance(); ...
0
EvaluationResult res = (EvaluationResult) pipeline.run();
0
Configuration conf, CryptoService cryptoService) throws IOException { long fileLength, Configuration conf, CryptoService cryptoService) throws IOException { InputStreamType fin, Configuration conf, CryptoService cryptoService) throws IOException {
0
public ResultSetDynaClass(final ResultSet resultSet) throws SQLException { public ResultSetDynaClass(final ResultSet resultSet, final boolean lowerCase) public ResultSetDynaClass(final ResultSet resultSet, final boolean lowerCase, final boolean useColumnLabel) public Object getObjectFromResultSet(final ...
0
import static org.apache.beam.sdk.io.elasticsearch.ElasticsearchIOTestCommon.getEsIndex; READ(getEsIndex()), WRITE(getEsIndex() + System.currentTimeMillis()), WRITE_PARTIAL(getEsIndex() + "_partial_" + System.currentTimeMillis());
0
final StandardFileSystemManager mngr = new StandardFileSystemManager(); public void subBuildStarted(final BuildEvent buildEvent) public void subBuildFinished(final BuildEvent buildEvent) public void buildFinished(final BuildEvent event) public void buildStarted(final BuildEve...
1
import com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn; /** * For internal use only. */ public WindowFn getWindowFnInternal();
0
&& (GenericUtils.safeCompare(this.getHostName(), that.getHostName(), false) == 0); return GenericUtils.hashCode(getHostName(), Boolean.FALSE) + getPort();
0
protected void setupMethod(final HttpMethod method) throws FileSystemException, URIException
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import org.junit.Test; public class AggregatorConfigurationTest { @Test @Test @SuppressWarnings("deprecation") org.apache.accumulo.core.iterators.conf.PerColumnIteratorConfig ac3 = new org.apache.accumulo.core.iterators.c...
0
String projectId, String datasetId, String location, String description, Long defaultTableExpirationMs /* ignored */)
0
import org.apache.http.nio.NHttpClientHandler;
0
import org.apache.felix.systemready.osgi.examples.CompWithoutService;
0
package aQute.libg.clauses; import java.util.*; import aQute.libg.log.*; import aQute.libg.qtokens.*; public class Clauses extends LinkedHashMap<String,Map<String,String>>{ private static final long serialVersionUID = 1L; /** * Standard OSGi header parser. This parser can handle the format clauses * ::= clau...
0
import org.apache.accumulo.tserver.metrics.TabletServerScanMetricsKeys; import org.apache.accumulo.tserver.metrics.TabletServerUpdateMetricsKeys; metricsFactory = new TabletServerMetricsFactory(); scanMetrics.add(TabletServerScanMetricsKeys.SCAN, t2 - ss.startTime); scanMetrics.add(TabletServerS...
0
import java.nio.charset.Charset; private static final Charset UTF8 = Charset.forName("UTF-8"); log.trace("zookeeper contained " + zPath + " " + (data == null ? null : new String(data, UTF8))); log.trace("putting " + zPath + " " + (data == null ? null : new String(data, UTF8)) + " in cache");
0
package org.apache.http.nio.testserver;
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
* @author <a href="mailto:deweese@apache.org">Thomas DeWeese</a>
0
Optional.absent());
0
import org.apache.accumulo.server.zookeeper.IZooReaderWriter; IZooReaderWriter zoo = ZooReaderWriter.getInstance();
0
public void finishSpecifyingOutput( String transformName, PInput input, PTransform<?, ?> transform) { // All component PCollections will already have been finished. Update their names if // appropriate. : pcollectionMap.entrySet()) { if (pc.getName().equals(PValueBase.defaultName(transform...
0
/** {@link org.apache.commons.logging} logging facility */ static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(CreateMerlinsExampleSixteen.class.getName());
0