Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
import org.w3c.dom.Node; protected SVGOMLineElement() { result = new SVGOMAnimatedLength(this, null, "x1", null); result = new SVGOMAnimatedLength(this, null, "y1", null); result = new SVGOMAnimatedLength(this, null, "x2", null); result = new SVGOMAnimatedLength(this, null, "y2", null); /...
0
@Override public String toString() { return "AgentCommand{" + "commandType=" + commandType + '}'; }
1
result = _children[i] instanceof SimpleNode && ( (SimpleNode) _children[i] ).isSimpleProperty( context );
0
package org.apache.hadoop.metrics2.sink.timeline;
0
throws SAXException {
0
import java.sql.SQLException; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.H2DatabaseCleaner; import org.junit.AfterClass; @AfterClass public static void after() throws AmbariException, SQLException { H2DatabaseCleaner.clearDatabaseAndStopPersistenceService(injector); }
0
/** @inheritDoc */
0
import org.apache.cocoon.portal.util.AbstractComponent;
0
package org.apache.xml.security.stax.config;
0
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; if (interrupt) { } if (interrupt) { } if (interrupt) { } if (interrupt) { } if (interrupt) { } for (int i = 0; i <= 4; i++) { } for (int i = 1; i <= 4; i++) { } private static final Logger ...
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
/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id$ */ package org.w3c.css.sac; /** * @version $Revision$ * @author...
1
/* * Copyright 2016-2018 Seznam.cz, a.s.
0
Filter maskSrc = getMaskNode().getGraphicsNodeRable(true);
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
try (AccumuloClient client = this.getClient()) { // Yes, there's a tabletserver assertEquals(1, client.instanceOperations().getTabletServers().size()); final String tableName = getUniqueNames(1)[0]; client.tableOperations().create(tableName); // Kill dfs cluster.getMiniDfs().shut...
0
import java.util.Iterator; throw new KerberosOperationException("This operation handler has not been opened"); * @param service a boolean value indicating whether the principal is to be created as a service principal or not public Integer createPrincipal(String principal, String password, boolean service) ...
0
import org.apache.accumulo.cloudtrace.thrift.RemoteSpan;
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
static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(ForbiddenAlgorithmTest.class);
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...
0
this.logger.debug("Starting SCR Descriptor Generator...."); if (this.options.getOutputDirectory() == null) { throw new SCRDescriptorFailureException("Output directory has not been set!"); } this.logger.debug("..using output directory: " + this.options.getOutputDirectory()); ...
0
private static final String XMLDSIG_11_XMLNS
0
package org.apache.felix.scr.impl.manager;
0
package org.apache.commons.ognl; import org.apache.commons.ognl.enhance.ExpressionAccessor;
0
import org.apache.accumulo.harness.AccumuloClusterIT; import org.apache.accumulo.harness.UnmanagedAccumuloIT; * * New tests should be written using {@link AccumuloClusterIT} or a subclass thereof. {@link UnmanagedAccumuloIT} provides the most similar semantics. @Deprecated
0
assertTrue("Skipping the Thread.join() did not work, duration="+duration, duration < 9000);
0
import org.apache.ambari.server.state.UriInfo;
0
import org.apache.commons.configuration.interpol.ConfigurationInterpolator; ConfigurationInterpolator interpolator = config.getInterpolator(); getInterpolator().registerLocalLookups(interpolator); if (parent instanceof AbstractConfiguration) { interpolator.setParentIn...
0
import org.apache.http.conn.HttpInetSocketAddress; String hostname; if (remoteAddress instanceof HttpInetSocketAddress) { hostname = ((HttpInetSocketAddress) remoteAddress).getHost().getHostName(); } else { hostname = remoteAddress....
0
log.warn("Unable to find tablets that overlap file " + mapFile.toString(), ex); log.warn("Exception finding overlapping tablets, will retry tablet " + ke, ex); log.error("Failed to get map files in for {}: {}", paths, e.getMessage(), e);
0
public KeyExtent extent; public long timestamp; public String server; public String filename; public int tabletId; public Collection<String> logSet; public String toString() { return extent.toString() + " " + filename + " (" + tabletId + ")"; } public String getName() { return server + "...
1
import org.apache.sshd.common.NamedResource; return NamedResource.Utils.findByName(name, String.CASE_INSENSITIVE_ORDER, VALUES);
0
package org.apache.accumulo.tserver.constraints;
1
package org.apache.http.client.impl;
0
* @return <code>true<code> if the mapped property contains a value for * the specified key, otherwise <code>false</code> * @return The property's value * @return The indexed property's value * @return The mapped property's value * * @return The associated DynaClass
0
public void dump(final File file) throws IOException { try (DataOutputStream dos = new DataOutputStream(new FileOutputStream(file))) {
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
* any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknowledgements normally appear. * permission of the Apache Software Foundation.
0
conf.set("mapreduce.framework.name", "local");
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
reportFailure(computation, work, t); // Try again, but go to the end of the queue to avoid a tight loop. sleep(60000); executor.forceExecute(new Runnable() { public void run() { process(computation, work); } }); private void reportFailure...
0
UtilWaitThread.sleep(10000);
0
public TabletServerBatchReader(ClientContext context, String tableId, Authorizations authorizations, int numQueryThreads) { queryThreadPool = new SimpleThreadPool(numQueryThreads, "batch scanner " + batchReaderInstance + "-"); // WARNING: do not rely upon finalize to close this class. Finalize is ...
0
@Parameter(names = {"--traceid"}, description = "The hex string id of a given trace, for example 16cfbbd7beec4ae3") public void dump(Opts opts) throws TableNotFoundException, AccumuloException, AccumuloSecurityException { while (!conn.securityOperations().hasTablePermission(principal, table, ...
0
@SuppressWarnings("all") public class LoggerStatus implements org.apache.thrift.TBase<LoggerStatus, LoggerStatus._Fields>, java.io.Serializable, Cloneable {
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 ...
1
private final String namespaceURI; // ----------------------------------------------------------- Constructors /** * Build a new RuleSetBase with a null namespaceURI */ public RuleSetBase() { this( null ); } /** * Build a new RuleSetBase with the given namespaceURI ...
0
this.namespaces = new ArrayList<>(1); this.attributes = new ArrayList<>(1); List<String> prefixes = new ArrayList<>(1); this.prefixNsList = new ArrayList<>(1);
0
.filter( Predicates.compose(Predicates.in(Tasks.ACTIVE_STATES), IScheduledTask::getStatus)); IScheduledTask::getStatus);
0
setLocation(widgetElement, actionDefinition);
0
/** * {@inheritDoc} This implementation returns keys that either match the * prefix or start with the prefix followed by a dot ('.'). So the call * <code>getKeys("db");</code> will find the keys <code>db</code>, * <code>db.user</code>, or <code>db.password</code>, but not the key * <code>db...
0
import org.apache.beam.sdk.io.FileSystems; FileSystems.setDefaultConfigInWorkers(options);
0
* Copyright 2016 Seznam.cz, a.s.
0
public AbstractMultiworkerIOReactor(long selectTimeout, int workerCount) throws IOException { this.ioReactors[i] = new BaseIOReactor(selectTimeout);
0
import org.apache.xml.security.utils.UnsyncByteArrayOutputStream; private UnsyncByteArrayOutputStream buf = new UnsyncByteArrayOutputStream();
0
try { ss.close(); } catch (IOException e) { LOG.warn("Ignoring unexpected exception during close",e); }
0
UnaryFunction<LeftT, K> leftKeyExtractor, UnaryFunction<RightT, K> rightKeyExtractor, UnaryFunction<LeftT, K> leftKeyExtractor, UnaryFunction<RightT, K> rightKeyExtractor) {
0
public void setConfiguration(final Configuration configuration) final boolean booleanValue = configuration.getBoolean("test.boolean"); final boolean booleanValue = configuration.getBoolean("test.boolean.missing", true); final Boolean booleanObject = configuration.getBoolean("test.boolean.mis...
0
getDummyCluster(); ServiceComponentHost sch = hdfs.getServiceComponent(DATANODE).getServiceComponentHost(DummyHostname1); }
0
/** The key for the user name in the login context. */ String LOGIN_CONTEXT_USERNAME_KEY = "name"; /** The key for the user password in the login context. */ String LOGIN_CONTEXT_PASSWORD_KEY = "password";
0
handler.getSessionHandler().getSessionCookieConfig().setHttpOnly(true);
0
import org.apache.sshd.common.SshdSocketAddress; return SshdSocketAddress.LOCALHOST_NAME + ":" + displayNumber + "." + screen;
0
if (closed.get()) { break; } LOG.warn("{}: exception while fetching latest offset for partition {}. will be retried.", this, p.topicPartition, e);
0
* @version $Id: Soundex.java,v 1.9 2003/10/12 19:48:15 tobrien Exp $ while ((incount < str.length()) && (mapped = getMappingCode(str.charAt(incount++))) != 0 && (count < maxLength)) { throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String");
0
public class ServletFileUploadTest extends FileUploadTestCase /** * Test for <a href="http://issues.apache.org/jira/browse/FILEUPLOAD-62">FILEUPLOAD</a> */ public void testFILEUPLOAD62() throws Exception { final String contentType = "multipart/form-data; boundary=AaB03x"; final String reque...
0
//noinspection UnnecessaryReturnStatement
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
this.charset = Charset.forName(HttpProtocolParams.getHttpElementCharset(params));
0
import org.apache.hc.core5.http.HttpEntity; import org.apache.hc.core5.http.entity.ContentType; import org.apache.hc.core5.http.entity.EntityUtils; Assert.assertEquals("text/plain; charset=ISO-8859-1", entity.getContentType()); Assert.assertEquals("application/octet-stream", entity.getContentType()); ...
0
import java.util.List; /** * Homogeneously typed test value for ease of use with the wire format test utility. */ private static final Coder<KV<String, Integer>> TEST_CODER = KvCoder.of(StringUtf8Coder.of(), VarIntCoder.of()); private static final List<KV<String, Integer>> TEST_VALUES = Arrays.asLis...
0
SVGDescriptor toSVG(GraphicContext gc); List getDefinitionSet();
0
* @version $Id$
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/test/org/apache/commons/io/FileUtilsTestCase.java,v 1.7 2003/11/22 21:06:41 jeremias Exp $ * $Revision: 1.7 $ * $Date: 2003/11/22 21:06:41 $ * @version $Id: FileUtilsTestCase.java,v 1.7 2003/11/22 21:06:41 jeremias Exp $ ...
0
BasicCookie cookie = new BasicCookie("name", "value"); BasicCookie cookie = new BasicCookie("name", "value"); BasicCookie cookie = new BasicCookie("name", "value"); BasicCookie cookie = new BasicCookie("name", "value"); BasicCookie cookie = new BasicCookie("name", "value"); ...
0
import org.apache.beam.dsls.sql.schema.BeamSqlRowType; BeamSqlRowType beamSQLRowType = CalciteUtils.toBeamRowType(this.getRowType()); BeamSqlRow row = new BeamSqlRow(beamSQLRowType); .setCoder(new BeamSqlRowCoder(beamSQLRowType));
0
* @param entityManagerProvider * @param roleCommandOrderProvider HostRoleCommandDAO hostRoleCommandDAO, HostRoleCommandFactory hostRoleCommandFactory, RoleCommandOrderProvider roleCommandOrderProvider) { this.roleCommandOrderProvider = roleCommandOrderPr...
0
import org.apache.accumulo.core.client.ClientInfo; * <li>{@link AccumuloOutputFormat#setClientInfo(JobConf, ClientInfo)} public static void setClientInfo(JobConf job, ClientInfo info) { ClientInfo outInfo = OutputConfigurator.updateToken(job.getCredentials(), info); OutputConfigurator.setClientInfo(CLASS, jo...
0
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
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
return new Boolean(proxy == args[0]);
0
@SuppressWarnings("deprecation") private static org.apache.accumulo.core.client.ClientConfiguration.ClientProperty INSTANCE_ID = org.apache.accumulo.core.client.ClientConfiguration.ClientProperty.INSTANCE_ID; @SuppressWarnings("deprecation") private static org.apache.accumulo.core.client.ClientConfiguration.Cli...
0
* Represents an HTTP version. HTTP uses a "major.minor" numbering * scheme to indicate versions of the protocol. * public static final HttpVersion HTTP_0_9 = new HttpVersion(0, 9); public static final HttpVersion HTTP_1_0 = new HttpVersion(1, 0); public static final HttpVersion HTTP_1_1 = new HttpVersio...
0
* @version $Id$ public void removeSelectionList();
0
beginRead(false); beginWrite(false); beginRead(false); beginWrite(false); beginRead(false); beginWrite(false);
0
AssertionError exc = assertionShouldFail(() -> assertThat(KV.of(1, 2), SerializableMatchers.kv(not(anything()), anything()))); assertThat(exc.getMessage(), Matchers.containsString("key did not match")); AssertionError exc = assertionShouldFail(() -> assertThat(KV.of(1, 2), SerializableMatche...
0
import static org.junit.Assert.assertEquals; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.UriInfo; import org.apache.ambari.server.api.resources.ResourceInstance; import org.apache.ambari.server.api.services.parsers.RequestBodyParser; import org.apache.ambari.server.api.services.serializers.ResultSerial...
0
private final Object lock = new Object(); this.p = ValidateUtils.checkNotNull(p, "No target path", GenericUtils.EMPTY_OBJECT_ARRAY); SftpFileSystem fs=p.getFileSystem(); sftp = fs.getClient();
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
/** * {@link Operator} that serves as a wrapper between a {@link PCollection} and {@link Dataset}. */
0
import org.apache.cocoon.util.log.Log4JConfigurator; import org.apache.log4j.LogManager; * @version CVS $Id: CocoonServlet.java,v 1.30 2004/06/11 20:29:29 cziegeler Exp $ // let's configure log4j final String log4jConfig = getInitParameter("log4j-config", null); if ( log4jConfig != ...
0
List<ServiceTestInvocation> listInvocations = new ArrayList<>(); Map<String, Object> mapRootProps = new LinkedHashMap<>(); Map<String, Object> mapCategoryProps = new LinkedHashMap<>(); HashMap<String, Object> mapRootProps = new HashMap<>(); HashMap<String, Object> mapCategoryProps = new HashMap<>();...
1
protected static class TextDecoration {
0
public class TestNIOConnPool { static class LocalSessionPool extends AbstractNIOConnPool<String, LocalPoolEntry> {
0
Document doc = XMLUtils.parse(inputSource, false, secureValidation); (Element) contextDocument.importNode(doc.getDocumentElement(), true);
0
* Represents a callback(Service, ServiceReference) that is invoked on a Component implementation class. public interface CbServiceRef<T, S> extends SerializableLambda { * @param service first callback arg * @param ref second callback arg void accept(T instance, S service, ServiceReference<S> ref); d...
0
Comparator<Cookie> comparator = new CookiePathComparator(); Comparator<Cookie> comparator = new CookiePathComparator(); Comparator<Cookie> comparator = new CookiePathComparator(); Comparator<Cookie> comparator = new CookiePathComparator(); Comparator<Cookie> comparator = new Cook...
0
* @version SVN $Id: JXTGStringTemplateParser.java 325986 2005-10-17 21:35:18Z * lgawron $ if (buf.length() > 0) substitutions.add(new Literal(buf.toString()));
0