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 may...
0
String line = _controlInput.readLine(); String code = line.substring(0, 3); _replyCode = Integer.parseInt(code); return sendCommand(FTPCommand.SMNT, dir);
0
package org.apache.http.nio.integration; import org.apache.http.nio.protocol.SimpleNHttpRequestHandler;
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
return new OutputDataset<>(flow, op, input.isBounded()); return new InputDataset<>(flow, source, source.isBounded());
0
import org.apache.ambari.view.utils.hdfs.HdfsApi; import org.apache.ambari.view.utils.hdfs.HdfsUtil; private HdfsApi hdfsApi = null; /** * Get HdfsApi instance * @return HdfsApi business delegate */ public synchronized HdfsApi getHDFSApi() { if (hdfsApi == null) { try { hdfsApi = HdfsUt...
0
* Copyright 2016 Seznam.cz, a.s.
0
implements EntityReference { if (!DOMUtilities.isValidName(name)) {
0
* @param parent the parent class loader for delegation public RhinoClassLoader(URL documentURL, ClassLoader parent){ super(documentURL != null ? new URL[]{documentURL} : new URL[]{}, parent);
0
/** * TODO Add javadoc * * @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a> * @version $Rev$, $Date$ */
0
import org.apache.sshd.common.util.security.SecurityUtils;
0
records.sort(kvComparator);
0
import org.junit.Ignore; @Ignore
0
* Window.<Integer>into(FixedWindows.of(Duration.standardMinutes(10))));
0
import org.apache.beam.sdk.values.ValueInSingleWindow;
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
* @version $Revision$
1
import org.apache.hc.core5.http.ContentType;
0
/** * @deprecated since 4.3-beta3 - use {@link #isCompleted()} or {@link #complete()} instead * Will probably be made private at some point. */ @Deprecated protected boolean completed;
0
return ExceptionConstants.createExceptions(ExceptionConstants.EXCS.EXCS_INTERFACE_METHOD_RESOLUTION, ExceptionConstants.UNSATISFIED_LINK_ERROR, ExceptionConstants.ABSTRACT_METHOD_ERROR, ExceptionConstants.ILLEGAL_ACCESS_ERROR, ExceptionConstants.INCOMPATIBLE_CLASS...
0
public interface Options extends PipelineOptions {
0
* <p>Such matchers can be used with {@link PAssert}, which builds pipelines such that these * matchers may be serialized and executed remotely. * <p>To create a {@code SerializableMatcher}, extend {@link org.hamcrest.BaseMatcher} and also * implement this interface. public interface SerializableMatcher<T> extends M...
1
* 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
* Copyright 2002-2005 The Apache Software Foundation.
0
public int defaultTimeoutSeconds() { return 4 * 60; } @Override @Test
0
* Constructor which allows setting of the format string member fields * @param systemKey key representing system type of the server being * connected to. See * {@link #getServerSystemKey() serverSystemKey} * @param defaultDateFormatStr See * {@link #setDefaultDateFormatStr(String) def...
0
import org.apache.commons.collections.list.AbstractListTest; public abstract class AbstractTestLinkedList<T> extends AbstractListTest<T> {
0
import org.apache.ambari.logfeeder.plugin.input.InputMarker; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TimeZone; if ("audit".equals(inputMarker.getInput().getInputDescriptor().getRo...
0
* @param stream the stream from which to read * @throws IOException on error
0
* Gets a property of type {@link PropertyType#BYTES} or {@link PropertyType#MEMORY}, interpreting * the value properly. * @param property Property to get * @throws IllegalArgumentException if the property is of the wrong type public long getAsBytes(Property property) { if (property.getType() == Proper...
1
List<String> results = repositoryService.createEntities(instance).getCreatedEntities(); List<String> createEntitiesResult = repositoryService.createEntities(mapOwnerInstance, mapValueInstance).getCreatedEntities(); return repositoryService.updatePartial(entity).getEntityResult(); str...
0
/** The MethodGen object we're working on. */
0
import java.util.ArrayList; import java.util.List; import org.apache.cocoon.webapps.authentication.configuration.ApplicationConfiguration; import org.apache.cocoon.webapps.authentication.context.AuthenticationContext; * @version CVS $Id: UserHandler.java,v 1.2 2003/04/27 14:45:03 cziegeler Exp $ /** The context *...
0
package com.twitter.mesos.scheduler.http; import static com.twitter.mesos.scheduler.http.LeaderRedirect.HTTP_PORT_NAME;
0
public void testCustomSSLAuth() throws IOException { try (ClientX509Util x509Util = new ClientX509Util()) { System.setProperty(x509Util.getSslAuthProviderProperty(), "y509"); QuorumPeerConfig quorumPeerConfig = new QuorumPeerConfig(); try { Properties zkPr...
0
Queue<Object[]> values, Queue<Object[]> values = new ConcurrentLinkedQueue<>(); return Linq4j.asEnumerable(unboxValues(values)); ConcurrentLinkedQueue<Object[]> values = new ConcurrentLinkedQueue<>(); return Linq4j.asEnumerable(unboxValues(values)); private static final Map<Long, Queue<Object[...
0
return JobKeys.canonicalString(lockKey.getJob());
0
implements RoleMatcher { private final String role; public SingleRoleMatcher(String role) { public boolean matches(User user) {
0
public boolean contains(Point2D p) { Rectangle2D b = getBounds(); } else { return false; } public boolean intersects(Rectangle2D r) { Rectangle2D b = getBounds(); public Rectangle2D getPrimitiveBounds() { paintedArea = shapePainter.getPaintedArea(); public Recta...
0
super(charset, boundary);
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
checkNotNull(record); if (consistentWithEquals()) {
0
package org.apache.commons.ognl;
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
* @version CVS $Id: SaxBuffer.java,v 1.7 2003/12/26 14:42:04 cziegeler Exp $ saxbits.add(StartDocument.SINGLETON); saxbits.add(EndDocument.SINGLETON); saxbits.add(EndCDATA.SINGLETON); saxbits.add(EndDTD.SINGLETON); saxbits.add(StartCDATA.SINGLETON); static public final S...
0
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
0
package org.apache.felix.scrplugin.om; import org.apache.felix.scrplugin.tags.JavaClassDescription; import org.apache.felix.scrplugin.tags.JavaMethod; import org.apache.felix.scrplugin.tags.JavaParameter; import org.apache.felix.scrplugin.tags.JavaTag;
0
package org.apache.beam.sdk.runners.inprocess; import org.apache.beam.sdk.Pipeline; import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.options.PipelineOptionsFactory; import org.apache.beam.sdk.runners.inprocess.InProcessPipelineRunner.InProcessPipelineResult; import org.apache.beam.sdk.test...
0
import org.apache.cocoon.portal.om.LayoutException;
0
@JsonIgnore @XmlElement(defaultValue = "false") private boolean monitoringService; public boolean isMonitoringService() { return monitoringService; } public void setMonitoringService(boolean monitoringService) { this.monitoringService = monitoringService; }
0
import org.apache.beam.sdk.transforms.OldDoFn; * {@link OldDoFn#startBundle(OldDoFn.Context)} * or {@link OldDoFn#finishBundle(OldDoFn.Context)}.
0
import org.apache.http.protocol.ExecutionContext; HttpResponse out = null; out = generateCachedResponse(request, context, entry, now); } else if (!mayCallBackend(request)) { out = generateGatewayTimeout(context); } else if (validityPolicy.isRevalidatable(entry)) { ...
0
private final Set<String> loadedClasses = new HashSet<>();
0
import org.apache.ambari.server.configuration.Configuration; import org.apache.ambari.server.controller.utilities.ScalingThreadPoolExecutor; import org.apache.ambari.server.controller.utilities.BufferedThreadPoolExecutorCompletionService; import javax.inject.Inject; private static ThreadPoolExecutor EXECUTOR_SERVICE...
0
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly;
1
private Stack<Class<?>> _typeStack = new Stack<Class<?>>(); public Class<?> getCurrentType() { } return _typeStack.peek(); public void setCurrentType(Class<?> type) public Class<?> getPreviousType() { } { return _typeStack.get(_typeStack.size()...
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
* 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.hadoop.conf.Configuration; public void configure(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {
0
ikds.setDefaultAutoCommit(Boolean.valueOf(ra.getContent().toString())); ikds.setDefaultReadOnly(Boolean.valueOf(ra.getContent().toString()));
0
import org.apache.http.impl.conn.ConnRoute; ConnRoute route, protected final ConnRoute getPlannedRoute() { return super.route;
0
import static org.junit.Assert.*; public class Canonicalizer20010315ExclusiveTest {
0
import javax.xml.stream.XMLStreamException; import java.io.Writer; @Override public void writeAsEncodedUnicode(Writer writer) throws XMLStreamException { // nothing to write. }
0
* foo(int,int) and foo(Integer,Integer) since in practice only the latter form will be used through a call.
0
catch (final FileSystemException e) catch (final FileSystemException e) catch (final FileSystemException e) final String path = name.getPath() + "/a"; private void assertSameName(final String expectedPath, final FileName baseName, ...
1
import org.apache.http.params.CoreConnectionPNames; DefaultNHttpClientConnection conn = createConnection(session, this.responseFactory, this.allocator, this.params); int timeout = this.params.getIntParameter(CoreConnectionPNames.SO_TIMEOUT, 0);
0
InputStream getDecompressingInputStream(final InputStream wrapped) throws IOException { return new GZIPInputStream(wrapped);
0
* * * @param thrift * a serialized version
0
try { httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); HttpHost target = new HttpHost("issues.apache.org", 443, "https"); HttpGet req = new HttpGet("/"); System.out.println("executing request to " + target + " via " + proxy); ...
0
OutputT apply(InputT input);
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 * "License...
0
public void testHashCode() throws Exception { stmt1.close(); stmt2.close();
0
* Returns a <code>byte</code> array. * @return a <code>byte</code> array. * @return additional information regarding the <code>AgreementMethod</code>.
0
* @throws IllegalArgumentException if the map is <b>null</b> * @throws IllegalArgumentException if the map is <b>null</b> if (params == null) { throw new IllegalArgumentException( "Parameters map must not be null!"); }
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 static org.easymock.EasyMock.capture; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.expectLastCall; import static org.easymock.EasyMock.newCapture; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util...
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(ClientSession s = client.connect(getCurrentTestName(), "localhost", port).verify(7L, TimeUnit.SECONDS).getSession()) { try(ClientSession s = client.connect(getCurrentTestName(), "localhost", port).verify(7L, TimeUnit.SECONDS).getSession()) { try(ClientSession s = client.connect("test", "loca...
0
UserResponse resp = new UserResponse(u.getUserName(), u.getUserType(), u.isLdapUser(), u.isActive(), u .isAdmin()); UserResponse resp = new UserResponse(u.getUserName(), u.getUserType(), u.isLdapUser(), u.isActive(), u .isAdmin());
0
/* ==================================================================== * @version $Revision: 1.12 $ $Date: 2004/01/14 21:43:11 $
0
public void registerMissingDependency( DependencyManager dependencyManager, ServiceReference serviceReference, int trackingCount ) m_componentRegistry.registerMissingDependency(dependencyManager, serviceReference, trackingCount );
0
* To keep {@link MinimalWordCount} simple, it is not factored or testable. This test public class MinimalWordCountTest implements Serializable { public void testMinimalWordCount() throws Exception {
0
package org.apache.beam.sdk.extensions.sql.rel; import org.apache.beam.sdk.extensions.sql.BeamSqlCli; import org.apache.beam.sdk.extensions.sql.BeamSqlEnv; import org.apache.beam.sdk.extensions.sql.TestUtils; import org.apache.beam.sdk.extensions.sql.mock.MockedBoundedTable; import org.apache.beam.sdk.extensions.sql.sc...
0
StringBuilder buf = new StringBuilder(); buf.append(getSymbols().getAttributeStart()).append(key); if (getSymbols().getAttributeEnd() != null) buf.append(getSymbols().getAttributeEnd()); return buf.toString(); String result = key; while (hasLeadingDelimiter(re...
0
/** * This is a tag library that allows you to define new tag libraries at run time. * Thus tag libraries and tags can be easily implemented in Jelly rather than * in Java code. * * Please see the individual tag classes for more information, particularly * {@link TaglibTag Taglib tag} and {@link TagTag Tag tag}...
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 applicabl...
0
* $Id: TestAll.java,v 1.4 2002/11/08 18:51:07 rwaldhoff Exp $ * $Revision: 1.4 $ * $Date: 2002/11/08 18:51:07 $ * @version $Revision: 1.4 $ $Date: 2002/11/08 18:51:07 $ suite.addTest(TestJOCLed.suite());
0
private final Class<? extends FileSystem> fileSystemClass; private FileSystemOptionKey(Class<? extends FileSystem> fileSystemClass, String name) void setOption(Class<? extends FileSystem> fileSystemClass, String name, Object value) Object getOption(Class<? extends FileSystem> fileSystemClass, St...
0
package org.apache.accumulo.core.util.shell.commands; import org.apache.accumulo.core.util.shell.Shell; import org.apache.accumulo.core.util.shell.Shell.Command;
0
public static final String ON_TIMER_CONTEXT_PARAMETER_METHOD = "onTimerContext"; return new StackManipulation.Compound( pushDelegate, MethodInvocation.invoke( getExtraContextFactoryMethodDescription( ON_TIMER_CONTEXT_PARAMETER_MET...
0
* <li>The {@link PTransform#getSubtransformsList()} is empty. This ensures * <li>The {@link PTransform#getSpec()} contains an {@link ExecutableStagePayload} with inputs * and outputs equal to the PTransform's inputs and outputs, and transforms equal to the * result of {@link #getTransforms}....
0
log.info(String.format(msg, args), new Throwable());
0
* @version $Id$
0
import com.google.common.base.Preconditions;
0
import static org.apache.ambari.server.agent.ExecutionCommand.KeyNames.USER_GROUPS; //Create a user_group mapping and send it as part of the hostLevelParams Map<String, Set<String>> userGroupsMap = configHelper.createUserGroupsMap( cluster, clusterDesiredConfigs, servicesMap, stackProperties); String ...
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
import com.google.common.collect.ImmutableList; import java.math.BigDecimal; import java.util.List;
0
HiveStatement createStatement(HiveConnection connection) throws SQLException; Optional<ResultSet> execute(String statement) throws SQLException; Optional<ResultSet> execute(HiveConnection connection, String statement) throws SQLException; ResultSet getColumnMetadata(HiveConnection connection, GetColumnMetadataJ...
0
* Returns the exported packages associated with the specified
0
* /home/cvs/jakarta-commons/jelly/jelly-tags/html/src/test/org/apache/commons/jelly/html/TestJelly.java,v 1.1 2002/12/19 15:03:17 jstrachan Exp * any, must include the following acknowledgement: * Alternately, this acknowledgement may appear in the software itself, * if and wherever such third-party acknow...
0