Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.springframework.web.context.WebApplicationContext;
public static final String CONTAINER_CONTEXT_ATTR_NAME = WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE; | 0 |
System.err.println("Test '" + cls + "': " +
// Just get package within batik.
// Don't let them get scripting stuff from bridge, but specifically
// allow access to:
//
// o.a.b.bridge.ScriptingEnvironment$Window$IntervalScriptTimerTask
... | 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... | 1 |
url = NegativeSSLAndKerberosHiveHookIT.class.getResource("/application.properties");
| 0 |
Copyright 2002 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 applicable law or... | 0 |
if (String.class.equals(cls))
{
return String.valueOf(value);
} | 0 |
null, null, null,
DefaultHttpResponseParserFactory.INSTANCE); | 0 |
@Override
@Override | 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.inject.Inject;
* particular role which action manager needs. It doesn't capture actual command
* and parameters, but just the stuff enough for action manager to track the
* request.
* <p/>
* Since this class is cached by the {@link ActionDBAccessor}, it should not
* hold references to JPA entiti... | 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 |
import org.apache.logging.log4j.Logger;
private final Logger log;
final Logger log, | 0 |
package org.apache.beam.sdk.extensions.sql.meta.provider.text; | 0 |
public class SessionAttributeOutputModule extends AbstractOutputModule implements ThreadSafe { | 0 |
* Copyright 2006-2009 The Apache Software Foundation. | 0 |
import org.apache.felix.ipojo.test.composite.service.FooService;
fooProvider = Utils.getFactoryByName(context, "COMPO-FooProviderType-1"); | 0 |
storageBuilder.setBatchPath("batch" + components.servicePath); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractBagDecorator.java,v 1.3 2003/11/16 00:39:37 scolebourne Exp $
* @version $Revision: 1.3 $ $Date: 2003/11/16 00:39:37 $
* @deprecated TO BE REMOVED BEFORE... | 0 |
@Override | 0 |
/**
package org.apache.ambari.server.controller;
import java.util.Map;
* Represents a controller maintenance request.
public class ControllerRequest {
private final String name;
private final Map<String, Object> propertyMap;
public ControllerRequest(String name, Map<String, Object> propertyMap) {
this.name =... | 0 |
import org.apache.commons.io.TaggedIOException;
| 0 |
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
package org.apache.http.impl.nio.reactor; | 0 |
return new TabletServerBatchReaderIterator(instance, credentials, table, authorizations, ranges, numThreads, queryThreadPool, this, timeOut); | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.client.operator.base; | 0 |
/** Empty implementationn of Offset. */ | 0 |
return new ProviderTestSuite(new NestedJarTestCase(), true); | 0 |
import org.apache.beam.sdk.transforms.windowing.OutputTimeFns;
.withOutputTimeFn(OutputTimeFns.outputAtEarliestInputTimestamp())
.withOutputTimeFn(OutputTimeFns.outputAtEarliestInputTimestamp())
WindowingStrategy.of(FixedWindows.of(Duration.standardSeconds(10)))
.withOutputTimeFn(Out... | 0 |
&& !matchMandatoryAttribute(entry.getKey(), sf))
private static boolean matchMandatoryAttribute(String attrName, SimpleFilter sf) | 0 |
public class LengthDelimitedDecoder extends AbstractContentDecoder implements FileContentDecoder { | 0 |
import org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader;
AccumuloVFSClassLoader.loadClass(className, Class.forName(asTypeName)); | 0 |
} catch (ThreadDeath td) {
throw td; | 0 |
@Deprecated
public void deleteTimer(StateNamespace namespace, String timerId, TimeDomain timeDomain) {
throw new UnsupportedOperationException("Canceling of timer by ID is not yet supported.");
}
@Deprecated
@Override
@Deprecated | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
Mpack,
public static final Type Mpack = InternalType.Mpack.getType(); | 0 |
m_handler.getInstanceManager().getContext().removeServiceListener(this);
"[" + m_handler.getInstanceManager().getInstanceName() + "] Stop a dependency on : " + m_specification + " with " + m_strFilter + " (" + m_handler.getInstanceManager() + ")"); | 0 |
// suspect we need more synchronization in this class | 0 |
import org.apache.accumulo.core.client.Instance;
Instance i = conn.getInstance();
ZooReaderWriter zk = new ZooReaderWriter(i.getZooKeepers(), i.getZooKeepersSessionTimeOut(), "");
WalStateManager wals = new WalStateManager(conn.getInstance(), zk);
Assert.assertEquals("Expected to only find two WAL for t... | 0 |
import cz.seznam.euphoria.core.annotation.audience.Audience;
@Audience(Audience.Type.CLIENT) | 0 |
* <p>For use with lambdas in Java 8, either this method must be called with an appropriate type | 0 |
import org.apache.hc.core5.io.CloseMode;
client.shutdown(CloseMode.GRACEFUL); | 0 |
public void testLength() throws Exception {
Schema resultType = Schema.builder().addInt64Field("field").build();
Row resultRow = Row.withSchema(resultType).addValues(10L).build();
Row resultRow2 = Row.withSchema(resultType).addValues(0L).build();
Row resultRow3 = Row.withSchema(resultType).addValues(2... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java,v 1.8 2002/04/12 02:28:06 dmitri Exp $
* $Revision: 1.8 $
* $Date: 2002/04/12 02:28:06 $
* @version $Revision: 1.8 $ $Date: 2002/04/12 02:28:06 $
// ... | 0 |
package org.apache.hc.core5.http.impl.bootstrap;
private final ControlledConnPool<HttpHost, ClientSessionEndpoint> connPool;
final ControlledConnPool<HttpHost, ClientSessionEndpoint> connPool,
final Future<PoolEntry<HttpHost, ClientSessionEndpoint>> leaseFuture = connPool.lease(
... | 0 |
import java.util.Properties;
public SaslServerConnectionParams(Properties clientProps, AuthenticationToken token) {
this(clientProps, token, null);
public SaslServerConnectionParams(Properties clientProps, AuthenticationToken token,
super(clientProps, token); | 0 |
package org.apache.beam.sdk.util;
import org.apache.beam.sdk.options.GcsOptions;
import org.apache.beam.sdk.options.PipelineOptionsFactory; | 0 |
* @param buffer the buffer to append the string representation of the input object.
* @param input the input object has to be serialized to string. | 0 |
public boolean containsWatcher(String path, WatcherType type, Watcher watcher) {
boolean containsWatcher = false;
switch (type) {
case Children:
containsWatcher = this.childWatches.containsWatcher(path, watcher);
break;
case Data:
containsWatcher =... | 0 |
assertXPathValue(context, "boolean(/list)", Boolean.TRUE);
assertXPathValue(context, "boolean(/list[position() < 1])", Boolean.FALSE); | 0 |
// add a single ZK server and client on 2.1.1.0
Service service = cluster.addService("HBASE", repoVersionEntity2110);
ServiceComponent component = service.addServiceComponent("HBASE_MASTER");
ServiceComponentHost sch = component.addServiceComponentHost("h1");
sch.setVersion("2.1.1.0");
| 0 |
* limitations under the License. | 0 |
import org.apache.commons.cli2.resource.ResourceConstants;
import org.apache.commons.cli2.resource.ResourceHelper;
* Argument color =
*
*
*
public void validate(final List values)
throws InvalidArgumentException {
final String value = (String) iter.next();
throw new ... | 0 |
try (AccumuloClient client = opts.createClient()) {
runTest(client, opts, bwOpts, scanOpts); | 0 |
* The features have the same defaults as {@link javax.xml.parsers.DocumentBuilderFactory}.
* @see javax.xml.parsers.DocumentBuilderFactory#setValidating(boolean)
* @see javax.xml.parsers.DocumentBuilderFactory#isValidating()
* @see javax.xml.parsers.DocumentBuilderFactory#isNamespaceAware()
* @see ... | 1 |
SshServer sshd = setupIoServiceFactory(SshServer.setUpDefaultServer(), System.err, args);
if (sshd == null) {
error = true;
}
System.err.println("usage: sshd [-p port] [-io mina|nio2|netty] [-key-type RSA|DSA|EC] [-key-size NNNN] [-key-file <path>] [-o option=value]"); | 0 |
* @version $Id$ | 0 |
import org.apache.hc.core5.http.config.Http1Config;
final Http1Config h1Config,
final Http1Config h1Config,
public static MinimalHttpAsyncClient createMinimal(final H2Config h2Config, final Http1Config h1Config) {
return createMinimal(H2Config.DEFAULT, Http1Config.DEFAULT);
... | 0 |
Copyright 2001 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 applicable law or a... | 0 |
private final int index; | 0 |
super("ApacheXMLDSig", 2.20, INFO); | 0 |
Preconditions.checkState(lcg.isDefaultLG, "Group %s has null families. "
+ "Only expect default locality group to have null families.", lcg.name); | 0 |
try {
Boolean.parseBoolean(options.get(NEGATE));
} catch (Exception e) {
throw new IllegalArgumentException("bad boolean " + NEGATE + ":" + options.get(NEGATE));
} | 1 |
CommonTestSupportUtils.detectTargetFolder(RootedFileSystemProviderTest.class), "Failed to detect target folder"); | 0 |
public final static byte[] EMAIL_ALT_SUBJECT_NAME = (
"-----BEGIN CERTIFICATE-----\n" +
"MIIDpTCCAo2gAwIBAgIJANqkMEtlkelbMA0GCSqGSIb3DQEBCwUAMHAxCzAJBgNV\n" +
"BAYTAlVTMQswCQYDVQQIDAJWQTERMA8GA1UEBwwIU29tZUNpdHkxEjAQBgNVBAoM\n" +
"CU15Q29tcGFueTETMBEGA1UECwwKTXlEaXZpc2lvbjEYMBYGA1UEA... | 0 |
import org.apache.hc.core5.annotation.ThreadSafe;
import org.apache.hc.core5.http.HttpException;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.ProtocolException;
import org.apache.hc.core5.http.entity.EntityUtils;
import org.apache.hc.core5.util.A... | 0 |
AmbariLdapConfiguration createLdapConfiguration(Map<String, String> configuration); | 0 |
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
} | 0 |
public static enum STATUS { OK(200, "OK", false), CREATED(201, "Created", false), ACCEPTED(202, "Accepted", false),
CONFLICT(409, "Resource Conflict", true), NOT_FOUND(404, "Not Found", true), BAD_REQUEST(400, "Bad Request", true),
UNAUTHORIZED(401, "Unauthorized", true), FORBIDDEN(403, "Forbidden", true),
... | 0 |
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* | 0 |
* @version $Revision: 1.7 $ $Date: 2004/02/27 00:25:14 $
public void testClone() {
IdentityMap map = new IdentityMap(10);
map.put("1", "1");
Map cloned = (Map) map.clone();
assertEquals(map.size(), cloned.size());
assertSame(map.get("1"), cloned.get("1"));
}
| 0 |
* Copyright 2016-2017 Seznam.cz, a.s. | 0 |
public boolean isClientOnlyService();
| 0 |
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlExpressionEnvironments;
expInt.getValue(),
expInt.evaluate(row, null, BeamSqlExpressionEnvironments.empty()).getValue());
expInt.getValue(),
expInt.evaluate(row, null, BeamSqlExpressionEnvironments.empty()).getValue());
... | 0 |
private IteratorUtils() {} | 0 |
CryptoServiceFactory.newInstance(acuconf)); | 0 |
private static final String ENVIRONMENT_MAJOR_VERSION = "2"; | 0 |
int i = 0;
for (; i < timerBufferSize && iter.hasNext(); i++) {
LOG.info("Loaded {} event time timers in memory", i);
int count = 0;
++count;
LOG.info("Loaded {} processing time timers in memory", count); | 0 |
import junit.framework.Assert;
| 0 |
"SV62CENR00000000000000700025",
"SV43ACAT00000000000000123123", | 0 |
/** Create the ServiceManager with a parent ServiceManager */
public CocoonServiceManager( final ServiceManager parent ) {
final Class componentClass = this.getClass().getClassLoader().loadClass( info.getServiceClassName() ); | 0 |
import org.apache.ambari.spi.upgrade.UpgradeType; | 0 |
package org.apache.atlas.web.service;
import static org.apache.atlas.security.SecurityProperties.CERT_STORES_CREDENTIAL_PROVIDER_PATH;
import static org.apache.atlas.security.SecurityProperties.CLIENT_AUTH_KEY;
import static org.apache.atlas.security.SecurityProperties.DEFATULT_TRUSTORE_FILE_LOCATION;
import static org... | 0 |
package org.apache.felix.karaf.gshell.obr;
} | 0 |
I_S = ValidateUtils.checkNotNullAndNotEmpty(seed, "No KEX seed");
KeyPairProvider provider = ValidateUtils.checkNotNull(factoryManager.getKeyPairProvider(), "No host keys provider"); | 0 |
executionContext.getOrCreateStepContext(stepName, stepName); | 0 |
import org.apache.felix.gogo.commands.Command;
@Command(scope = "config", name = "cancel", description = "Cancel the changes to the configuration being edited.") | 0 |
/**
* Base class for all events that affect the ServiceComponentNode FSM
*/
/**
* ServiceComponent that this event relates to
*/
final String serviceComponentName;
/**
* Hostname of the Node that this event relates to
*/
final String nodeName;
public ServiceComponentNodeEvent(ServiceComponen... | 0 |
//Cache for clusterHostinfo, key - stageId-requestId
private Cache<String, Map<String, List<String>>> clusterHostInfoCache;
String stagePk = s.getStageId() + "-" + s.getRequestId();
Map<String, List<String>> clusterHostInfo = clusterHostInfoCache.getIfPresent(stagePk);
clusterHostInfoCache.put(st... | 0 |
public static List<Object> getArrayElementsProperty(AtlasType elementType, AtlasVertex instanceVertex, AtlasAttribute attribute) {
String propertyName = attribute.getVertexPropertyName();
return (List) instanceVertex.getListProperty(propertyName);
return (Map) instanceVertex.getPrope... | 1 |
* @return The given key's dataLocation
* @return The given key's term
* @return The given key's DocID
* @return The given key's UID
* @return A Key object built from the given row and dataLocation.
* @return A Key object built from the given row, dataLocation, and term.
* @return The key directly f... | 0 |
public static void format(final CharArrayBuffer buffer, final StatusLine statusline) {
if (buffer == null) {
throw new IllegalArgumentException("String buffer may not be null");
}
if (statusline == null) {
throw new IllegalArgumentException("Status line may not be nul... | 0 |
package org.apache.hc.core5.reactor; | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbutils/src/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java,v 1.2 2003/11/05 00:40:43 dgraham Exp $
* $Revision: 1.2 $
* $Date: 2003/11/05 00:40:43 $
* Connection conn = // somehow get a connection
* Result... | 0 |
if (ttype == StreamTokenizer.TT_WORD ||
ttype > 0) {
return list; | 0 |
public void testAppendConstructStringBuilder() { | 0 |
/**
* this class buffers writes to the index so that chunks of index blocks are contiguous in the file instead of having index blocks sprinkled throughout the
* file making scans of the entire index slow.
*/
public static class BufferedWriter {
private Writer writer;
private DataOutputStream b... | 0 |
public <R, P> R accept( NodeVisitor<? extends R, ? super P> visitor, P data )
throws OgnlException | 0 |
* Category tag used to mark tests which execute | 0 |
import org.apache.aurora.scheduler.storage.Storage;
private final Storage storage;
Storage storage,
this.storage = requireNonNull(storage);
storage.write(new Storage.MutateWork.NoResult.Quiet() {
@Override
protected void execute(Storage.MutableStoreProvider stor... | 0 |
String tableName, DBAccessor.DBColumnInfo columnInfo, boolean nullable) {
builder.append(" MODIFY ").append(columnInfo.getName()); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.