Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.apache.ambari.server.controller.spi.Resource;
0
import org.apache.ambari.server.view.configuration.InstanceConfig; import org.apache.ambari.server.view.configuration.InstanceConfigTest; import org.apache.ambari.server.view.configuration.ViewConfig; import org.apache.ambari.server.view.configuration.ViewConfigTest; @Test public void testInstallViewInstance() thro...
0
public CompositeCollection(final Collection<E> compositeCollection) { public CompositeCollection(final Collection<E> compositeCollection1, final Collection<E> compositeCollection2) { public CompositeCollection(final Collection<E>[] compositeCollections) { for (final Collection<E> item : all) { ...
0
public class ClassPath { private static abstract class PathEntry {
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
@Override @Override @Override @Override
0
private String clientIPAddress; public String getClientIPAddress() { return clientIPAddress; } public void setClientIPAddress(String clientIPAddress) { this.clientIPAddress = clientIPAddress; }
0
* Copyright (c) OSGi Alliance (2005, 2008). All Rights Reserved.
0
upgrade.setRequestEntity(requestEntity);
0
import java.util.Collections; public ComponentDescriptionDTO getComponentDescriptionDTO(Bundle bundle, String name) { if ( holder != null ) { return holderToDescription(holder); } else { return null; } if ( description == null) { return Collections.emptyList(); } private ComponentHolder<?>...
0
public class DefaultNotifyingBuilder implements NotifyingBuilder {
0
@Value("${logsearch.authr.file.enable:false}") @LogSearchPropertyDescription( name = "logsearch.authr.file", description = "A boolean property to enable/disable file based authorization", examples = {"true"}, defaultValue = "false", sources = {LOGSEARCH_PROPERTIES_FILE} ) private boolean fil...
0
* @version $Revision$ $Date$
0
FileObject[] findFiles( FileSelector selector ) throws FileSystemException;
0
* @version $Revision$
0
import org.apache.accumulo.core.security.Credentials; return readTokenFile(implementingClass, conf).getToken().getClass().getName(); return Base64.decodeBase64(token.getBytes(Constants.UTF8)); return AuthenticationTokenSerializer.serialize(readTokenFile(implementingClass, conf).getToken()); priva...
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
AtlasSearchResult searchResult2 = discoveryService.searchUsingDslQuery(query.replace("where", " "), 25, 0); assertSearchResult(searchResult2, expected); queryAssert(query, expected); //queryAssert(query.replace("where", " "), expected); } private void queryAssert(String query, ...
0
import org.apache.hc.core5.http.nio.command.RequestExecutionCommand; ioSession.enqueue(new RequestExecutionCommand(new AsyncClientExchangeHandler() {
0
FnApiControlClient client = pool.getSource().get(); pool.getSource().get();
0
import org.apache.bcel.verifier.exc.AssertionViolatedException; import org.apache.bcel.verifier.exc.LocalVariableInfoInconsistentException;
0
public TaskStatusResponse(HostRoleCommand hostRoleCommand) { this.requestId = hostRoleCommand.getRequestId();
1
byte[] origin = getBytesFromFile(new File("target/test-classes/test/ClusterDaemon.class")); manipulator.prepare(origin); byte[] clazz = manipulator.manipulate(origin); byte[] origin = getBytesFromFile(new File("target/test-classes/test/SimplePojo.class")); manipulator.prepare(or...
0
if (isClosed()) { throw new IllegalStateException("Can not start the client again"); }
0
* Autogenerated by Thrift Compiler (0.12.0) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)") @org.apache.thrift.annotation.Nullable
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/CompositeCollection.java,v 1.3 2003/12/03 11:37:44 scolebourne Exp $ import org.apache.commons.collections.list.UnmodifiableList; * @version $Revision: 1.3 $ $Dat...
0
// Opportunity to just 'update' the existing shape painters...
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
getQueryHint(startTime), outputTableName, tableName, startTime, endTime));
0
* </p> * </p>
0
import static com.google.common.base.Charsets.UTF_8; Mutation m = ContinuousIngest.genMutation(rowId, r.nextInt(maxColF), r.nextInt(maxColQ), cv, ingestInstanceId.getBytes(UTF_8), count, null, r, false);
0
import org.apache.cocoon.portal.util.AbstractBean;
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 class Query10 extends NexmarkQueryTransform<Done> { private final NexmarkConfiguration configuration; super("Query10"); this.configuration = configuration; @Override public PCollection<Done> expand(PCollection<Event> events) {
0
package org.apache.ambari.server.agent.stomp.dto; /** * Is used to contain hash code in request from agent */ public class Hash { private String hash; public Hash(String hash) { this.hash = hash; public Hash() { public String getHash() { return hash; public void setHash(String hash) { this.hash ...
1
fieldVisibility = Visibility.NONE, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
0
* Creates a new MalformedCookieException with a {@code null} detail message. * @param cause the {@code Throwable</tt> that caused this exception, or <tt>null} * if the cause is unavailable, unknown, or not a {@code Throwable}
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
public <R,P> R accept(NodeVisitor<? extends R, ? super P> visitor, P data) { return visitor.visit(this, data); }
0
import org.apache.sshd.util.test.CommonTestSupportUtils; CommonTestSupportUtils.deleteRecursive(serverDir);
0
MaintenanceModeTypeHandler.class, TaskConfigTypeHandler.class);
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
* @version $Revision: 1.2 $ $Date: 2002/10/21 02:52:40 $
0
public DecimalLocaleConverter(final boolean locPattern) { public DecimalLocaleConverter(final Locale locale) { public DecimalLocaleConverter(final Locale locale, final boolean locPattern) { public DecimalLocaleConverter(final Locale locale, final String pattern) { public DecimalLocaleConverter(final...
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 ...
1
throws ProcessingException { try { return prepare( objectModel, configs ); } catch (ConfigurationException ce) { throw new ProcessingException("Exception during handler configuration.", ce); }
0
m.put("six-prop", "987"); m.put("seven$.prop", "3.141"); assertEquals((short) 987, dto.six$_$prop); dto.seven$$_$prop = 3.141;
0
/* * Copyright 2002, 2003,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 requi...
0
throw new IllegalArgumentException( "multiple extent types not allowed " + ttype + " " + type(extent));
0
* * * Decodes a byte array and returns the results as a byte array. * * }
1
FlatMap<InputT, OutputT> operator, TranslationContext context) { public PCollection<?> translate(FlatMap operator, TranslationContext context) {
0
* A factory for creating, initializing and connecting sockets. throws IOException; * the cipher suite chosen for the connection. throws IllegalArgumentException;
0
throw new SAXException("Portlet couldn't be loaded: " + coplet.getId()); final String value = this.getResponse(res); IncludingHTMLSerializer.addPortlet(coplet.getId(), value); attr.addCDATAAttribute("portlet", coplet.getId()); protected String getResponse...
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.http.cookie.CookieRestrictionViolationException; throw new CookieRestrictionViolationException("Cookie domain may not be null"); throw new CookieRestrictionViolationException("Domain attribute \"" throw new CookieRestrictionViolationException("Domain attrib...
0
boolean expanded=false; byte []result=new byte[length]; if (!expanded) { byte newResult[]=new byte[3*length]; System.arraycopy(result, 0, newResult, 0, out); result=newResult; expanded=true; } if (expanded) { byte newResult[]=new...
0
/* * $Id: ResourceImpl.java 44 2007-07-13 20:49:41Z hargrave@us.ibm.com $ * * Copyright (c) OSGi Alliance (2002, 2006, 2007). 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 th...
0
import org.apache.beam.sdk.coders.Coder; * This is a hack for transforming a {@link org.apache.beam.sdk.transforms.Create}
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dynamic/DynamicPointerFactory.java,v 1.1 2002/11/28 01:01:30 dmitri Exp $ * $Revision: 1.1 $ * $Date: 2002/11/28 01:01:30 $ package org.apache.commons.jxpath.ri.model.dynamic; imp...
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...
1
* * @since 2.0
0
/** * The label used to display the tab name (or section) where the properties are displayed. Example: "Printer Service". * @return The label used to display the tab name where the properties are displayed. */ String heading() default ""; /** * A human readable description of the P...
0
options.setRunner(BlockingDataflowPipelineRunner.class); options.setRunner(BlockingDataflowPipelineRunner.class);
0
Assert.assertEquals("TEST", authscheme.toString());
0
import java.security.Security; @Test public void testBuildWithProvider() throws Exception { final URL resource1 = getClass().getResource("/test-server.keystore"); final String storePassword = "nopassword"; final String keyPassword = "nopassword"; final SSLContext sslContext=SSLCo...
0
new PropertyInfo("yarn.QueueMetrics.Queue=(.+).AvailableMB", true, false)); uriBuilder.addParameter("metricNames", "yarn.QueueMetrics.Queue=root.AvailableMB"); Number[][] val = (Number[][]) res.getPropertyValue("metrics/yarn/Queue/root/AvailableMB");
0
import org.apache.cocoon.util.log.DeprecationLogger; DeprecationLogger.logger = this.loggerManager.getLoggerForCategory("deprecation");
0
package org.apache.atlas.bridge;
0
import org.apache.cocoon.thread.RunnableManager;
0
public ReferenceIdentityMapTest(final String testName) { final IterableMap<K, V> map = new ReferenceIdentityMap<K, V>(ReferenceStrength.HARD, ReferenceStrength.HARD); final IterableMap<K, V> map = new ReferenceIdentityMap<K, V>(ReferenceStrength.HARD, ReferenceStrength.HARD); final Map.Entry...
0
import cz.seznam.euphoria.core.client.operator.AssignEventTime; import cz.seznam.euphoria.core.client.operator.ExtractEventTime; import java.util.Objects; * A convenience method to create a data set from the given source and * assign the elements event time using the user defined function. * * @param <T> th...
0
@Override @Override @Override
0
Assert.assertTrue(check.getFailedDetail().isEmpty()); Assert.assertFalse(check.getFailedDetail().isEmpty());
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
private String tableName; public String getTableName() { return tableName; } public void setTableName(String tableName) { this.tableName = tableName;
0
package org.apache.beam.sdk.runners.inprocess;
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...
1
import org.apache.cocoon.portal.om.CopletInstance;
0
public static final Object updateProperty(Session session, String name, long value) { public static final Object updateProperty(FactoryManager manager, String name, long value) { return updateProperty(manager.getProperties(), name, value); public static final Object updateProperty(Map<String,Object>...
0
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Test; @Override @Test @Test @Test @Test @Test @Test @Test List<ConfigurationNode> nds = config.getExpressionEngine().query(config....
0
import org.apache.batik.dom.svg.SVGDOMImplementation; import org.apache.batik.test.PerformanceTest;
0
public Integer running = null; public Integer queued = null; public CompactionsList() {}
0
@Parameter(names = {"-a", "--address"}, description = "address to bind to") }
0
configTypes, dereference, scope, bundle
0
import org.apache.batik.util.XMLConstants;
0
PCollectionConsumerRegistry consumers = new PCollectionConsumerRegistry( metricsContainerRegistry, mock(ExecutionStateTracker.class)); PCollectionConsumerRegistry consumers = new PCollectionConsumerRegistry( metricsContainerRegistry, mock(ExecutionStateTracker.class)); PCollectionConsumerReg...
0
import java.awt.Composite; // Opacity CSSPrimitiveValue opacityVal = (CSSPrimitiveValue)cssDecl.getPropertyCSSValue(ATTR_OPACITY); if (opacityVal != null) { Composite composite = CSSUtilities.convertOpacityToComposite(opacityVal); result.put(G...
0
import org.junit.Assert; } final String[] expectedDefault = new String[] {"row cf:cq [] 1234abcd", "row cf1:cq1 [] 9876fedc", "row2 cf:cq [] 13579bdf", "row2 cf1:cq [] 2468ace"}; final String[] expectedFormatted = new String[] {"row cf:cq [] 0x31 0x32 0x33 0x34 0x61 0x6...
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
} catch (KeeperException.NoNodeException e) { System.out.println("Could not set ACL on " + znode + ". Reason: " + e.getMessage());
0
public DecoderException(final String message) { public DecoderException(final String message, final Throwable cause) { public DecoderException(final Throwable cause) {
1
import java.io.IOException; import org.apache.commons.io.input.NullInputStream; import org.apache.commons.io.input.NullReader; import org.apache.commons.io.output.NullOutputStream; import org.apache.commons.io.output.NullWriter; /** * Test Copying file > 2GB - see issue# IO-84 */ public void testCopy...
0
config.put(MITKerberosOperationHandler.KERBEROS_ENV_KADMIN_PRINCIPAL_NAME, "kadmin/kdc.example.com");
0
import java.util.List; import org.apache.hc.core5.reactor.ExceptionEvent; import org.apache.logging.log4j.Logger; final List<ExceptionEvent> exceptionLog = server.getExceptionLog(); if (!exceptionLog.isEmpty()) { final Logger log = LogManager.getLogger(get...
0
import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.KeeperException.NotReadOnlyException; import org.apache.zookeeper.Watcher.Event.KeeperState; boolean success = false; for (int i = 0; i < 30; i++) { try { zk.create("/test", "test".getBytes(), ZooDefs.Id...
0
public MultiFileConfigurationBuilder(Class<? extends T> resCls, public MultiFileConfigurationBuilder(Class<? extends T> resCls, public MultiFileConfigurationBuilder(Class<? extends T> resCls)
0
if (LOG.isTraceEnabled()) { ZooTrace.logTraceMessage(LOG, ZooTrace.EVENT_DELIVERY_TRACE_MASK, "Deliver event " + event + " to 0x" + Long.toHexString(this.sessionId) + " through " + this); ...
0
* A {@code KeyedState} is a mutable mapping * from {@link CodedTupleTag CodedTupleTag<T>} * to {@code T}.
0
* @param upgradeInformation * the upgrade type, direction, services, repository versions, etc. UpgradeActionOperations getOperations(ClusterInformation clusterInformation, UpgradeInformation upgradeInformation) throws UpgradeActionException;
0
import java.util.Arrays; if (args[0].equals("-h") || args[0].equals("-help") || args[0].equals("--help")) { printUsage(); System.exit(1); } System.out.println("Invalid argument: Java <main class> '" + className + "' was not found. Please use the wholly qualified package name."); ...
0