Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
@JsonProperty("release_version") @JsonSerialize(include=Inclusion.NON_NULL) private String releaseVersion; AvailableVersion(String version, String versionId, String releaseVersion, Set<Component> components) { this.releaseVersion = releaseVersion; /** * @return the binary version of the available serv...
0
Arrays.asList(NAMESPACE_1, NAMESPACE_2, NAMESPACE_3), NAMESPACE_3, STRING_BAG_ADDR, WINDOW_3); Arrays.asList(NAMESPACE_1, NAMESPACE_2, NAMESPACE_3), NAMESPACE_3, SUM_INTEGER_ADDR, WINDOW_3);
0
* @version $Revision$ $Date$
0
import org.apache.ambari.server.configuration.Configuration; HostsMasterMaintenanceCheck hmmc = new HostsMasterMaintenanceCheck(); Configuration config = Mockito.mock(Configuration.class); Mockito.when(config.getRollingUpgradeMinStack()).thenReturn("HDP-2.2"); Mockito.when(config.getRollingUpgradeMaxSta...
0
// FELIX-1733: get a copy of the single component and clear // the field to prevent recreation in disposed(ICM) final ImmediateComponentManager singleComponent = m_singleComponent; m_singleComponent = null; singleComponent.dispose( reason ); if ( !m_components.is...
0
/** * Copyright 2016 Seznam a.s. * * 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 to...
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 2001,2003 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 applicable law...
0
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.google.common.base.Preconditions; import com.google.inject.BindingAnnotation; import com.google.inject.PrivateBinder; import com.twitter.common.base...
0
import com.google.cloud.dataflow.sdk.testing.RunnableOnService; @Category(RunnableOnService.class) @Category(RunnableOnService.class)
0
import org.apache.cocoon.portal.om.CopletInstance;
0
* thrown. If trying to put a new mapping into the map, an * IllegalArgumentException is thrown. This is because the put method can * using {@link java.util.Collections#synchronizedSortedMap}. This class may throw * * * @SuppressWarnings("unchecked") // (1) should only fail if input stream is incor...
0
RequestContextV1.get().setUser(TestUtilsV2.TEST_USER, null);
0
/* * $HeadURL$ * $Revision$ * $Date$ * * ==================================================================== * 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...
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
String idPlusDelim = uri.substring(XP_LENGTH, uri.length() - 2);
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Equivalence; import org.apache.beam.vendor.guava.v20_0.com.google.common.base.MoreObjects;
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...
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 ap...
1
* @version $Revision: 1.3 $ $Date: 2002/10/21 01:40:38 $ throw new UnsupportedOperationException( "vfs.provider.jar/jar-file-no-access.error" ); throw new UnsupportedOperationException( "vfs.provider.jar/jar-entry-no-access.error" );
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
} private void addOptions(StringBuilder sb, StatType selectedStatType) { for (StatType st : StatType.values()) { sb.append("<option").append(st.equals(selectedStatType) ? " selected='true'>" : ">").append(st.getDescription()).append("</option>"); } } private void doScript(StringBuilder sb, A...
0
public class H2AsyncRequester extends HttpAsyncRequester { public H2AsyncRequester(
0
private static final Collection<ByteSequence> EMPTY_COL_FAMS = new ArrayList<>(); HashSet<Text> docs = new HashSet<>(); TreeMap<Key,Value> map = new TreeMap<>(); ArrayList<SortedKeyValueIterator<Key,Value>> sourceIters = new ArrayList<>();
0
@Test public void unsafeDecodeLowerCase() throws Exception { assertEncoded("=\r\n", "=3d=0d=0a"); } @Test(expected = IOException.class) public void invalidCharDecode() throws Exception { assertEncoded("=\r\n", "=3D=XD=XA"); }
0
if (s.length()==0)
0
import org.apache.felix.service.command.Descriptor; import org.apache.felix.service.command.Parameter;
0
@Nullable MonitoringUtil.JobMessagesHandler messageHandler,
0
void loadClustersAndHosts() {
0
"Cluster102", "Service", "Component", null, "STARTED"), eq(mapRequestProps), eq(false))).andReturn(response).once();
0
public final class NullIsFalsePredicate<T> implements PredicateDecorator<T>, Serializable {
0
* Tests for {@link SimplePushbackSideInputDoFnRunner}. public class SimplePushbackSideInputDoFnRunnerTest { private SimplePushbackSideInputDoFnRunner<Integer, Integer> createRunner( SimplePushbackSideInputDoFnRunner<Integer, Integer> runner = SimplePushbackSideInputDoFnRunner.create(underlying, views, re...
0
@Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override @Override
0
preReconfigClient.reconfigure(serverConfig[joinerId], null, null, -1, null, null);
0
* @version $Id$
0
import com.twitter.concurrent.IVar.Schedule; import com.twitter.mesos.gen.ForceTaskStateResponse; import com.twitter.mesos.gen.ScheduleStatus; import static com.twitter.mesos.scheduler.SchedulerThriftInterface.transitionMessage; @Test public void testForceTaskState() throws Exception { String taskId = "task_id_...
0
this(service, serviceDisplay, priority, null); } public ServiceCheckStageWrapper(String service, String serviceDisplay, boolean priority, String host) { new TaskWrapper(service, "", null == host ? Collections.emptySet() : Collections.singleton(host), new ServiceChec...
0
import org.apache.ambari.server.controller.internal.AmbariServerConfigurationHandler; AmbariMetaInfo metaInfo, AmbariServerConfigurationHandler ambariServerConfigurationHandler) { super(recommendationsDir, recommendationsArtifactsLi...
0
* @version $Revision$ $Date$
0
import org.apache.accumulo.core.clientImpl.Table; import org.apache.accumulo.core.dataImpl.KeyExtent;
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
private final int TICK_TIME = 3000; ZooKeeperServer zs = new ZooKeeperServer(tmpDir, tmpDir, TICK_TIME); @Test /** * Verify access to the negotiated session timeout. */ public void testSessionTimeoutAccess() throws Exception { // validate typical case - requested == negoti...
0
assertEquals(8, ((BufferedHeader)h).getValuePos());
0
package org.apache.accumulo.test.randomwalk.image; import org.apache.accumulo.test.randomwalk.State; import org.apache.accumulo.test.randomwalk.Test;
0
import com.google.common.collect.ImmutableMap; import org.apache.aurora.gen.apiConstants; .setName(apiConstants.AURORA_EXECUTOR_NAME) public static final String THERMOS_TASK_PREFIX = "thermos-"; new ExecutorConfig(THERMOS_EXECUTOR_INFO, ImmutableList.of(), THERMOS_TASK_PREFIX); ImmutableMap.<String...
0
LOG.error(value + " does not have the form host:port or host:port:port");
0
import org.apache.http.impl.params.DefaultHttpParams;
0
* Copyright 2016-2017 Seznam.cz, a.s.
0
* The serial version ID. */ private static final long serialVersionUID = -1316746661346991484L; /**
0
Map<Long, Host> hostMap = new HashMap<Long, Host>(); Long hostId = 1L; hostMap.put(hostId, host); hostId++;
0
package com.twitter.mesos.executor.migrations.v0_v1; import java.util.logging.Logger; import com.twitter.mesos.Tasks; import com.twitter.mesos.executor.DeadTask; import com.twitter.mesos.executor.TaskOnDisk.TaskStorageException; import com.twitter.mesos.executor.migrations.DeadTaskMigrator; import com.twitter.mesos.g...
0
import org.apache.ambari.server.configuration.AmbariServerConfigurationKey; return AmbariServerConfigurationKey.GROUP_OBJECT_CLASS.key();
0
/* * Copyright 2000-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 applic...
0
import java.util.concurrent.TimeUnit; import org.apache.sshd.common.future.CloseFuture; import org.apache.sshd.common.util.CloseableUtils; try { CloseFuture future = CloseableUtils.parallel(sessions.values()).close(true); future.await(5, TimeUnit.SECONDS); } catch (Exception e) {...
0
clusterCommands.put("stack", "ClusterStack"); HashMap<String, String> stackCommands = new HashMap<String, String>(); stackCommands.put("list", "StackList"); stackCommands.put("history", "StackHistory"); stackCommands.put("add", "StackAdd"); stackCommands.put("get", "Stack...
0
// services, properties, references this.processServices(current, container); this.processProperties(current, container, ocd); this.processReferences(current, container);
0
import org.apache.accumulo.core.data.TableId; Scanner s = new ScannerImpl(context, TableId.of("foo"), Authorizations.EMPTY); Scanner s = new ScannerImpl(context, TableId.of("foo"), Authorizations.EMPTY); Scanner s = new ScannerImpl(context, TableId.of("foo"), expected); new ScannerImpl(context, TableId....
0
import org.apache.http.nio.impl.reactor.SessionInputBuffer;
0
@CmdLine(name = "framework_announce_principal", help = "When 'framework_authentication_file' flag is set, the FrameworkInfo " + "registered with the mesos master will also contain the principal. This is " + "necessary if you intend to use mesos authorization via mesos ACLs. " + "Th...
0
import org.junit.Ignore; c.createClusterVersion(sourceStack, sourceRepo, "admin", RepositoryVersionState.INSTALLING); entity.setState(RepositoryVersionState.INSTALLING); c.createClusterVersion(sourceStack, sourceRepo, "admin", RepositoryVersionState.INSTALLING); entityTarget.setState(RepositoryVersionSt...
0
/* Copyright 2002-2003 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 applica...
0
import org.apache.commons.configuration.ex.ConfigurationException;
0
private final ZooCache zooCache; private final long updateCount; this.zooCache = zooCache; // important to read this first this.updateCount = zooCache.getUpdateCount(); public boolean isCurrent(ZooCache zc) { return this.zooCache == zc && this.updateCount == zc.getUpdateCount(); }
0
{"Dyun", "TN11111111"}}; /** * Tests examples from http://en.wikipedia.org/wiki/Caverphone * * @throws EncoderException */ public void testWikipediaExamples() throws EncoderException { // Is this a bug of a Caverphone 1.0 vs 2.0 issue? // String[][] data = {{"Lee...
0
* * * * * * * * * * * * * * * * * * * * * * * * * ...
0
/* ==================================================================== * Copyright (c) 2001-2004 The Apache Software Foundation. All rights * @version $Revision: 1.2 $ $Date: 2004/01/14 21:43:09 $
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
// Implementation methods
0
import java.io.IOException; import java.io.OutputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; import java.util.Iterator; import java.util.Map; * @version $Id: EnvironmentWrapper.java,v 1.2 2003/03/12 12:55:16 cziegeler Exp $ public void changeToLastContext() { ...
0
* * @version CVS $Id: FormattingLongConvertorBuilder.java,v 1.2 2003/12/31 17:15:46 vgritsenko Exp $
0
@SuppressWarnings("deprecation") Instance i = new ZooKeeperInstance(ClientConfConverter.toClientConf(props)); instance = i;
0
import org.apache.accumulo.core.client.security.tokens.PasswordToken;
0
for (String describe : describes) { assertTrue("Property '" + describe + "' is present", map.containsKey(describe));
0
boolean debugEnabled = log.isDebugEnabled(); if (debugEnabled) { log.debug("Send SSH_MSG_USERAUTH_REQUEST for password"); } if (debugEnabled) { log.debug("Received SSH_MSG_USERAUTH_SUCCESS"); } if (debugE...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; assertEquals(nodeList.getLength(), 1); assertEquals(1, testSecurityEventListener.getSecurityEvents(SecurityEventConstants.SignedElement).size()); assertEquals(1, testSecurityEventListener.getSecurityEvents(Securit...
0
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class Key implements org.apache.thrift.TBase<Key, Key._Fields>, java.io.Serializable, Cloneable, Comparable<Key> { public enum _Fields implements org.apache.thrift.TFieldIdEnum {
0
Predicate<Optional<Field>> fieldFilter = maybeField -> maybeField.isPresent() && filter.apply(maybeField.get());
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
/** TODO: complete javadoc. */
0
import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; * @return true if the connection is paused, otherwise false public boolean pauseCnxn(final long ms) { final CountDownLatch initiatedPause = new CountDownLatch(1); } finally { ...
0
import javax.inject.Named; import org.apache.ambari.server.configuration.Configuration; import org.apache.ambari.server.security.encryption.Encryptor; import com.google.gson.GsonBuilder; Gson gson, AmbariEventPublisher eventPublisher, LockFactory lockFactory, Configuration serverConfiguration, @Named("Confi...
0
private final String path;
0
* @version CVS $Id: Field.java,v 1.14 2003/10/24 22:49:08 joerg Exp $
0
* @param img the image to use in creating the graphics node subCtx = ctx.createSubBridgeContext((SVGOMDocument)imgDocument); if ((eng == null) && ctx.isInteractive()) { // If we "created" this document then add listerns. }
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
* * * * //------------------------------------------------------------------------- context.setVariable(var, broker); invokeBody(output); broker = PersistenceBrokerFactory.defaultPersistenceBroker(); context.setVariable(var, broker); invokeBody(...
1
stderr.println("usage: scp [-P port] [-i identity] [-v[v][v]] [-E logoutput] [-r] [-p] [-q] [-o option=value] [-w password] <source> <target>");
0
static byte[] confChecksum = null;
0
import org.apache.http.util.Args; Args.notNull(handler, "HTTP client handler"); Args.notNull(sslcontext, "SSL context"); Args.notNull(params, "HTTP parameters");
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables;
0
map = new HashMap<>(); map = new HashMap<>();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestListDoubleList.java,v 1.3 2003/10/05 20:48:58 scolebourne Exp $ * @version $Revision: 1.3 $ $Date: 2003/10/05 20:48:58 $ protected String[] ignor...
0
private DefaultListeningIOReactor ioReactor; this.ioReactor = new DefaultListeningIOReactor(new NoopIOEventHandlerFactory(), reactorConfig, null); if (this.ioReactor != null) { this.ioReactor.close(CloseMode.IMMEDIATE); ioReactor.start(); Set<ListenerEndpoint> endpoints =...
0
/* $Id$
0
* @see File#pathSeparator
0
// re-evaluate tag propagation removeTagPropagation(edge);
1
import org.apache.hc.core5.http.io.SocketConfig;
0
* Copyright (C) 2015 Google Inc.
0
InstanceDescription id = ((Architecture) osgiHelper.getRawServiceObject(arch_ref)).getInstanceDescription(); id = ((Architecture) osgiHelper.getRawServiceObject(arch_ref)).getInstanceDescription(); CheckService cs = (CheckService) osgiHelper.getRawServiceObject(cs_ref); id = ((Architectu...
0
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Sets;
0