Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
return name != null ? name : getKindString(); if (name == null) { return getKindString(); } else { return getName() + " [" + getKindString() + "]"; } * <p> By default, returns the base name of this {@code PTransform}'s class. return StringUtils.approximatePTransformName(getClass());
0
import org.apache.accumulo.core.conf.AccumuloConfiguration; import com.google.common.collect.Iterables; @Override public AccumuloConfiguration getSiteConfiguration() { // TODO Auto-generated method stub return new ConfigurationCopy(Iterables.concat(AccumuloConfiguration.getDefaultConfiguration(), config.ge...
0
package org.apache.ambari.server.controller.internal;
0
} catch (IllegalArgumentException e) {
0
import org.apache.atlas.type.AtlasTypeUtil; processInst.setRelationshipAttribute(ATTRIBUTE_INPUTS, Collections.singletonList(AtlasTypeUtil.getAtlasRelatedObjectId(pathInst, RELATIONSHIP_DATASET_PROCESS_INPUTS))); processInst.setRelationshipAttribute(ATTRIBUTE_OUTPUTS, Collections...
0
import org.apache.http.conn.params.TestAllConnParams; suite.addTest(TestAllConnParams.suite());
0
import org.apache.ambari.server.controller.internal.RequestOperationLevel; private RequestOperationLevel operationLevel; public RequestOperationLevel getOperationLevel() { return operationLevel; } public void setOperationLevel(RequestOperationLevel operationLevel) { this.operationLevel = operationLevel...
0
import org.apache.aurora.gen.Resource; new DockerParameter("c", "d"))))) .setResources(ImmutableSet.of( Resource.numCpus(1.0), Resource.ramMb(1024), Resource.diskMb(1024), Resource.namedPort("http"))));
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.ambari.server.configuration.ComponentSSLConfiguration; import org.apache.ambari.server.controller.internal.URLStreamProvider;
0
/* getContext().ungetService(sr);
0
private static final Set<String> pkPropertyIds = new HashSet<>( Arrays.asList(new String[]{TASK_ATTEMPT_CLUSTER_NAME_PROPERTY_ID, TASK_ATTEMPT_WORKFLOW_ID_PROPERTY_ID, TASK_ATTEMPT_JOB_ID_PROPERTY_ID, TASK_ATTEMPT_ID_PROPERTY_ID})); Set<Resource> resourceSet = new HashSet<>(); Map<Type,String>...
1
import com.twitter.aurora.scheduler.quota.QuotaManager.QuotaManagerImpl; private final QuotaManagerImpl quotaManager; QuotaFilter(QuotaManagerImpl quotaManager, Storage storage) {
0
package org.apache.beam.sdk.extensions.euphoria.executor.local; import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.AccumulatorProvider; import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.Counter; import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.Histogram...
0
* A structure for storing state kept during a test. This class is not thread-safe. State() {} * @param key * key for object * @param value * object * @param key * key for object * @param key * key for object * @throws RuntimeException * if s...
0
import org.apache.hc.core5.http.io.SocketConfig;
0
log.info("Checking that metadata only has two WALs recorded for this table (inUse, and opened)");
0
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper; public void initializeSecurity(InstanceTokenWrapper itw, String rootuser) throws AccumuloSecurityException {
0
addHostToCluster("h3", service.getCluster().getClusterName()); ServiceComponentHost schCheck = sc.getServiceComponentHost("h2"); Assert.assertNotNull(schCheck); Assert.assertEquals("h2", schCheck.getHostName()); ServiceComponentHost sch3 = serviceComponentHostFactory.createNew(sc, "h3", fal...
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 com.google.inject.persist.jpa.AmbariJpaPersistService; final AmbariJpaPersistService ambariJpaPersistService = injector.getInstance(AmbariJpaPersistService.class); // assertFalse(ambariJpaPersistService.isWorking()); // assertFalse(ambariJpaPersistService.isWorking()); // assertFalse(ambariJpaPe...
0
/** Current maxClientCnxns allowed from a particular host */ public int getMaxClientCnxnsPerHost(); /** * @return the minimum number of milliseconds allowed for a session timeout */ public int getMinSessionTimeout(); /** * @return the maximum number of milliseconds allowed for a...
0
import java.nio.charset.StandardCharsets; byte[] bytes = output.getBytes(StandardCharsets.UTF_8); byte[] len = String.format("%6s#", Integer.toString(bytes.length, 36)).getBytes(StandardCharsets.UTF_8); String strLen = new String(len, StandardCharsets.UTF_8); String strFields = new String(bytes, Standar...
0
public int getPartition(T element) {
0
} catch (Exception ex) {
0
import org.apache.atlas.impala.model.LineageVertexMetadata; updateVertexMap(vertex); // Update internal maps using this vertex. private void updateVertexMap(LineageVertex vertex) { verticesMap.put(vertex.getId(), vertex); vertexNameMap.put(vertex.getVertexId(), new ImpalaNode(vertex)...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; }
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...
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
new DocumentLoader(userAgent));
0
import org.apache.felix.scrplugin.helper.IssueLog; protected void logWarn(IssueLog iLog, String message) { iLog.addWarning( "@" + this.tag.getName() + ": " + message, tag.getSourceLocation(), tag.getLineNumber() ); } protected void logError(IssueLog iLog, String message) { iLog.addError( "@...
0
opts.setConnectionInfo(getConnectionInfo());
0
getBaseOutputDirectory(), dynamicDestinations, Compression.UNCOMPRESSED) { getBaseOutputDirectory(), dynamicDestinations, Compression.UNCOMPRESSED); getBaseOutputDirectory(), dynamicDestinations, Compression.UNCOMPRESSED) { getBaseOutputDirectory(), dynamicDestinations, C...
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 ...
1
import org.apache.cocoon.util.AbstractLogEnabled; implements AutoIncrementModule, Configurable, Disposable { protected HashMap settings;
0
mapIds.put(Resource.Type.User, userName);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/pointers/Attic/PropertyOwnerPointer.java,v 1.4 2002/04/12 02:28:06 dmitri Exp $ * $Revision: 1.4 $ * $Date: 2002/04/12 02:28:06 $ * @version $Revision: 1.4 $ $Date: 2002/04/12 02:28:0...
0
import java.io.IOException; import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.util.ShutdownUtil; import org.apache.accumulo.fate.util.UtilWaitThread; blockIfHadoopShutdown(tid, e); private boolean isIOException(Throwable e) { if (e == null) return false; if (e ...
0
final List<K> list = new ArrayList<>(confirmed.keySet());
1
* * @return the input stream
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
import org.apache.accumulo.core.client.admin.SamplerConfiguration; import org.apache.accumulo.core.sample.impl.SamplerConfigurationImpl; private void clearSamplerOptions(String tableName) throws AccumuloException, TableNotFoundException, AccumuloSecurityException { String prefix = Property.TABLE_SAMPLER_OPTS.getK...
1
public static class FileInfo { public static class Files implements Iterable<FileInfo> {
0
* * * * @version $Revision: 1.5 $ //-------------------------------------------------------------------------
1
import org.apache.felix.webconsole.DefaultVariableResolver; DefaultVariableResolver vr = ( DefaultVariableResolver ) WebConsoleUtil.getVariableResolver( request ); if ( getShellService() == null ) { vr.put( "shell.status", "Shell Service not available" ); vr.put( "shell.d...
0
import org.apache.accumulo.core.client.Accumulo; try (AccumuloClient c = Accumulo.newClient().from(getClientProps()).build()) {
0
* * <h3>Event Timestamp and Watermark</h3> * By default record timestamp and watermark are based on processing time in KafkaIO reader. * This can be overridden by providing {@code WatermarkFn} with * {@link Read#withWatermarkFn(SerializableFunction)}, and {@code TimestampFn} with * {@link Read#withTimestampFn(Ser...
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 ...
0
boolean success = getServiceInternal(); if ( success ) { m_useCount.incrementAndGet(); return m_componentContext.getImplementationObject( true ); } else { return null; } } @Override boolean getServiceInternal() ...
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 applicabl...
0
//TODO test fails because offset of some hundreds of ms beween expect and actual
0
implements Builders.WindowBy<T, OutputBuilder<T, VALUE, OUT>> {
0
@Override @Override
0
import org.apache.hc.core5.util.Timeout; public static final Timeout TIMEOUT = Timeout.ofSeconds(30); public static final Timeout LONG_TIMEOUT = Timeout.ofSeconds(60); IOReactorConfig.custom() .setSoTimeout(TIMEOUT) .build(),
0
/** Tests of SerializableAvroCodecFactory. */ private final List<String> avroCodecs = Arrays.asList(NULL_CODEC, SNAPPY_CODEC, DEFLATE_CODEC, XZ_CODEC, BZIP2_CODEC); SerializableAvroCodecFactory codecFactory = new SerializableAvroCodecFactory(CodecFactory.fromString(codec)); SerializableAvr...
1
expectedLogs .apply( new Statement() { @Override public void evaluate() throws Throwable { evaluateRan[0] = true; expectedLogs.verifyNotLogged(messageUnexpected); LOG.info(messageExpected); expectedLogs.v...
1
// No alternative api in hadoop 20
0
import org.apache.commons.vfs.provider.UriParser; FileName name = getFileSystemManager().resolveName(getRootName(), UriParser.encode(entry.getName()));
0
Map<KeyExtent,TServerInstance> assignments = new HashMap<KeyExtent,TServerInstance>();
0
import org.apache.cocoon.util.AbstractLogEnabled; public abstract class ForwardRedirector extends AbstractLogEnabled implements Redirector, PermanentRedirector { String newURL, boolean permanent, ...
0
package org.apache.commons.vfs2.cache; import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.test.AbstractProviderTestCase;
1
else if ( uri != null ) { schema = factory.compileSchema(in, uri); } else{
0
package org.apache.commons.codec.binary;
1
/* * 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 java.util.Comparator; import java.util.function.Function; Collections.unmodifiableMap( GenericUtils.toSortedMap(MODES, PtyMode::toInt, Function.identity(), Comparator.naturalOrder()));
0
if (m == null) m = e.getClass().getName();
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 java.util.function.Predicate; Predicate<String> all = x -> true;
0
* @version CVS $Id$ public interface Cache {
0
public interface TabletServerMinCMetricsMBean extends TabletServerMinCMetricsKeys {
1
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestPredicatedBag.java,v 1.5 2003/11/02 16:20:36 scolebourne Exp $ import org.apache.commons.collections.AbstractTestBag; * @version $Revision: 1.5 $ $Date: 2003/...
0
import java.io.ByteArrayInputStream; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import org.apache.xml.security.c14n.*; import org.apache.xml.security.signature.Reference; import org.apache.xml.security.signature.ReferenceNotInitializedException; import org.ap...
0
return new HashBag<>();
1
import org.apache.beam.sdk.values.BeamRecordType; public static BeamRecordType inputRowType; inputRowType = initTypeOfRow(columnMetadata); public static BeamRecordType initTypeOfRow(List<KV<String, SqlTypeName>> columnMetadata){ BeamRecordType rowType = initTypeOfRow(columnMetadata);
0
* Autogenerated by Thrift Compiler (0.11.0) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.11.0)")
0
/** * Thrown when there are insufficient resources to satisfy a request. */ public static class InsufficientResourcesException extends RuntimeException { InsufficientResourcesException(String message) { super(message); } }
0
/** Base class for test description of a test case. */ * <p>These outputs will be compared irrespective of order. * @return list of expected outputs that will be compared irrespective of order
0
* Copyright 2002-2005 The Apache Software Foundation.
0
import org.apache.beam.sdk.io.aws.options.S3Options; import org.apache.beam.sdk.options.PipelineOptionsFactory; S3Options options = PipelineOptionsFactory.fromArgs().withValidation().create().as(S3Options.class); int uploadBufferSize = 5_242_880; options.setS3UploadBufferSizeBytes(uploadBufferSize);...
0
input.getWindows().stream()
0
import org.apache.accumulo.core.client.impl.Credentials;
1
package org.apache.felix.ipojo.tests.core.component; import org.apache.felix.ipojo.tests.core.service.MyService; public class MyComponent implements MyService { public void foo() { // Nothing to do. } }
0
/** * @see java.lang.Object#toString() */ public String toString() { return "AvalonServiceSelector[" + super.toString() + "]: role=" + this.role + ", factory=" + this.beanFactory; }
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
* Builder chained when invoking {@link LinkedRuleBuilder#callParam()}.
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Attic/DualHashBidiMap.java,v 1.2 2003/10/09 20:21:32 scolebourne Exp $ import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java....
0
import org.apache.ambari.server.actionmanager.ActionDBAccessor; ActionDBAccessor actionDBAccessor; actionDBAccessor = mock(ActionDBAccessor.class); bind(ActionDBAccessor.class).toInstance(actionDBAccessor);
1
String startStr = new SimpleDateFormat("HH:mm:ss.SSS").format(new Date(start));
0
void execute(T iface) throws Exception;
1
public interface Window extends org.apache.batik.w3c.dom.Window {
0
import org.apache.http.impl.nio.reactor.AbstractIODispatch; * @deprecated use {@link DefaultHttpServerIODispatch}
0
final InstructionHandle[] pair = new InstructionHandle[2];
0
return addAlias( elementName ).forProperty( null ); * @deprecated @Deprecated return addAlias( elementName ).forProperty( propertyName ); } /** * Allows element2property mapping to be overridden. * * @param elementName * @return the property alias builder * @si...
0
public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException {
0
import java.util.Comparator; public static final Comparator<File> SIZE_COMPARATOR = new SizeFileComparator(); public static final Comparator<File> SIZE_REVERSE = new ReverseComparator(SIZE_COMPARATOR); public static final Comparator<File> SIZE_SUMDIR_COMPARATOR = new SizeFileComparator(true); public sta...
0
public class SimpleIOReactorExceptionHandler implements IOReactorExceptionHandler {
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
/** Test usage of hints in different operators. */
0
PCollection<TableRow> eventsTable = p.apply(BigQueryIO.read().from(GDELT_EVENTS_TABLE)); PCollection<TableRow> countryCodes = p.apply(BigQueryIO.read().from(COUNTRY_CODES));
0