Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
/* * 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.accumulo.server.mini.MiniAccumuloCluster;
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
import org.apache.commons.configuration.event.ConfigurationEvent; addConfigurationListener(ConfigurationEvent.ANY, autoSaveListener); removeConfigurationListener(ConfigurationEvent.ANY, autoSaveListener);
0
* Types of timers that are supported. */ public enum TimeDomain { /** * Timers that fire based on the timestamp of events. Once set, the timer will fire when the * system watermark passes the specified time. */ EVENT_TIME, /** * Timers that fire based on the current processing t...
0
* Copyright 1999-2006 The Apache Software Foundation
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 n...
0
fail( "IllegalArgumentException not caught" );
0
this.start = start; this.end = end;
0
* @version $Id$
0
Method setter = getWriteMethod(target, prop, value); * Get the write method to use when setting {@code value} to the {@code target}. * * @param target Object where the write method will be called. * @param prop BeanUtils information. * @param value The value that will be passed to th...
0
* Copyright (c) OSGi Alliance (2000, 2013). All Rights Reserved. import org.osgi.annotation.versioning.ConsumerType; * @author $Id: 97c76c64c6e6595ad445dcc2d8083d52540f73b8 $ @ConsumerType
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
responseTrigger.submitResponse(new BasicResponseProducer(HttpStatus.SC_OK, "All is well"), context); responseChannel.sendInformation(new BasicHttpResponse(HttpStatus.SC_CONTINUE), context); responseChannel.sendRe...
0
* * * * * * * * * * public Writer(FSDataOutputStream fout, String compressionName, Configuration conf, boolean trackDataBlocks, AccumuloConfiguration accumuloConfiguration) throws IOException { * * * * * * * ...
0
import org.apache.beam.sdk.testing.NeedsRunner; import org.junit.experimental.categories.Category; @Category(NeedsRunner.class) @Category(NeedsRunner.class) @Category(NeedsRunner.class)
0
import org.apache.aurora.scheduler.storage.Storage.MutateWork.NoResult; storage.write((NoResult.Quiet) storeProvider -> storeProvider.getCronJobStore().saveAcceptedJob(CRON_JOB)); expectLastCall().andAnswer(() -> { firstExecutionTriggered.countDown(); firstExecutionCompleted.await(); r...
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
private final static Log LOG = LogFactory.getLog(StaticUserAuthenticator.class); if (type == UserAuthenticationData.DOMAIN) { } else if (type == UserAuthenticationData.USERNAME) { } else if (type == UserAuthenticationData.PASSWORD)...
0
try { featuresService.installFeature(f.getName(), f.getVersion()); } catch (Exception e) { LOGGER.error("Unable to install feature: " + f.getName(), e); ...
0
/* * Copyright (c) OSGi Alliance (2016, 2017). All Rights Reserved. * * 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 req...
0
import cz.seznam.euphoria.core.client.dataset.windowing.TimeInterval; ListDataSink<WindowedPair<TimeInterval, String, HashMap<String, Long>>> output Dataset<WindowedPair<TimeInterval, String, HashMap<String, Long>>> Pair.of(new TimeInterval(0, 10), Pair.of(new TimeInterval(10, 10), ...
0
import org.apache.http.entity.ContentLengthStrategy; conn = new BHttpConnectionBase(1024, 1024, null, null, MessageConstraints.DEFAULT); conn.outbuffer.write(0); Mockito.<byte[]>any(), Mockito.anyInt(), Mockito.anyInt()); Mockito.<byte[]>any(), Mockito.anyInt(), Mockito.a...
0
isMapReduce = true; log.info("Running test {}", className);
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
* 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
import com.google.common.collect.ImmutableSet; createClassTypeDef("B", ImmutableSet.of("A"), createOptionalAttrDef("b", DataTypes.BOOLEAN_TYPE)); createClassTypeDef("C", ImmutableSet.of("B"), createOptionalAttrDef("c", DataTypes.BYTE_TYPE)); createClassTypeDef("D", Immu...
0
/* * Copyright (c) 2003 World Wide Web Consortium, * * (Massachusetts Institute of Technology, European Research Consortium for * Informatics and Mathematics, Keio University). All Rights Reserved. This * work is distributed under the W3C(r) Software License [1] in the hope that * it will be useful, but WITHOUT 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 ...
0
import org.apache.hc.core5.testing.classic.LoggingSupport;
0
dataType = ctor.newInstance(new Object[0]); dataType = ctor.newInstance(new Object[] { getAntProject() });
0
if (configuration.useMetricsCacheCustomSizingEngine()) { // Use custom sizing engine to speed cache sizing calculations System.setProperty("net.sf.ehcache.sizeofengine." + TIMELINE_METRIC_CACHE_MANAGER_NAME, "org.apache.ambari.server.controller.metrics.timeline.cache.TimelineMetricsCacheSizeOfEn...
0
boolean secVal = Utils.secureValidation(context); xi.setSecureValidation(secVal);
0
import java.util.List; private final Map<String, Properties> repos; private final List<String> repositoryPath; private BldRepositoryManager manager; public BldResolver(List<String> repositoryPath, Map<String, Properties> repos) this.repositoryPath = repositoryPath; manager = new...
0
this(atlasProperties.getString(HIVE_CLUSTER_NAME, DEFAULT_CLUSTER_NAME), Hive.get(hiveConf), atlasClientV2, atlasProperties.getBoolean(HDFS_PATH_CONVERT_TO_LOWER_CASE, false)); ret.setAttribute(ATTRIBUTE_NAME, Path.getPathWithoutSchemeAndAuthority(path).toString());
0
MonitoringUtil.getGcloudCancelCommand(options, job.getJobId()));
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/CollectionIntCollection.java,v 1.7 2003/03/01 00:47:28 rwaldhoff Exp $ * @version $Revision: 1.7 $ $Date: 2003/03/01 00:47:28 $
0
* {@link org.apache.http.cookie.CookieSpecProvider} implementation that provides an instance of * {@link org.apache.http.impl.cookie.RFC2109Spec}. The instance returned by this factory * can be shared by multiple threads. private final CookieSpec cookieSpec; this.cookieSpec = new RFC2109Spec(datepatterns...
0
import java.io.IOException; * Configure the time to wait for ZooKeeper to startup. Calling this method is optional. The default is 20000 milliseconds /** * Informs MAC that it's running against an existing accumulo instance. It is assumed that it's already initialized and hdfs/zookeeper are already running. ...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractIteratorDecorator.java,v 1.2 2003/08/31 17:24:46 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowled...
0
import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE; import static com.fasterxml.jackson.annotation.JsonAutoDet...
0
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument; import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkNotNull; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.FluentIterable; import org.apache.beam.vendor.guava...
0
* @deprecated This block is deprecated and will be removed in future versions.
0
import static com.twitter.mesos.scheduler.configuration.ConfigurationManager.DEDICATED_ATTRIBUTE; import static com.twitter.mesos.scheduler.SchedulingFilterImpl.DEDICATED_HOST_VETO; expectGetHostAttributes(HOST_B); expectGetHostAttributes(HOST_C); assertThat(filterBuilder.filter(DEFAULT_OFFER, Optional.of(H...
0
StringBuilder buffer = new StringBuilder();
0
import java.util.Map.Entry; PipelineOptions clonedOptions; clonedOptions = MAPPER.readValue(MAPPER.writeValueAsBytes(proxy), PipelineOptions.class); for (Class<? extends PipelineOptions> knownIface : knownInterfaces) { clonedOptions.as(knownIface); } return clonedOptions.as(iface);
0
private boolean started; private Map<String, String> env;
0
* @version CVS $Id: HttpProxyGenerator.java,v 1.2 2003/03/16 17:49:06 vgritsenko Exp $
0
* @version CVS $Id: JavaScriptFlowTestCase.java,v 1.2 2004/06/14 14:53:57 stephan Exp $ /*String source = "resource://org/apache/cocoon/components/flow/javascript/calc.js"; callFunction("java", source, "calculator", new ArrayList());*/
0
/* * $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 * "Lice...
0
package org.apache.bcel.generic; super(org.apache.bcel.Const.LUSHR);
1
import org.apache.accumulo.cloudtrace.instrument.Trace;
0
* @version $Id$ setCommonProperties(widgetElement, actionDefinition);
0
public static final Role RANGER_ADMIN = valueOf("RANGER_ADMIN"); public static final Role RANGER_USERSYNC = valueOf("RANGER_USERSYNC"); public static final Role KNOX_GATEWAY = valueOf("KNOX_GATEWAY"); public static final Role KAFKA_BROKER = valueOf("KAFKA_BROKER"); public static final Role NIMBUS = valueOf("...
0
* @version $Id$
0
* Invoked when an MutationEvent of type 'DOMCharacterDataModified' * is fired. */ public void handleDOMCharacterDataModified(MutationEvent evt) { } /** for (Node n = node.getFirstChild(); n!=null; n = n.getNextSibling()) {
0
@Override
0
import org.apache.beam.sdk.testutils.metrics.TimeMonitor; private static final String FILEIOIT_NAMESPACE = TextIOIT.class.getName(); "Collect write start time", "Collect write end time", .apply("Collect read end time", ParDo.of(new TimeMonitor<>(FILEIOIT_NAMESPACE, "endTime...
0
import org.apache.hc.core5.http.Header; import org.apache.hc.core5.http.HeaderElement; import org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.http.HttpRequest; import org.apache.hc.core5.http.HttpVersion; import org.apache.hc.core5.http.ProtocolException; import org.apache.hc.core5.http.message.BasicHeade...
0
import org.apache.accumulo.core.client.impl.AuthenticationTokenIdentifier; import org.apache.accumulo.core.client.impl.DelegationTokenImpl; public void testDelegationTokenImpl() throws Exception { final DelegationTokenImpl token = new DelegationTokenImpl(new byte[0], new AuthenticationTokenIdentifier("user", 1, 1...
1
import org.apache.beam.vendor.grpc.v1_13_1.com.google.protobuf.ByteString;
0
//TODO manage enum annotations. * Visit a 'simple' annotation attribute.
0
* file of your choosing. You may also set {@literal --inputFile} to an empty string, which will
0
// TODO: Move the DataflowWorkerLoggingMDC into wrapper used on the Dataflow worker in // invokeProcessElement
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
0
import org.apache.accumulo.core.client.impl.BaseIteratorEnvironment; env = new MajCIteratorEnvironmentAdapter(); env = new MajCIteratorEnvironmentAdapter(); env = new MajCIteratorEnvironmentAdapter(); private static class MajCIteratorEnvironmentAdapter extends BaseIteratorEnvironment {
1
SimpleTimer.getInstance().schedule(new Runnable() {
0
details.getUpdate().getSummary().getUpdateId()); details.getUpdate().getSummary().getUpdateId());
0
* @param <E> the element type * @param <E> the element type * @return a new list containing the results * @param <E> the element type * @param <E> the element type * @return a new list containing the union of those lists * @param <E> the element type * @param inputCollection the...
0
import org.apache.http.impl.cookie.RFC2965SpecFactory; registry.register( CookiePolicy.RFC_2965, new RFC2965SpecFactory());
0
@SuppressWarnings("rawtypes") public static final ResettableIterator EMPTY_ITERATOR = EmptyIterator.RESETTABLE_INSTANCE; @SuppressWarnings("rawtypes") public static final ResettableListIterator EMPTY_LIST_ITERATOR = EmptyListIterator.RESETTABLE_INSTANCE; @SuppressWarnings("rawtypes") public stat...
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.avalon.excalibur.datasource.DataSourceComponent; import org.apache.avalon.framework.activity.Disposable; import org.apache.avalon.framework.component.Component; import org.apache.avalon.framework.service.Serviceable; import org.apache.avalon.framework.thread.ThreadSafe; import java.sql.Connection; imp...
0
final String user = cl.getOptionValue(userOpt.getOpt(), shellState.getAccumuloClient().whoami()); Authorizations auths = shellState.getAccumuloClient().securityOperations() shellState.getAccumuloClient().securityOperations().changeUserAuthorizations(user,
0
hdfsSiteMap.put("dfs.namenode.rpc-address", new SingleHostTopologyUpdater("NAMENODE"));
0
import java.util.function.Predicate; Predicate<String> all = x -> true;
0
package org.apache.beam.dsls.sql.planner; import org.apache.beam.dsls.sql.rel.BeamRelNode; import org.apache.beam.dsls.sql.rule.BeamFilterRule; import org.apache.beam.dsls.sql.rule.BeamIOSinkRule; import org.apache.beam.dsls.sql.rule.BeamIOSourceRule; import org.apache.beam.dsls.sql.rule.BeamProjectRule;
0
import cz.seznam.euphoria.core.client.flow.Flow; import cz.seznam.euphoria.core.client.functional.UnaryFunctor; import cz.seznam.euphoria.core.client.io.Collector; import cz.seznam.euphoria.core.client.util.Sums; .combineBy(Sums.ofLongs()) .combineBy(Sums.ofLongs())
0
public void testBigQueryQuerySourceEstimatedSize() throws Exception { List<TableRow> data = ImmutableList.of( new TableRow().set("name", "A").set("number", 10L), new TableRow().set("name", "B").set("number", 11L), new TableRow().set("name", "C").set("number", 12L)); PipelineOptions o...
0
"No TransformEvaluator registered for UNBOUNDED transform %s", clazz);
0
private byte[][] values = { public PGPDataTest() throws Exception { } pd.isFeatureSupported(null); fail("Should raise a NPE for null feature");
1
* 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
if (!res.getPopulateRequiredFlag()) { continue; }
0
NAMESPACE_DOESNT_EXIST;
0
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.InvalidProtocolBufferException; import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.Struct; import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.util.JsonFormat;
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger LOG = LoggerFactory.getLogger(LogSearchConfigFactory.class); if (configClassName != null && !"".equals(configClassName.trim())) { LOG.error("Could not initialize logsearch config.", e);
0
import org.apache.cocoon.configuration.Settings;
0
import static com.google.common.base.Charsets.UTF_8; byte[] sb = s.getBytes(UTF_8); String hs = new String(hex, UTF_8);
0
* the {@link org.apache.commons.net.tftp.TFTP} because * the {@link org.apache.commons.net.DatagramSocketClient#open open() }, * {@link org.apache.commons.net.DatagramSocketClient#close close() }, * {@link #sendFile sendFile() }, and * {@link #receiveFile receiveFile() } methods. Additionally, the * {@link #...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/GenericValidator.java,v 1.15 2003/04/29 02:15:35 dgraham Exp $ * $Revision: 1.15 $ * $Date: 2003/04/29 02:15:35 $ * <p>This class contains basic methods for performing validations....
0
for (int significantBit : significantBits) { cs.writeByte(significantBit); for (int aHist : hist) { cs.writeShort(aHist); for (byte aT : t) { cs.writeByte(aT);
0
Schema beamSQLSchema = buildBeamSqlSchema(args); return pCollectionBuilder().withSchema(type).withRows(rows); public PCollectionBuilder withSchema(Schema type) { * Convenient way to build a {@link Schema}. * buildBeamSqlSchema( public static Schema buildBeamSqlSchema(Object... args) {
0
import org.junit.BeforeClass; @BeforeClass public static void setProtocol() throws Exception { SimpleProxyBase.factory = new TTupleProtocol.Factory(); setUpProxy();
0
import org.apache.hc.core5.http.ReadableByteChannelMock; import org.apache.hc.core5.http.config.H1Config; H1Config.DEFAULT, null, null); H1Config.custom().setMaxLineLength(10).build(), null, null); H1Config.DEFAULT, StandardCharsets.US_ASCII); H1Config.cus...
1
import java.util.concurrent.ExecutionException; final List<Future> runningThreads = new ArrayList<>(); runningThreads.add(executor.submit(() -> { // propagate exception throw new RuntimeException(ex); })); // wait for all threads to finish for (Future f : running...
0
import static org.apache.ambari.logsearch.solr.SolrConstants.ServiceLogConstants.COMPONENT; @Field(COMPONENT)
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 TrackActionResponse createCluster(ClusterRequest request) throws AmbariException { // TODO return null; public TrackActionResponse createServices(ServiceRequest request) throws AmbariException { // TODO return null; public TrackActionResponse createComponents( return null; public Trac...
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/JXPathContext.java,v 1.2 2001/09/08 20:59:58 dmitri Exp $ * $Revision: 1.2 $ * $Date: 2001/09/08 20:59:58 $ * @version $Revision: 1.2 $ $Date: 2001/09/08 20:59:58 $ * Evaluates the x...
0
import java.io.Serializable; public abstract class MetricKey implements Serializable {
0