Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.ambari.server.state.Config; Map<String, String> kerberosConfiguration = getConfigurationProperties("kerberos-env"); /** * Retrieve the current set of properties for the requested config type for the relevant cluster. * * @return a Map of property names to property values for the reque...
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.clientImpl.ClientInfo;
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 m...
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...
0
cmd.setBackgroundCommand(true);
0
* The description container holds all {@link ComponentContainer}s. /** The list of {@link ComponentContainer}s. */ private final List<ComponentContainer> containers = new ArrayList<ComponentContainer>(); /** * Constructor * @param options The options for this module */ /** * Get the...
0
public void testKillTasksImmediate() throws Exception { expect(scheduler.getTasks(capture(queryCapture))) .andReturn(ImmutableSet.<ScheduledTask>of()); control.replay(); KillResponse response = thriftInterface.killTasks(query, SESSION); assertEquals(ResponseCode.OK, response.getResponseCode()...
0
public class FileChangeEvent { public FileChangeEvent(final FileObject file) { * public FileObject getFile() {
1
Set<Resource> setResources = new HashSet<>(); Set<Resource> setResources = new HashSet<>();
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
@Deprecated
0
import javax.xml.namespace.QName; import org.apache.xml.security.exceptions.XMLSecurityException; import org.apache.xml.security.stax.ext.XMLSecurityConstants; import org.apache.xml.security.stax.ext.stax.XMLSecEvent; void addWrappedToken(InboundSecurityToken securityToken); * Returns the absolute ...
0
MaintenanceStateHelper maintHelper = createNiceMock(MaintenanceStateHelper.class); expect(injector.getInstance(MaintenanceStateHelper.class)).andReturn(maintHelper); replay(maintHelper, injector, clusters, cluster, service, response); MaintenanceStateHelper maintHelper = createNiceMock(MaintenanceStateH...
0
* A Spark {@link Source} that is tailored to expose an {@link AggregatorMetric}, wrapping an * underlying {@link NamedAggregators} instance.
1
GcsOptions gcsOptions = options.as(GcsOptions.class); String gcpTempLocation = gcsOptions.getGcpTempLocation(); gcsOptions.getPathValidator().validateOutputFilePrefixSupported(gcpTempLocation);
0
package com.twitter.mesos.scheduler.storage.db; import java.io.IOException; import java.net.URL; import java.util.logging.Logger; import com.google.common.base.Charsets; import com.google.common.io.Resources; import org.springframework.jdbc.core.JdbcTemplate; /** * Utilities for dealing with DbStorage operations. ...
0
} else { // If force_toggle_kerberos is not specified, null will be returned. Therefore, perform an // equals check to yield true if the result is Boolean.TRUE, otherwise false. boolean forceToggleKerberos = kerberosHelper.getForceToggleKerberosDirective(requestProperties); if (for...
0
public String getElementTypeName() { return elementTypeName; } public int getMinCount() { return minCount; } public int getMaxCount() { return maxCount; } public AtlasType getElementType() { return elementType; }
0
protected Attribute(final byte tag, final int name_index, final int length, final ConstantPool constant_pool) public void dump(final DataOutputStream file) throws IOException public static void addAttributeReader(final String name, final AttributeReader r) public static void addAttributeReader(final Str...
0
if (o instanceof MockServer) return name.compareTo(((MockServer) o).name); if (newLoggers.size() >= numberOfLoggers) break; if (!result.containsKey(logger)) result.put(logger, 0);
1
import org.apache.felix.dm.DependencyManager; mavenBundle().groupId("org.osgi").artifactId("org.osgi.compendium").version(Base.OSGI_SPEC_VERSION),
0
cleanup.set(null);
0
return Integer.valueOf(((Number) arg).intValue()); return Integer.valueOf(arg.toString());
0
package org.apache.hc.core5.benchmark;
0
// try { // System.out.println(FileSystemUtils.getFreeSpace("C:\\")); // } catch (IOException ex) { // ex.printStackTrace(); // } assertEquals(true, FileSystemUtils.getFreeSpace("/") > 0);
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
* @param opts The FileSystemOptions. * @param opts The FileSystemOptions * @return The FTPFileEntryParserFactory. * @param opts The FileSystemOptions. * @param key The key. * @param opts The FileSystemOptions. * @return The key. * @param opts The FileSystemOptions. * @param ...
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Splitter;
0
@Override
0
/** * Key used to retrieve the value of the server identification string if not default. */ String SERVER_IDENTIFICATION = "server-identification"; * Retrieve the <code>FileSystemFactory</code> to be used to traverse the file system. * * @return a valid <code>FileSystemFactory</code> ob...
0
* @throws IOException if an input/output error occurs
0
/******************************************************************************* * Copyright (c) 2010 Neil Bartlett. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at ...
0
import java.util.Objects; if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; return Objects.equals(name, that.name) && Objects.equals(description, that.description) && Objects.equals(version, that.version) && Arr...
0
import java.security.Key; import java.security.PublicKey; import org.apache.xml.security.keys.content.keyvalues.DSAKeyValue; import org.apache.xml.security.keys.content.keyvalues.RSAKeyValue; import org.apache.xml.security.utils.Constants; import org.apache.xml.security.utils.JavaUtils; import org.apache.xml.security...
0
Table.ID.of(context.getClient().tableOperations().tableIdMap().get(tableName)));
0
@Override public Connection getConnection() throws SQLException { if (getPool() == null) { throw new IllegalStateException("Pool has not been set"); } if (transactionRegistry == null) { throw new IllegalStateException("TransactionRegistry has not been set"); ...
0
* limitations under the License.
0
public InvalidCanonicalizerException(String msgID, Object[] exArgs) { Exception originalException, String msgID, Object[] exArgs
0
public abstract class InternalH2ServerTestBase { public InternalH2ServerTestBase(final URIScheme scheme) { public InternalH2ServerTestBase() { protected H2TestServer server; server = new H2TestServer(IOReactorConfig.DEFAULT,
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/util/BasicTypeConverter.java,v 1.11 2003/11/02 23:21:06 dmitri Exp $ * $Revision: 1.11 $ * $Date: 2003/11/02 23:21:06 $ * @version $Revision: 1.11 $ $Date: 2003/11/02 23:21:06 $ ...
0
import com.google.common.collect.Lists; import com.google.common.collect.Maps; /** * An implementation of {@link OutputManager} using simple lists, for testing and in-memory * contexts such as the {@link com.google.cloud.dataflow.sdk.runners.DirectPipelineRunner}. */ public static class ListOutputManager i...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; * @author <a * href="http://commons.apache.org/configuration/team-list.html">Commons * Conf...
0
public class WordInfo { public WordInfo(int index) {
0
* &lt;fb:class id="<i>widget-id</i>"&gt; * &lt;fb:field id="<i>sub-widget-id</i>" path="<i>relative-xpath</i>" * &lt;/fb:class&gt; * @version CVS $Id: ClassJXPathBindingBuilder.java,v 1.2 2004/04/01 13:07:55 mpo Exp $
0
super(entityDef, TypeCategory.ENTITY);
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestMultiHashMap.java,v 1.15 2003/11/18 22:37:16 scolebourne Exp $ * @version $Revision: 1.15 $ $Date: 2003/11/18 22:37:16 $ public Map makeEmptyMap() {
0
@XmlSeeAlso(value={ExecuteTask.class, ConfigureTask.class, ManualTask.class, RestartTask.class, StartTask.class, StopTask.class, ServerActionTask.class}) /** * @return when a single Task is constructed, this is the type of stage it should belong to. */ public abstract StageWrapper.Type getStageWrapperType(); ...
0
import javax.servlet.http.HttpSession; public static HttpSession getSession(boolean create) {
0
* An {@code IterableCoder} encodes any {@code Iterable} * as the sequence of its elements, encoded according to the * component coder.
0
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.HashBiMap; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList; import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/rss/Attic/Image.java,v 1.5 2003/04/16 11:23:51 jstrachan Exp $ * $Revision: 1.5 $ * $Date: 2003/04/16 11:23:51 $ import java.io.Serializable; * @version $Revision: 1.5 $ $Date: 2003/0...
0
import java.util.Collection; import java.util.Collections;
0
public BundleContext getBundleContext() public void setBundleContext(BundleContext context)
0
@Deprecated // since 1.5 final Option principalOption = new Option("pr", "principal", true, "principal (defaults to your OS user)"); @Deprecated // since 1.5 final Option loginOption = new Option("l", "login property", true, "login properties in the format key=value. Reuse -l for each property and/or comma sepe...
0
private CompactionWaitInfo compactionWaitInfo = new CompactionWaitInfo(); log.debug("Writing updated status to metadata table for " + logEntry.logSet + " " + ProtobufUtil.toString(status)); ReplicationTableUtil.updateFiles(tabletServer, extent, logEntry.logSet, status); currentLogs = new...
0
return () -> phaser.arrive();
0
* readScope.getSpan().addKVAnnotation("Number of Entries Read".getBytes(UTF_8), String.valueOf(numberOfEntriesRead).getBytes(UTF_8));
0
import org.apache.atlas.type.AtlasClassificationType; import org.apache.atlas.type.AtlasEntityType; AtlasClassificationType classificationType = typeRegistry.getClassificationTypeByName(classification.getTypeName()); if (classificationType == null) { throw new AtlasBaseException(AtlasErrorCo...
0
import com.google.common.collect.AbstractIterator; import com.google.common.collect.Iterables; import java.io.IOException; import java.util.Collection; import java.util.Iterator; import java.util.Map; /** * Spark runner process context. */ public abstract class SparkProcessContext<InputT, OutputT, ValueT> exte...
0
SERVICE_SITE_CLUSTER = new HashMap<>(); SERVICE_SITE_SERVICE = new HashMap<>(); SERVICE_SITE_HOST = new HashMap<>(); GLOBAL_CLUSTER = new HashMap<>(); CONFIG_ATTRIBUTES = new HashMap<>(); List<Stage> stages = new ArrayList<>(); Map<String, Map<String, String>> confs = new HashMap<>(); Ma...
1
org.junit.Assume.assumeTrue(bcInstalled); org.junit.Assume.assumeTrue(bcInstalled); org.junit.Assume.assumeTrue(bcInstalled); org.junit.Assume.assumeTrue(bcInstalled);
0
import com.google.common.collect.Iterators; rowCnt = Iterators.size(s.iterator());
0
import org.apache.poi.hssf.util.Region; * @version CVS $Id: EPCell.java,v 1.6 2004/07/05 18:38:03 tcurdt Exp $ public int getColumns() throws IOException, NullPointerException { if (!_cols_fetched) { String valueString = getValue(_cols_attribute); if (valueString != null) { ...
0
public PeriodicReloadingTrigger(final ReloadingController ctrl, final Object ctrlParam, final long triggerPeriod, final TimeUnit unit, final ScheduledExecutorService exec) public PeriodicReloadingTrigger(final ReloadingController ctrl, final Object ctrlParam, final long triggerPeriod, fi...
0
import static org.apache.aurora.scheduler.updater.StateEvaluator.Result.EVALUATE_AFTER_RUNNING_LIMIT; import static org.apache.aurora.scheduler.updater.StateEvaluator.Result.EVALUATE_ON_STATE_CHANGE; import static org.apache.aurora.scheduler.updater.StateEvaluator.Result.FAILED; import static org.apache.aurora.schedule...
0
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
@Override @Override @Override @Override @Override @Override @Override
0
zoo.putPersistentData(zTablePath + Constants.ZTABLE_COMPACT_CANCEL_ID, "0".getBytes(), existsPolicy);
0
}else { if(metric.getInstanceId() != null){ //instanceId "CHANNEL.ch1" String instanceId = metric.getInstanceId(); instanceId = instanceId.matches("^\\w+\\..+$") ? instanceId.split("\\.")[1]:""; //propertyI...
0
import org.apache.accumulo.harness.AccumuloClusterIT; public class WriteAheadLogIT extends AccumuloClusterIT { public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) { String tableName = getUniqueNames(1)[0]; c.tableOperations().create(tableName); c.tableOperations().s...
0
"FRAGMENT WIRE: " + rw.toString());
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
* $Revision: 1.10 $ * $Date: 2003/10/26 17:35:30 $ * @version $Id: PooledConnectionImpl.java,v 1.10 2003/10/26 17:35:30 dirkv Exp $ public Object makeObject(Object obj) throws Exception { if (null == obj || !(obj instanceof PStmtKey)) { throw new IllegalArgumentException(); } else { ...
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
* Copyright 2004,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
package org.apache.batik.dom.anim;
0
Method updateHadoopEnvConfig = UpgradeCatalog213.class.getDeclaredMethod("updateHadoopEnv"); .addMockedMethod(updateHadoopEnvConfig) upgradeCatalog213.updateHadoopEnv(); expectLastCall().once();
0
throw new ConfigurationException("The property " + name + " has neither type nor field.");
0
initialValue = 0
0
* are found for a job or an update for the job is already in progress. * @return A unique update token if an update must be coordinated through * {@link #updateShards(String, String, java.util.Set, String)} and * {@link #finishUpdate(String, String, Optional, Update...
0
import org.apache.sshd.util.test.NoIoTestCase; import org.junit.experimental.categories.Category; @Category({ NoIoTestCase.class }) Map<BuiltinIdentities, Path> locationsMap = new EnumMap<>(BuiltinIdentities.class); Map<BuiltinIdentities, KeyPair> idsMap = new EnumMap<>(BuiltinIdentities.class);
0
namespace==sibling.getNamespaceURI() ) {
0
Collection<T> result = new ArrayList<>();
0
import org.apache.accumulo.harness.MiniClusterConfigurationCallback; import org.apache.accumulo.minicluster.impl.MiniAccumuloConfigImpl; private static class ShellServerITConfigCallback implements MiniClusterConfigurationCallback { @Override public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configu...
0
package com.twitter.mesos.scheduler; import com.twitter.mesos.gen.JobConfiguration; import com.twitter.mesos.gen.RegisteredTaskUpdate; import com.twitter.mesos.gen.ScheduleStatus; import com.twitter.mesos.gen.TaskQuery; import com.twitter.mesos.gen.TrackedTask; import com.twitter.mesos.scheduler.configuration.Configura...
0
import cz.seznam.euphoria.core.client.dataset.windowing.Window; W extends Window> Pair<KEYOUT, OUT>, W, ReduceStateByKey<IN, KIN, WIN, KEY, VALUE, KEYOUT, OUT, STATE, W>> public <WIN, W extends Window> DatasetBuilder6<IN, WIN, KEY, VALUE, OUT, STATE, W> windowBy(Windowing<WIN, W> windowi...
0
@Override
0
.withArrayField("f_arr", FieldTypeDescriptor.of(FieldType.STRING))
0
private static Logger LOG = LoggerFactory.getLogger(PreCalculatedDigestSignatureTest.class); LOG.debug("Is signature valid: " + validSignature); LOG.debug("Wrote signature to " + signatureFilePath);
0
Boolean defaultAutoCommit = isDefaultAutoCommit(); defaultAutoCommit = userMax; Boolean defaultReadOnly = isDefaultReadOnly(); defaultReadOnly = userMax; if (defaultAutoCommit != null && con.getAutoCommit() != defaultAutoCommit.booleanValue()) { ...
0
import org.apache.commons.collections.CollectionUtils; public static List<String> getSuperTypeNames(AtlasVertex<?,?> entityVertex) { ArrayList<String> superTypes = new ArrayList<>(); Collection<String> propertyValues = entityVertex.getPropertyValues(Constants.SUPER_TYPES_PROPERTY_KEY, String.cl...
1
|| (sharedCache && HeaderConstants.PRIVATE.equals(elem.getName()))) { String[] cacheableParams = { HeaderConstants.CACHE_CONTROL_MAX_AGE, "s-maxage", HeaderConstants.CACHE_CONTROL_MUST_REVALIDATE, HeaderConstants.CACHE_CONTROL_PROXY_REVALIDATE, ...
0
config.setVersion(cluster.getNextConfigVersion(config.getType())); clusterConfigEntity.setVersion(config.getVersion());
0
import org.apache.beam.sdk.extensions.sql.schema.BeamRecordSqlType; private static final BeamRecordSqlType SOURCE_RECORD_TYPE = BeamRecordSqlType.create( private static final BeamRecordSqlType RESULT_RECORD_TYPE = BeamRecordSqlType.create(
0
* A coder for JAXB annotated objects. This coder uses JAXB marshalling/unmarshalling mechanisms to * encode/decode the objects. Users must provide the {@code Class} of the JAXB annotated object. this.jaxbMarshaller = new EmptyOnDeserializationThreadLocal<Marshaller>() { @Override prote...
1
private Map<OgnlContext, Class> defaultMapClassMap = new HashMap<OgnlContext, Class>(); Class defaultMapClass = getDefaultMapClass( context ); private Class getDefaultMapClass( OgnlContext context ) { Class defaultMapClass = defaultMapClassMap.get( context ); if (defaultMapClass != ...
0
ImmutableNode root = (c != null) ? obtainRootNode(c) : null; * Obtains the root node from a configuration whose data is to be copied. It * has to be ensured that the synchronizer is called correctly. * * @param c the configuration that is to be copied * @return the root node of this con...
0