Diff
stringlengths
5
2k
FaultInducingLabel
int64
0
1
* to an {@link org.apache.http.HttpRequest} we will attempt to revalidate * the entry with the origin. Build the origin {@link org.apache.http.HttpRequest} * here and return it. * When a {@link HttpCacheEntry} does not exist for a specific * {@link org.apache.http.HttpRequest} we attempt to se...
0
this(httpProcessor, execHandler, connStrategy, HeapByteBufferAllocator.INSTANCE, params);
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
String role = (String) invocation.getArguments()[1]; HostRoleStatus status = (HostRoleStatus) invocation.getArguments()[2]; }).when(db).getTasksByHostRoleAndStatus(anyString(), anyString(), any(HostRoleStatus.class)); String role = (String) invocation.getArguments()[1]; HostRoleStatu...
0
public class SmbProviderTestCase extends AbstractProviderTestConfig implements ProviderTestConfig { public static Test suite() throws Exception { if (System.getProperty(TEST_URI) != null) { } else { public void prepare(final DefaultFileSystemManager manager) throws Exception { public FileOb...
0
import javax.servlet.ServletContext; import org.apache.cocoon.Constants; public void contextualize(Context aContext) throws ContextException { this.context = aContext; final ServletContext servletContext = (ServletContext)aContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT); servletCo...
0
List<Pair<PublicKey, String>> keys = new ArrayList<>(nbIdentities); keys.add(new Pair<>(key, buffer.getString()));
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
* Create the classloader
0
KeyTokenInvalidException keyTokenInvalidException = new KeyTokenInvalidException(key.toStringUtf8());
0
(target instanceof CharSequence) ? target : BufferUtils.toHex(BufferUtils.EMPTY_HEX_SEPARATOR, (byte[]) target));
0
import org.apache.accumulo.core.client.Instance; Instance instance = shellState.getInstance(); AccumuloServerContext context = new AccumuloServerContext(instance, new ServerConfigurationFactory(instance));
0
StringBuilder ret = new StringBuilder(); ret.append( "null" ); ret.append( ( (Class<?>) target ).getName() ); ret.append( target.getClass().getName() ); ret.append( "." ).append( name ); return ret.toString();
0
IOChannelUtils.registerIOFactoriesAllowOverride(gcsOptions);
0
* @version $Id$
0
import java.text.DateFormat; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Calendar; * @param <T> The desired target type of the conversion. protected <T> T convertToType(Class<T> targetType, Object value) throws Exception { Class<?> sourceType = value.getClass();...
0
import com.google.common.base.Joiner;
0
import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.accumulo.core.conf.CliConfiguration; import com.beust.jcommander.converters.IParameterSplitter; private String address = null; public static class NullSplitter impleme...
0
import org.apache.atlas.model.instance.AtlasObjectId; ret.setAttribute("anchor", new AtlasObjectId(obj.getAnchor().getGlossaryGuid()));
0
if (GenericUtils.isEmpty(keyAlg)) { throw new SshException(SshConstants.SSH2_DISCONNECT_KEY_EXCHANGE_FAILED, "KeyExchange signature verification failed");
0
import static org.junit.Assert.assertEquals; assertEquals(String.format("%08x", (ei << 8) - 16), entry.getKey().getRow().toString()); assertEquals(Integer.toString(ei), entry.getValue().toString()); assertEquals("Did not see expected number of rows", 257, ei); assertEquals("Did not expect to find an...
0
* Copyright 2003-2005 The Apache Software Foundation
0
import java.util.Optional; return Optional.empty();
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedShortArrayList.java,v 1.9 2003/08/31 17:28:40 scolebourne Exp $ * any, must include the following acknowledgement: * Alternately, this acknowle...
0
// bounds2D = bounds2D.createUnion(strokeBounds); bounds2D.add(strokeBounds);
0
sb.append(m_isLowInclusive ? '[' : '('); sb.append(m_isHighInclusive ? ']' : ')');
0
public static final DisallowIdentityContentLengthStrategy INSTANCE = new DisallowIdentityContentLengthStrategy(new LaxContentLengthStrategy(0));
0
import java.lang.annotation.*; @Retention(RetentionPolicy.CLASS)
0
private volatile boolean done = false; public final long getSplitPointsConsumed() { return done ? 1 : 0; } @Override public final long getSplitPointsRemaining() { return done ? 0 : 1; } @Override done = 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...
0
import org.slf4j.Logger; import org.slf4j.LoggerFactory; * Placeholder implementation of {@link AccumulatorProvider} that may be used in executors as a * default. public static Factory getFactory() { return Factory.get(); } private static final AccumulatorProvider PROVIDER = new VoidAccumulatorProvider()...
0
assertTrue(target.exists() || target.mkdirs());
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
Assert.assertTrue(arvcl.getFiles()[0].getURL().toString().equals(AccumuloDFSBase.HDFS_URI + "/accumulo/classpath/HelloWorld.jar")); Assert.assertTrue(arvcl.getFiles()[0].getURL().toString().equals(AccumuloDFSBase.HDFS_URI + "/accumulo/classpath/HelloWorld.jar")); Assert.assertTrue(arvcl2.getFiles()[0].getUR...
0
new HostAttributes("host", ImmutableSet.of())); IJobUpdate.build(update2Expected), Optional.absent());
0
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/example/org/apache/commons/validator/example/ValidateExample.java,v 1.8 2003/05/24 18:54:13 dgraham Exp $ * $Revision: 1.8 $ * $Date: 2003/05/24 18:54:13 $ * @version $Revision: 1.8 $ $Date: 2003/05/24 18:54:13 $ ...
0
CREATE_ENTITY(BASE_URI + URI_ENTITY, HttpMethod.POST), LIST_ENTITIES(BASE_URI + URI_ENTITY, HttpMethod.GET),
0
import org.apache.ambari.server.controller.ExecuteActionRequest; private ExecuteActionRequest actionRequest = null; this(id, stages, factory, manager, null); } /** * Constructor. * * @param id request id * @param stages stages * @param factory request factory * @par...
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: JSPEngineImpl.java,v 1.7 2003/07/12 13:30:02 joerg Exp $ /** The servlet include path. */ /** The servlet request uri, needed for Resin. */ public static final String INC_REQUEST_URI = "javax.servlet.include.request_uri"; if (s != null && (s.equals(INC_SERVLET_PATH) || s.equ...
0
import org.apache.batik.css.engine.value.ValueManager; * @author <a href="mailto:deweese@apache.org">l449433</a>
0
@Assisted("requestContext") String requestContext, @Assisted("clusterHostInfo") String clusterHostInfo);
0
import org.osgi.service.startlevel.StartLevel; static ServiceTracker startLevel; startLevel = new ServiceTracker(context, StartLevel.class.getName(), null); startLevel.open(); static StartLevel getStartLevel() { return getStartLevel(10000); } static StartLevel getStartLevel(...
0
pattern = pattern.replace('/', File.separatorChar); int lastSep = pattern.substring(0, idx).lastIndexOf(File.separatorChar); out.write((path.toString().replace(File.separatorChar, '/') + " not a regular file\n").getBytes()); out.write((pat...
0
public <T> Function<Object, T> to(final Type type) {
0
builder.include("partitionFn", partitionDoFn);
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
import java.security.AccessControlContext; import java.security.AccessController; import java.security.PrivilegedExceptionAction;
1
// TODO: Should really be -1 and the default set correctly. @Default.Long(10L)
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
PERSISTENT (0, false, false, false), PERSISTENT_SEQUENTIAL (2, false, true, false), EPHEMERAL (1, true, false, false), EPHEMERAL_SEQUENTIAL (3, true, true, false), /** * The znode will be a container node. Container * nodes are special purpose nodes useful for recipes such as leader, lock,...
0
@Ignore
0
.apply(ParDo }}) .withOutputTags(mainOutputTag, TupleTagList.of(sideOutputTag))); .apply(ParDo Arrays.<TupleTag<String>>asList())) .withSideInputs(sideInput1, sideInputUnread, sideInput2)); .apply(ParDo Arrays.<TupleTag<Stri...
0
package org.apache.commons.vfs2.provider.ftp; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.FileSystemOptions; import org.apache.commons.vfs2.UserAuthenticationData; import org.apache.commons.vfs2.provider.GenericFileName; import org.apache.commons.vfs2.util.UserAuthenticatorUtils;
1
import org.apache.sshd.client.auth.UserAuthPublicKeyFactory;
0
import static org.apache.ambari.infra.Solr.AUDIT_LOGS_COLLECTION; import static org.apache.ambari.infra.Solr.HADOOP_LOGS_COLLECTION; import static org.apache.ambari.infra.TestUtil.doWithin; import static org.apache.ambari.infra.TestUtil.getDockerHost; import static org.apache.ambari.infra.TestUtil.runCommand; import j...
0
// Installation on one host fails (other is continuing) hv1.setState(RepositoryVersionState.INSTALL_FAILED); hostVersionDAO.merge(hv1); // Check that cluster version is still in a non-final state c1.recalculateClusterVersionState(repositoryVersionEntity); checkStackVersionState(stackId, stackVer...
0
super.setup(resolver, objectModel, src, parameters); (WebContinuation)((Environment)resolver).getAttribute("kont"); Map map = new HashMap(); Request request = ObjectModelHelper.getRequest(objectModel); Response response = ObjectModelHelper.getResponse(objectModel); Co...
0
String subjectName = x509Certificates[0].getSubjectX500Principal().getName();
0
import org.apache.commons.vfs.Capability; if (preserveLastModified && srcFile.getFileSystem().hasCapability(Capability.GET_LAST_MODIFIED) && destFile.getFileSystem().hasCapability(Capability.SET_LAST_MODIFIED_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
request.addHeader(new Header(HTTP.EXPECT_DIRECTIVE, HTTP.EXPECT_CONTINUE));
0
@Command(scope = "osgi", name = "shutdown", description = "Shuts the framework down")
0
* @deprecated This class is deprecated as of version 1.2 and will be * removed in version 2.0 -- use the autodetect mechanism in * DefaultFTPFileEntryParserFactory instead.
0
import org.apache.hc.core5.io.CloseMode; tlsSession.close(CloseMode.IMMEDIATE); public void close(final CloseMode closeMode) { getSessionImpl().close(closeMode);
0
private static volatile ImageWriterRegistry instance; private final Map imageWriterMap = new HashMap(); /** * get the ImageWriter registered for mime, or null. * @param mime used for lookup * @return the registered ImageWriter (maybe null) */
0
RequestEntity requestEntity = requestDAO.findByPK(upgradeRequestId); RequestEntity requestEntity = new RequestEntity(); requestEntity.setRequestId(1L); requestEntity.setClusterId(cluster.getClusterId()); requestEntity.setStatus(HostRoleStatus.PENDING); requestEntity.setStages(new ArrayList<Stage...
0
class RFileWriterBuilder implements RFile.OutputArguments, RFile.WriterFSOptions {
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 ...
0
import org.apache.beam.vendor.grpc.v1p21p0.io.grpc.stub.StreamObserver;
0
@Override @Override @Override @Override
0
ThrowingConsumer<Exception, String> cleanupJobFn, private final ThrowingConsumer<Exception, String> cleanupJobFn; ThrowingConsumer<Exception, String> cleanupJobFn,
0
super(); init(instream, buffersize); this(new ByteArrayInputStream(bytes), buffersize);
0
Clock clock, options, clock, bundleFactory, rootTransforms, valueToConsumers, stepNames, views); Clock clock, this.clock = clock; Clock getClock() { return clock; }
0
import org.apache.felix.scrplugin.helper.IssueLog;
0
return false;
0
fisRef.close(); FileOutputStream fos = null; if (fos != null) { try { fos.close(); } catch (IOException ioe) {} } }
1
import org.apache.accumulo.core.client.impl.ClientContext; ClientContext context = new ClientContext(c.getInstance(), creds, getClientConfig()); client = MasterClient.getConnectionWithRetry(context); stats = client.getMasterStats(Tracer.traceInfo(), context.rpcCreds());
1
import java.util.Enumeration; import java.util.HashMap; import java.util.Map; * @version CVS $Id: RequestParamAction.java,v 1.2 2003/08/07 12:37:04 joerg Exp $ public final static String PARAM_PARAMETERS = "parameters"; public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, ...
0
@Override public synchronized void debugDump(StringBuilder sb) { sb.append("Service={ serviceName=" + serviceName + ", clusterName=" + cluster.getClusterName() + ", clusterId=" + cluster.getClusterId() + ", desiredStackVersion=" + desiredStackVersion.getStackVersion() + ", desire...
0
* @version CVS $Id: PortalManagerImpl.java,v 1.5 2004/03/17 12:09:51 cziegeler Exp $ this.getLogger().debug("END getStatusProfile statusProfile="+(statusProfile == null ? "null" : XMLUtils.serializeNode(statusProfile, XMLUtils.createPropertiesForXML(false)))); this.getLogger().debug("END getUse...
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
import org.apache.accumulo.core.security.tokens.UserPassToken; @Override public String getSecurityTokenClass() throws AccumuloException { return UserPassToken.class.getCanonicalName(); }
0
import org.apache.avalon.framework.CascadingRuntimeException; * @version CVS $Id: FormInstance.java,v 1.5 2004/04/04 17:16:17 stephan Exp $ throw new CascadingRuntimeException("Could not create form instance", e); throw new CascadingRuntimeException("Could not create form instance", e); ...
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
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/JellyAssertionFailedError.java,v 1.2 2003/01/22 15:44:39 jstrachan Exp $ * $Revision: 1.2 $ * $Date: 2003/01/22 15:44:39 $ * $Id: JellyAssertionFailedError.java,...
0
// don't pass upper-case session settings to bnd as they end up in the manifest
0
LOG.info("Updating entity name {}.{} to {}", oldTable.getDbName(), oldTable.getTableName(), newTable.getTableName()); dgiBridge.updateTable(tableReferenceable, newTable);
0
return getHttpBodyParser().parse(getHttpBody());
0
/** * Verifies that the host name is an acceptable match with the server's * authentication scheme based on the given {@link SSLSocket}. * * @param host the host. * @param ssl the SSL socket. * @throws IOException if an I/O error occurs or the verification process * fails. ...
0
List<String> result = repositoryService.createEntities(hrDept).getCreatedEntities(); List<String> createdGuids = repositoryService.createEntities(hrDept).getCreatedEntities(); List<String> guids = metadataService.createEntities(entitiesJson.toString()).getCreatedEntities();
0
@Override @Override
0
public void testHttpVersionFormatting() throws Exception { String s = BasicLineFormatter.formatProtocolVersion (HttpVersion.HTTP_1_1, null); assertEquals("HTTP/1.1", s); } public void testHttpVersionFormattingInvalidInput() throws Exception { try { Basic...
0
import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.Map; import java.util.TimeZone; import java.util.concurrent.TimeUnit; import com.google.common.util.concurrent.AbstractScheduledService; import com.google.inject.Injec...
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
suite.addTest(TestConnectionAutoRelease.suite());
0
import org.apache.http.impl.nio.DefaultServerIODispatch; return new DefaultServerIODispatch(serviceHandler, params);
0
List<String> instances = null; try { if (haController == null) { // Always return current host as live (embedded operation mode) return Collections.singletonList(configuration.getInstanceHostnameFromEnv()); } instances = haController.getLiveInstanceHostNames(); ...
0
/** * 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 in writing, software * distribu...
0
"org.apache.hadoop.security.alias.JavaKeyStoreProvider$Factory"; "getProviders"; "org.apache.hadoop.security.alias.CredentialProvider"; "getCredentialEntry"; "createCredentialEntry"; "org.apache.hadoop.security.alias.CredentialProvider$CredentialEntry"; private static final Concurr...
0