Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
name = LogFeederConstants.USE_ZK_FILTER_STORAGE_PROPERTY, description = "Use zk as a log level filter storage (works only with local config)", examples = {"true"}, defaultValue = LogFeederConstants.USE_ZK_FILTER_STORAGE_DEFAULT + "", sources = {LogFeederConstants.LOGFEEDER_PROPERTIES_FILE} ) @Va...
0
public HttpEntityWrapper(final HttpEntity wrappedEntity) { public void writeTo(final OutputStream outstream)
0
if (metricsGatherer != null) metricsGatherer.startBlock(); if (!checkRange) if (metricsGatherer != null) metricsGatherer.addMetric(rk.getKey(), val); if (metricsGatherer != null) { metricsGatherer.startLocalityGroup(rk.getKey().getColumnFamily()); metricsGath...
0
final HttpHost target = new HttpHost("nghttp2.org"); final String requestURI = "/httpbin/";
0
implements TestMap.SupportsPut
0
HostConfigEntry entry = resolver.resolveEffectiveHost(host, port, localAddress, username, context); HostConfigEntry entry = resolver.resolveEffectiveHost(host, port, localAddress, username, context); return connect(entry, context, localAddress);
0
import org.apache.accumulo.core.data.TableId; public TableId tableID; public ProblemDetailInformation(String tableName, TableId tableId, String type, String server,
0
import org.apache.aurora.scheduler.app.ServiceGroupMonitor;
0
import org.apache.beam.sdk.coders.RowCoder; return RowCoder.estimatedSizeBytes(row); }
0
* @version CVS $Id: RepeaterJXPathBinding.java,v 1.5 2004/04/23 11:42:58 mpo Exp $ Repeater repeater = (Repeater) (Repeater) selectWidget(frmModel, this.repeaterId); Repeater repeater = (Repeater) selectWidget(frmModel, this.repeaterId);
0
import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ListMultimap; ListMultimap<String, FnDataReceiver<WindowedValue<?>>> consumers = ArrayListMultimap.create();
0
import java.util.Locale; String name = getSchemeName(); if (name != null) { return name.toUpperCase(Locale.US); } else { return super.toString(); }
0
ConfigurationManager.populateFields(job, config);
0
import org.apache.accumulo.gc.SimpleGarbageCollector.GCOpts; private GCOpts opts; opts = new GCOpts();
0
public void addMessage( final String message ) {
0
return new ZooKeeperInstance(getInstanceName(), ServerConfiguration.getSiteConfiguration().get(Property.INSTANCE_ZK_HOST));
1
import org.slf4j.Logger; import org.slf4j.LoggerFactory; LOG.info("Follower sid: " + sid + " : info : " + leader.self.quorumPeers.get(sid)); LOG.info("Synchronizing with Follower sid: " + sid +" maxCommittedLog=0x"+Long.toH...
0
/** * @see <A HREF="https://tools.ietf.org/html/draft-sgtatham-secsh-iutf8-01">IUTF8 Terminal Mode in Secure Shell</A> */ IUTF8(42), for (PtyMode c : PtyMode.MODES) {
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(NumEvents.class);
0
import org.apache.felix.upnp.basedriver.util.Converter;
0
.setWindowFn(WindowingStrategyTranslation.toProto(transform.getWindowFn(), components)) return WindowingStrategyTranslation.windowFnFromProto(spec);
0
/** * @deprecated since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead. */ @Deprecated @Deprecated this.fs = fs;
0
package org.apache.aurora.scheduler.storage;
0
} catch (final IOException ignore) { } catch (final Exception ex) { } catch (final RuntimeException ex) {
0
* Copyright 2016 Seznam.cz, a.s.
0
import org.apache.felix.serializer.impl.Util;
0
import java.util.Set; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadPoolExecutor; private final ThreadPoolExecutor listenerExecutorService; private final WorkerPoolExecutor workerExecutorService; this.listenerExecutorService = new ThreadPoolExecutor( 1, ...
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
/* * 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
package org.apache.accumulo.master.tableOps.tableImport;
0
ClientContext context = new ClientContext(client); ClientContext context = new ClientContext(client);
0
import org.apache.ambari.server.controller.spi.ResourceProvider; * * @param request public RequestStatus deleteResources(Request request, Predicate predicate) return deleteResourcesAuthorized(request, predicate); * This method must be overwritten if {@link ResourceProvider#deleteResources(Request, Predic...
0
package org.apache.http.impl.client.cache;
0
values.put(CSSConstants.CSS_AUTO_VALUE, values.put(CSSConstants.CSS_HIDDEN_VALUE, values.put(CSSConstants.CSS_SCROLL_VALUE, values.put(CSSConstants.CSS_VISIBLE_VALUE, return false; return CSSConstants.CSS_OVERFLOW_PROPERTY;
1
* Copyright 2001-2005 The Apache Software Foundation
0
case Widget: resourceDefinition = new WidgetResourceDefinition(); break; case WidgetLayout: resourceDefinition = new WidgetLayoutResourceDefinition(); break;
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 int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, IOException { if (p != null && shellState.getConnector().securityOperations().hasSystemPermission(user, p)) { if (p != null && shell...
0
/** Verify metrics support for {@link Source Sources} in streaming pipelines. */ @Rule public final transient TestPipeline pipeline = TestPipeline.create(); assertThat( metrics.getCounters(), hasItem( attemptedMetricsResult( ELEMENTS_READ.getNamespace(), ...
1
import org.apache.http.util.EntityUtils; EntityUtils.consume(entity);
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
import cz.seznam.euphoria.shadow.com.google.common.io.Closeables; * Convert {@link Iterable} to {@link ExternalIterable}. * @throws InterruptedException if interrupted Iterable<T> what, Comparator<T> comparator) throws InterruptedException; * @throws InterruptedException if interrupted default <T> Exte...
0
* * * * * * * * * * *
0
import org.apache.ambari.server.api.services.stackadvisor.StackAdvisorResponse; public class ValidationResponse extends StackAdvisorResponse {
0
try (AccumuloClient c = createAccumuloClient()) {
0
private void validateExpiration(final Map<String, String> map, final long timeout) { } catch (final InterruptedException e) {
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
/* * 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
package org.apache.commons.vfs2.provider.gzip; import org.apache.commons.vfs2.Capability; import org.apache.commons.vfs2.FileName; import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.FileSystemOptions; import org.apache.commons.vfs2.provider.comp...
1
package org.apache.felix.ipojo.runtime.core.test.components; import org.apache.felix.ipojo.annotations.Bind; import org.apache.felix.ipojo.annotations.Component; import org.apache.felix.ipojo.annotations.Requires; import org.apache.felix.ipojo.annotations.Unbind; import org.apache.felix.ipojo.runtime.core.test.service...
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
* @version CVS $Id: EP_Bottom.java,v 1.4 2004/01/31 08:50:39 antonio Exp $ public class EP_Bottom extends BaseElementProcessor { public EP_Bottom() { double getPoints() throws IOException { if (_points == null) { int getPrefUnit() throws IOException { if (_pref_unit == null) {
0
package org.apache.ambari.metrics.adservice.prototype.methods.ema; import static org.apache.ambari.metrics.adservice.prototype.methods.ema.EmaTechnique.suppressAnomaliesTheshold;
0
public static final MethodAccessEntryValue ACCESSIBLE_NON_PUBLIC_METHOD = new MethodAccessEntryValue( true, true ); final boolean notPublic = !Modifier.isPublic( method.getModifiers() ) || !Modifier.isPublic( method.getDeclaringClass().getModifiers() ); if ( !method.isAccessible() )
0
* Operator for summing of long values extracted from elements. The sum is operated upon * defined key and window. * * Example: * * <pre>{@code * Dataset<Pair<String, Long>> summed = SumByKey.of(elements) * .keyBy(Pair::getFirst) * .valueBy(Pair::getSecond) * .output(); * }</pre> publi...
0
import org.apache.accumulo.core.data.TableId; public void deleteProblemReport(TableId table, ProblemType pType, String resource) { public void deleteProblemReports(TableId table) throws Exception { private static boolean isMeta(TableId tableId) { public Iterator<ProblemReport> iterator(final TableId table) { ...
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 static com.google.common.base.Preconditions.checkNotNull; import com.google.common.annotations.VisibleForTesting; checkNotNull(uri, "uri"); checkNotNull(database, "database"); checkNotNull(collection, "collection"); checkNotNull(uri, "uri"); checkNotNull(database, "database"); ...
0
* Checkpoint for a {@link KafkaUnboundedReader}. Consists of Kafka topic name, partition id, and * the latest offset consumed so far. public KafkaCheckpointMark( List<PartitionMark> partitions, Optional<KafkaUnboundedReader<?, ?>> reader) { * A tuple to hold topic, partition, and offset that comprise the c...
1
private NodesCache nodesCache; } else { this.nodesCache = new NodesCache(zooKeeper); return nodesCache.getChildren(nodePath); return this.nodesCache.getNodeChild(nodePath, childIndex); List<String> children = this.nodesCache.getChildren(parentPath); ...
0
* Copyright 2001-2005 The Apache Software Foundation
0
start(server, hostname, Collections.<String,String> emptyMap(), Integer.MAX_VALUE);
0
REGISTRATION_COMMAND, ALERT_DEFINITION_COMMAND
0
private final ControlClientPool<FnApiControlClient> pool = QueueControlClientPool.createBuffering();
0
import java.nio.charset.UnsupportedCharsetException; public void testConstructor_File_encoding_badEncoding() throws IOException { } catch (UnsupportedCharsetException ex) {
0
DoFnTester<Query, Query> doFnTester = DoFnTester.of(splitQueryFn); List<Query> queries = doFnTester.processBundle(QUERY); DoFnTester<Query, Query> doFnTester = DoFnTester.of(splitQueryFn); List<Query> queries = doFnTester.processBundle(QUERY); DoFnTester<Query, Query> doFnTester = DoFnTester.of(spli...
0
import org.apache.hc.core5.http.HttpException;
0
filt = ImageTagRegistry.getBrokenLinkImage (this, errCode, errParam); dr.setSource(filt);
0
public void accept( final Visitor v ) {
0
* @param <T> handler type /** * Creates a new handler instance based on properties of * an incoming request message.. * * @param request the incoming reqquest head. * @param context the actual execution context. * @return handler */
0
public class TransformedSortedMap<K, V> extends TransformedMap<K, V> implements SortedMap<K, V> { public static <K, V> SortedMap<K, V> decorate(SortedMap<K, V> map, Transformer<? super K, ? extends K> keyTransformer, Transformer<? super V, ? extends V> valueTransformer) { ...
0
condition.setStatement(String.format(GET_METRIC_AGGREGATE_ONLY_SQL, tableName)); currentMetric.setStartTime(endTime); currentMetric.setStartTime(endTime);
0
public static <A extends Appendable> A appendHex(A sb, char sep, byte ... array) throws IOException { return appendHex(sb, array, 0, NumberUtils.length(array), sep); }
0
import org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode;
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 static final Set<ByteSequence> EMPTY_CF_SET = Collections.emptySet();
1
import com.twitter.aurora.gen.storage.Constants; return LogEntry.transaction( new Transaction(ImmutableList.copyOf(ops), Constants.CURRENT_SCHEMA_VERSION));
0
/** Whether this is an empty set of requirements. */ public boolean isEmpty() { return sideInputs.isEmpty(); }
0
try { if (rset != null) rset.close(); } catch(Exception e) { } try { if (stmt != null) stmt.close(); } catch(Exception e) { } try { if (conn != null) conn.close(); } catch(Exception e) { }
0
new DefaultHttpResponseFactory()); new BufferingAsyncRequestHandler(null, new DefaultHttpResponseFactory()); new BufferingAsyncRequestHandler(this.requestHandler, null);
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
public Date multiply(Date d0, Date d1) { throw new ArithmeticException("unsupported"); } public void testOperatorError() throws Exception { testOperatorError(true); testOperatorError(false); } private void testOperatorError(boolean silent) throws Exception { ...
0
private File wrapperScript = TestUtil.resolveScriptForOS(testDir + "/wrapper"); * Test EXEC-57 (https://issues.apache.org/jira/browse/EXEC-57). * * DefaultExecutor.execute() does not return even if child process terminated - in this * case the child process hangs because the grand children is c...
0
new String[] {String.format("--runner=%s", FlinkRunner.class.getName())}; assertEquals(opts.getRunner(), FlinkRunner.class); new String[] {String.format("--runner=%s", FlinkRunner.class.getSimpleName())}; assertEquals(opts.getRunner(), FlinkRunner.class);
0
package org.apache.beam.runners.direct.portable; import org.apache.beam.runners.direct.DirectGraphs; import org.apache.beam.runners.direct.ExecutableGraph; import org.apache.beam.runners.direct.portable.CommittedResult.OutputType; @Rule public TestPipeline p = TestPipeline.create().enableAbandonedNodeEnforcement(fals...
0
Map<Table.ID,String> reverseTableIdMap = Tables.getIdToNameMap((ClientContext) client); Table.ID tableId = Tables.getTableId((ClientContext) client, tableName);
0
import org.apache.aurora.common.quantity.Amount; import org.apache.aurora.common.quantity.Time;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Digester.java,v 1.5 2001/06/11 19:56:18 craigmcc Exp $ * $Revision: 1.5 $ * $Date: 2001/06/11 19:56:18 $ * @version $Revision: 1.5 $ $Date: 2001/06/11 19:56:18 $ String bodyText ...
0
/** * @deprecated since 1.7.0 was never intended for public use. However this could have been used by anything extending this class. */ @Deprecated public class ScannerTranslator extends ScannerTranslatorImpl { public ScannerTranslator(Scanner scanner) { super(scanner, scanner.getSamplerConfigurat...
0
import org.apache.accumulo.core.security.Authorizations; /** * Returns the authorizations that have been set on the scanner * @since 1.7.0 * @return * The authorizations set on the scanner instance */ Authorizations getAuthorizations();
0
/** Testing options for {@link #testCreateOfProvider()}. */
0
ClientConfig, StackLevelConfiguration; public static final Type StackLevelConfiguration = InternalType.StackLevelConfiguration.getType();
0
* @version $Id$
0
import org.apache.ambari.server.Role; import org.apache.ambari.server.controller.internal.TaskResourceProvider; private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("MM-dd-yyyy hh:mm:ss"); private static final Predicate PREDICATE = new PredicateBuilder().property(TaskResourceProvider.TASK_COMMAN...
0
import org.apache.cocoon.selection.Selector; * @version CVS $Id: SimpleSitemapExecutor.java,v 1.3 2004/06/17 13:52:35 cziegeler Exp $ * @see org.apache.cocoon.sitemap.SitemapExecutor#invokeSelector(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.selection.Selector, java.lang.String, o...
0
(bridgeContext, e, ex, ErrorConstants.ERR_URI_IMAGE_BROKEN,
0
* (TransmitTimestamp - DestinationTimestamp)) / 2
0
return Array.get(obj, property.intValue()); return Array.get(obj, index.intValue());
0
final Capture<ClassicHttpRequest> cap = EasyMock.newCapture(); final Capture<ClassicHttpRequest> cap = EasyMock.newCapture(); final Capture<ClassicHttpRequest> cap = EasyMock.newCapture(); final Capture<ClassicHttpRequest> cap = EasyMock.newCapture(); final Capture<ClassicHttpReq...
0
public static SVGAnimatedString getHref(Element elt) { throw new RuntimeException("!!! TODO: getHref()");
0