Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
helper.createStack(stackId);
| 0 |
/** The compiled class. */
protected final Class clazz;
public QDoxJavaClassDescription(Class clazz, JavaSource source, JavaClassDescriptorManager m) {
this.clazz = clazz;
* @see org.apache.felix.scrplugin.tags.JavaClassDescription#getFieldByName(java.lang.String)
*/
public JavaField ... | 0 |
/**
* A Combiner that interprets Values as Longs and returns their sum.
*/ | 0 |
* </p> | 0 |
org.junit.Assume.assumeTrue(bcInstalled);
org.junit.Assume.assumeTrue(bcInstalled);
org.junit.Assume.assumeTrue(bcInstalled);
org.junit.Assume.assumeTrue(bcInstalled);
| 0 |
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.google.inject.Inject; | 0 |
setValidators(repeaterElement, repeaterDefinition); | 0 |
public LoggingIOSession(final IOSession session) {
this.wirelog = new Wire(LogFactory.getLog("org.apache.http.wire"), getId());
this.session.setEventMask(ops);
this.log.debug(getId() + " " + this.session + ": Event mask set " + formatOps(ops));
this.session.setEvent(op);
... | 0 |
for (char aPatArr : patArr) {
if (aPatArr == '*') { | 0 |
import org.springframework.web.context.support.ServletContextResourcePatternResolver;
final ServletContextResourcePatternResolver resolver = new ServletContextResourcePatternResolver(resourceLoader); | 0 |
if (LOG.isDebugEnabled()) {
if (LOG.isDebugEnabled()) {
if (LOG.isDebugEnabled()) { | 0 |
concreteLSInput.setByteStream(XMLSecurityConstants.class.getClassLoader().getResourceAsStream("bindings/schemas/XMLSchema.dtd"));
concreteLSInput.setByteStream(XMLSecurityConstants.class.getClassLoader().getResourceAsStream("bindings/schemas/XMLSchema.dtd"));
... | 0 |
import org.apache.sshd.common.AlgorithmNameProvider;
* Signature interface for SSH used to sign or verify packets. Usually wraps a
* {@code javax.crypto.Signature} object. The reported algorithm name refers to
* the signature type being applied.
public interface Signature extends AlgorithmNameProvider { | 0 |
public static void main(final String[] argv) | 0 |
import java.nio.charset.StandardCharsets;
if (ok != null && ok.contains(key = new String(cv, StandardCharsets.UTF_8))) | 0 |
import org.apache.beam.sdk.values.PInput;
private final PTransform<PInput, PCollection<Row>> query; | 0 |
* Sets the filesCache implementation used to cache files.
* Get the cache strategy used.
* Get the file object decorator used.
* Set a fileObject decorator to be used for ALL returned file objects.
* configuration.
* Resolve the uri to a filename.
* Get the configuration builder for t... | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
CharArrayBuffer current = null;
CharArrayBuffer previous = null;
if (current == null) {
current = new CharArrayBuffer(64);
} else {
current.clear();
}
int l = datareceiver.readLine(current);
if (l == -1 ... | 0 |
Map<Node, AggregatedLocation> predecessorLocationsMap = new HashMap<>();
Map<Node, AggregatedLocation> successorLocationsMap = new HashMap<>();
Map<Node, ExecutionLocation> deducedLocationsMap = new HashMap<>(); | 0 |
* @see ResultSetHandler#handle(ResultSet) | 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 |
public class TestCountingSource
extends UnboundedSource<KV<Integer, Integer>, TestCountingSource.CounterMark> {
TestCountingSource.finalizeTracker = finalizeTracker;
public TestCountingSource(int numMessagesPerShard) {
public TestCountingSource withDedup() {
return new TestCountingSource(numMessagesPerS... | 0 |
* This class provides for binary compatibility between Commons Collections
* @param <E> the element type
* @param <E> the element type | 0 |
* Note that this one is not mentioned in documentation due to high number of RBK examples and
* rather lower explanation value. Please consider to include it in future | 0 |
package org.apache.accumulo.hadoopImpl.mapreduce.lib;
import org.apache.accumulo.hadoop.mapreduce.InputTableConfig;
* Returns the {@link InputTableConfig} for the configuration based on the properties set using
* the single-table input methods. | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/ValidatorResources.java,v 1.6 2002/03/30 04:33:17 dwinterfeldt Exp $
* $Revision: 1.6 $
* $Date: 2002/03/30 04:33:17 $
*
* ========================================================... | 0 |
return assertType(name, LongHistogram.class, accs.computeIfAbsent(
name, s -> new LongHistogram()));
return assertType(name, NanosecondTimer.class, accs.computeIfAbsent(
name, s -> new NanosecondTimer()));
/**
* Accumulator provider factory.
*/ | 0 |
uiMappingConfig.getAuditFieldFallbackPrefixes(),
uiMappingConfig.getAuditFieldFallbackSuffixes());
uiMappingConfig.getAuditFieldFallbackPrefixes(), uiMappingConfig.getAuditFieldFallbackSuffixes()); | 0 |
* Add the logger bean.
* @param configuration The location of the logging configuration.
* @param registry The bean registry.
* @param loggerCategory The optional category for the logger.
*/
protected void addLogger(String configuration,
B... | 0 |
import org.apache.commons.digester.Digester; | 0 |
package org.apache.bcel.generic;
import org.apache.bcel.ExceptionConst;
import org.apache.bcel.util.ByteSequence;
super(org.apache.bcel.Const.NEWARRAY, (short) 2);
return super.toString(verbose) + " " + org.apache.bcel.Const.getTypeName(type); | 1 |
/**
* 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 |
public static void sumArray(Class<? extends Encoder<List<Long>>> encoderClass, String type) throws IOException, InstantiationException,
IllegalAccessException {
Encoder<List<Long>> encoder = encoderClass.newInstance();
IteratorSetting is = new IteratorSetting(1, SummingArrayCombiner.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 may not... | 0 |
import org.jetbrains.annotations.NotNull;
public @NotNull Servlet createDispatcherServlet()
public void register(@NotNull final ServletContext containerContext, @NotNull final Hashtable<String, Object> props) | 0 |
private Object readResolve() {
return INSTANCE;
}
| 0 |
/**
* This will parse the element and construct the Java Objects.
* That will allow a user to validate the signature.
*
* @param element ds:Signature element that contains the whole signature
* @param baseURI URI to be prepended to all relative URIs
* @throws XMLSecurityException
... | 0 |
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.bcel.Constants; | 0 |
assertDirContents(taskA.taskRoot, "sandbox", "pidfile");
assertDirContents(taskA.sandbox, "a.txt", "run.sh", "stderr", "stdout");
assertDirContents(taskA.taskRoot, "sandbox", "pidfile");
assertDirContents(taskA.sandbox, "run.sh", "stderr", "stdout");
assertThat(Files.readLines(new File(taskA.sandbox... | 0 |
import org.apache.cocoon.objectmodel.ObjectModel;
import org.apache.cocoon.xml.NamespacesTable;
ObjectModel objectModel, ExecutionContext executionContext,
MacroContext macroContext, NamespacesTable namespaces, Event startEvent, Event endEvent)
Object val =... | 0 |
throw new MetadataServiceException(api, clientResponse); | 0 |
/*
* Copyright 2009 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 app... | 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 |
/*
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 |
import com.google.common.collect.ImmutableSet;
.createClassTypeDef(HIVE_TABLE_TYPE, ImmutableSet.of("DataSet"),
.createClassTypeDef(HIVE_PROCESS_TYPE, ImmutableSet.of("Process"),
.createTraitTypeDef("classification", ImmutableSet.<String>of(),
TypesUtil... | 0 |
import static org.testng.Assert.assertNotNull;
AtlasEntityType entityType = typeRegistry.getEntityTypeByName(entityDef.getName());
assertNotNull(entityType);
AtlasEntity ent1 = entityType.createDefaultValue();
entityType.normalizeAttributeValues(ent2);
AtlasEntityType enti... | 0 |
import org.apache.accumulo.core.util.format.DateFormatSupplier;
import org.apache.accumulo.core.util.format.FormatterConfig;
public static final String DATE_FORMAT = DateFormatSupplier.HUMAN_READABLE_FORMAT;
private static final DateFormatSupplier formatter = DateFormatSupplier.createSimpleFormatSupplier(DATE_FORMA... | 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 |
private long __estimatedArticleCount;
private long __firstArticle;
private long __lastArticle;
void _setArticleCount(long count)
void _setFirstArticle(long first)
void _setLastArticle(long last)
public long getArticleCount()
public long getFirstArticle()
public long getLastArticle() | 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 |
* Executes the request. Please Note that response content must be processed
* | 0 |
serviceClients.put("yarn" , Role.YARN_CLIENT.toString()); | 0 |
public class RawUnionValue { | 0 |
managedConn.releaseConnection();
managedConn.releaseConnection(); | 0 |
import static org.junit.Assert.assertEquals;
import static org.mockito.Matchers.any;
import com.google.cloud.spanner.ErrorCode;
import com.google.cloud.spanner.SpannerExceptionFactory;
import org.apache.beam.sdk.testing.PAssert;
public void reportFailures() throws Exception {
PCollection<MutationGroup> mutations ... | 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.w3c.dom.*;
import org.w3c.dom.traversal.NodeIterator;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.apache.xml.security.transforms.params.XPathContainer;
* @param transforms {@link Transforms} applied to data
* @param messageDigestAlgorithm {@link MessageDigestAlgori... | 0 |
import java.io.File;
import java.security.cert.X509Certificate;
import java.util.List;
import java.util.Map;
import org.osgi.framework.Version;
public int compareTo(Bundle o)
{
return 0;
}
public Map<X509Certificate, List<X509Certificate>> getSignerCertificates(int signersType)
{
... | 0 |
import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.workingDirectory;
Helper.getDefaultOptions(
// this is how you set the default log level when using pax logging (logProfile)
systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("DEBUG")),
... | 0 |
locator.invalidateCache(context, location.toString());
locator.invalidateCache(context, location.toString());
locator.invalidateCache(context, location.toString());
locator.invalidateCache(context, location.toString()); | 0 |
import org.apache.beam.sdk.values.BeamRecordType;
BeamRecordType type = BeamRecordSqlType
.builder()
.withIntegerField("c1")
.withVarcharField("c2")
.withDoubleField("c3")
.build();
public @Nullable
Void apply(BeamRecord input) {
pub... | 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 |
FileTime lastModified = FileTime.from(time.getLastModifiedTime(), TimeUnit.MILLISECONDS);
FileTime lastAccess = FileTime.from(time.getLastAccessTime(), TimeUnit.MILLISECONDS); | 1 |
zipExtractor.addRule("**legacy/sitemap-additions/**", new SingleFileDeployer("WEB-INF/cocoon/sitemap-additions"));
zipExtractor.addRule("**properties/**", new SingleFileDeployer("WEB-INF/cocoon/properties")); | 0 |
return new ReadOnlyDictionary( m_componentManager.getProperties() ); | 0 |
final String[] userConfigs =
userConfigString.trim().isEmpty() ? new String[] {""} : userConfigString.split(";");
final String[] hostConfigs =
hostConfigString.trim().isEmpty() ? new String[] {""} : hostConfigString.split(";");
final String[] splitUserConfig = userConfig.split(":");
... | 0 |
public class MultipleConnectionTestCase {
public static void setUpClass() throws FtpException, IOException {
public static void tearDownClass() {
private FTPSClient init(final FTPSClient client) {
private FileObject resolveRoot() throws FileSystemException {
public void testConnectRoot() throws IOEx... | 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... | 1 |
public List /* <ServiceReference> */ getAllServiceReferences(String clazz, String filter) {
return result;
add(reference);
modify(reference);
public void add(ServiceReference reference) {
List /* <String> */ keys = createKeys(reference);
synchronized (m_keyToServ... | 0 |
void initialize(String instanceId, boolean initialize);
boolean validSecurityHandlers(Authorizor auth, PermissionHandler pm);
void initializeSecurity(TCredentials credentials, String principal, byte[] token) throws AccumuloSecurityException, ThriftSecurityException;
boolean authenticateUser(String principal, Au... | 0 |
import org.apache.accumulo.core.security.thrift.ThriftSecurityException; | 0 |
* A {@link org.apache.commons.collections.map.PassiveExpiringMap.ExpirationPolicy ExpirationPolicy}
* that returns a expiration time that is a
* @throws IllegalArgumentException if the time unit is null. | 0 |
* $Id$
* $Rev$
* $Date$
* Copyright 2001-2005 The Apache Software Foundation | 0 |
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> | 0 |
import org.apache.accumulo.core.client.impl.ClientContext;
* @deprecated since 2.0.0, replaced by
* {@link #MutationsRejectedException(ClientInfo, List, Map, Collection, int, Throwable)}
@Deprecated
super(
"# constraint violations : " + cvsList.size() + " security codes: " + hashMap.toS... | 0 |
import org.apache.ambari.server.configuration.Configuration;
import org.apache.ambari.server.orm.entities.RemoteAmbariClusterEntity;
import org.apache.ambari.view.AmbariHttpException;
import org.apache.ambari.view.AmbariStreamProvider;
import org.apache.ambari.view.cluster.Cluster;
import org.apache.commons.io.IOUtils;... | 0 |
public <T> void output(TupleTag<T> tag, T output) {
context.output(tag, output);
public <T> void outputWithTimestamp(TupleTag<T> tag, T output, Instant timestamp) {
context.outputWithTimestamp(tag, output, timestamp);
public <T> void output(TupleTag<T> tag, T output) {
context.output(tag, ... | 0 |
*
*
*
*
*
* | 0 |
* @version $Id: FileItem.java,v 1.18 2004/10/29 04:17:23 martinc Exp $
extends Serializable { | 1 |
BeamFlow flow = BeamFlow.create(pipeline);
BeamFlow flow = BeamFlow.create(pipeline); | 0 |
public static final String NAGIOS_IGNORE_FOR_SERVICES_KEY = "nagios.ignore_for_services";
public static final String NAGIOS_IGNORE_FOR_HOSTS_KEY = "nagios.ignore_for_hosts"; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/BeanUtilsBean.java,v 1.8 2003/05/21 09:41:45 rdonkin Exp $
* $Revision: 1.8 $
* $Date: 2003/05/21 09:41:45 $
* @version $Revision: 1.8 $ $Date: 2003/05/21 09:41:45 $
Object ... | 0 |
* Handles command line parameters to configure the <code>SVGConverter</code>
* Each command line option is handled by an <code>OptionHandler</code> which
* <code>SVGConverter</code> which is used to perform the conversion.
* The <code>OptionHandler</code> should configure the <code>SVGConverter</code>
... | 0 |
/**
* Add a global session to those being tracked.
* @param id sessionId
* @param to sessionTimeout
* @return whether the session was newly added (if false, already existed)
*/
boolean addGlobalSession(long id, int to);
/**
* Add a session to those being tracked. The session i... | 0 |
import java.io.File;
import org.apache.commons.vfs.test.AbstractProviderTestCase;
* @version $Revision: 1.2 $ $Date: 2002/11/23 00:33:54 $ | 0 |
if (bundle.getInfo().isExtension())
{
return;
} | 0 |
import java.util.Base64;
import org.apache.xml.security.utils.XMLUtils;
// base64 decode signatureValue
String content = XMLUtils.getFullTextChildrenFromElement(sigValueElem);
value = Base64.getMimeDecoder().decode(content);
valueBase64 = Base64.getMimeEncoder().encodeTo... | 0 |
}
// try to resolve using system ID
if (log.isDebugEnabled()) {
log.debug(" Trying to resolve using system ID '" + systemId + "'");
}
try {
entityURL = new URL(systemId);
} catch (MalformedURLException e) {
... | 0 |
@Description("The maximum number of elements in a bundle.")
@Default.Long(1000)
Long getMaxBundleSize();
void setMaxBundleSize(Long size);
@Description("The maximum time to wait before finalising a bundle (in milliseconds).")
@Default.Long(1000)
Long getMaxBundleTimeMills();
void setMaxBundleTimeMills... | 0 |
String hostname = getServerHttp().getHostName();
Assert.assertEquals(hostname + ":" + port, headers[0].getValue()); | 0 |
import java.io.File;
import java.io.FileOutputStream;
import java.util.Iterator;
import org.apache.commons.collections.iterators.AbstractIteratorDecorator;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.LineIterator;
private Option disablePaginationOpt;
@SuppressWarnings("unchecked")
public ... | 0 |
import static org.junit.Assert.assertThat;
import org.apache.beam.sdk.values.TypeDescriptor;
@Test
public void testEncodedTypeDescriptor() throws Exception {
assertThat(
SerializableCoder.of(MyRecord.class).getEncodedTypeDescriptor(),
Matchers.equalTo(TypeDescriptor.of(MyRecord.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 may not u... | 0 |
import static org.apache.aurora.scheduler.updater.SideEffect.InstanceUpdateStatus; | 0 |
import java.net.URLDecoder;
final String sourceFile = URLDecoder.decode(codeSource.getLocation().getFile(),"UTF-8"); // ensure special characters are decoded OK | 0 |
try {
channel.close();
} catch (IOException e) {
log.warn("Error unbinding socket", e);
}
if (channels.containsKey(address) && !disposing.get()) { | 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 |
/**
* 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 |
import com.twitter.common.base.Function;
import org.apache.aurora.scheduler.storage.entities.IDockerParameter;
import org.apache.mesos.Protos;
Iterable<Protos.Parameter> parameters = Iterables.transform(config.getParameters(),
new Function<IDockerParameter, Protos.Parameter>() {
@Override pu... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.