Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* Copyright (c) OSGi Alliance (2010, 2016). All Rights Reserved.
@Version("1.2")
import org.osgi.annotation.versioning.Version; | 1 |
if (entry != null && entry.trim().length() > 0) { | 0 |
public class Canonicalizer11_OmitComments extends Canonicalizer20010315 {
super(false, true); | 0 |
boolean exactMatch, boolean fireOnBegin )
builder.fireOnBegin( fireOnBegin ); | 0 |
AbstractResourceProvider provider = new ServiceResourceProvider(
AbstractResourceProvider provider = new ServiceResourceProvider(
AbstractResourceProvider provider = new ServiceResourceProvider( | 0 |
TypedQuery<UpgradeEntity> query = entityManagerProvider.get().createNamedQuery(
"UpgradeEntity.findUpgradeByRequestId", UpgradeEntity.class);
| 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 |
* @author <a href="mailto:bluetkemeier@s-und-n.de">Björn Lütkemeier</a>
* @version CVS $Id: EventLinkTransformer.java,v 1.5 2003/07/10 13:17:04 cziegeler Exp $ | 0 |
/**
* Returns whether this is a constant animation (i.e., a 'set' animation).
*/
protected boolean isConstantAnimation() {
return true;
} | 0 |
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathFactory;
import org.apache.xml.security.samples.DSNamespaceContext;
XPathFactory xpf = XPathFactory.newInstance();
XPath xpath = xpf.newXPath();
xpath.setNamespaceContext(new DSNamespaceContext());
... | 0 |
HostEntity hostEntity = null;
hostRoleCommandEntity = hostRoleCommandDAO.merge(hostRoleCommandEntity);
hostEntity = hostDAO.merge(hostEntity);
stageEntity = stageDAO.merge(stageEntity);
| 1 |
.putInputs("timer", "timer.out")
.putOutputs("timer", "timer.out")
.putOutputs("output", "output.out")
.putPcollections("output.out", pc("output.out")) | 0 |
BlockEnvironmentHelper.enterBlock(block);
BlockEnvironmentHelper.leaveBlock(); | 0 |
import org.apache.accumulo.core.security.tokens.PasswordToken; | 0 |
Map<String, AlertDefinitionSummary> summaries = new HashMap<>();
List<AlertDefinitionSummary> groupedResources = new ArrayList<>(
entrySet.size()); | 1 |
package org.apache.felix.sigil.common.osgi; | 0 |
return Boolean.valueOf(proxy == args[0]); | 0 |
import org.apache.aurora.scheduler.storage.JobUpdateStore;
bindStore(JobUpdateStore.Mutable.class, DBJobUpdateStore.class); | 0 |
package org.apache.commons.ognl.internal.entry;
import org.apache.commons.ognl.internal.CacheException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
/**
* User: Maurizio Cucchiara
* Date: 10/17/11
* Time: 1:14 AM
*/
public class MethodAccessCacheEntryFactory
implements CacheEntryFactory<Me... | 0 |
package org.apache.commons.codec2; | 0 |
import java.util.concurrent.TimeUnit;
* Wait and verify that the channel has been successfully opened.
* @throws SshException if the action failed for any reason
* Wait and verify that the channel has been successfully opened within the specified timeout.
* @throws SshException if the action failed... | 0 |
private static org.apache.commons.logging.Log log =
org.apache.commons.logging.LogFactory.getLog(ApacheCanonicalizer.class);
if (log.isDebugEnabled()) {
log.debug("Created canonicalizer for algorithm: " + getAlgorithm());
if (log.isDebugEnabled()) {
... | 0 |
import java.net.URLDecoder;
// decode the URL before using it to create a File object as spaces in the filename
// are encoded as '%20' by URL class
final File keyStoreFile = new File(URLDecoder.decode(serverJksResource.getFile())); | 0 |
public class ReadOnlyDictionary<S, T> extends Dictionary<S, T> implements Map<S, T>
private final Hashtable<S, T> m_delegatee;
public ReadOnlyDictionary( final Dictionary<S, T> delegatee )
this.m_delegatee = ( Hashtable<S, T> ) delegatee;
this.m_delegatee = new Hashtable<S, T>();
... | 0 |
*
*
*
/**
*
* @version $Revision: 1.5 $
* Adds a new attribute definition to this dynamic tag
//-------------------------------------------------------------------------
if (name == null) {
throw new MissingAttributeException("name");
}
if (className == null) {
... | 0 |
* @since 4.0 | 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 |
// maintain the map of ComponentContext objects created for the
private IdentityHashMap serviceContexts = new IdentityHashMap();
BundleComponentContext serviceContext = new BundleComponentContext( this, bundle );
Object service = createImplementationObject( serviceContext );
if (service ... | 0 |
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.junit.Rule;
import org.ops4j.pax.exam.junit.PaxExamServer;
@Rule
public PaxExamServer exam = new PaxExamServer(ServerConfiguration.class);
| 0 |
* @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a> | 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 |
* @author <a href="http://commons.apache.org/vfs/team-list.html">Commons VFS team</a>
/**
* The user name to be associated with changes to the file.
* @param opts
* @param creatorName
*/
public void setCreatorName(FileSystemOptions opts, String creatorName)
{
setParam(opts, "cr... | 0 |
PAssert.that(inputs.apply("sql", QueryTransform.withQueryString(sql)))
inputs.apply("sql", QueryTransform.withQueryString(sql));
inputs.apply("sql", QueryTransform.withQueryString(sql));
inputs.apply("sql", QueryTransform.withQueryString(sql));
inputs.apply("sql", QueryTransform.withQueryString(sql)... | 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 |
* @version CVS $Id: JPEGSourceInspector.java,v 1.4 2003/05/19 10:02:05 stephan Exp $
private String PROPERTY_NS = "http://apache.org/cocoon/inspector/jpeg/1.0"; | 0 |
import org.easymock.EasyMock;
expect(managementController.getHostComponents(EasyMock.<Set<ServiceComponentHostRequest>>anyObject())).andReturn(responses).anyTimes();
expect(managementController.getHostComponents(EasyMock.<Set<ServiceComponentHostRequest>>anyObject())).andReturn(responses).anyTimes(); | 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 |
@Test
@Test | 0 |
public static boolean isClasspathUri(String uri) {
if ( uri.startsWith(ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX)
|| uri.startsWith(ResourceLoader.CLASSPATH_URL_PREFIX) ) {
return true;
}
return false;
}
public static void readProperties(String ... | 0 |
protected static final String[] TYPE_VALUES = { | 1 |
import com.twitter.common.stats.Stats;
import com.twitter.common.stats.StatsProvider;
bind(StatsProvider.class).toInstance(Stats.STATS_PROVIDER); | 0 |
allTests(false,BooleanComparator.booleanComparator(false));
allTests(true,BooleanComparator.booleanComparator(true));
assertSame(BooleanComparator.getFalseFirstComparator(),BooleanComparator.booleanComparator(false));
assertSame(BooleanComparator.getTrueFirstComparator(),BooleanComparato... | 0 |
if (c.isDestination()) {
ExecutableTrigger<W> subTrigger = c.nextStepTowardsDestination(); | 0 |
package org.apache.beam.runners.spark.translation;
import org.apache.beam.runners.spark.SparkPipelineRunner; | 0 |
import org.apache.atlas.typesystem.types.ClassType;
import org.apache.atlas.typesystem.types.DataTypes;
import org.apache.atlas.typesystem.types.HierarchicalTypeDefinition;
import org.apache.atlas.typesystem.types.utils.TypesUtil;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONOb... | 0 |
listener.onInit(config, options);
final Map<String, MetricsReporterFactory> reporterFactories = getMetricsReporters();
appDescriptor
.withApplicationContainerContextFactory(executionContext.new Factory())
.withMetricsReporterFactories(reporterFactories);
listener.on... | 0 |
params.setBackgroundRGB(new int [] { 255, 255, 255 });
params.setSRGBIntent(PNGEncodeParam.INTENT_PERCEPTUAL);
boolean forceTransparentWhite = false; | 0 |
import org.apache.ambari.server.actionmanager.ExecutionCommandWrapper;
* Provides information regarding the content of repositories.
* Gets the repository file which was set on this command. The repository can
* be set either by the creator of the command or by the
* {@link ExecutionCommandWrapper} when it ... | 0 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
* @version $Id:$
public class TestPoolableConnection {
@Before
@Test
@Test
@Test | 0 |
public Process exec(final CommandLine cmd, final Map<String, String> env) | 0 |
public static final Authorizations EMPTY = new Authorizations();
| 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 |
settings.forEach(itr -> tableQueryConfig.addIterator(itr)); | 0 |
if (ef != null)
return ef.create(DOMUtilities.getPrefix(qualifiedName),
document);
if (customFactories != null) {
ElementFactory cef;
cef = (ElementFactory)customFactories.get(namespaceURI, name);
... | 0 |
public E lower(final E e) {
public E floor(final E e) {
public E ceiling(final E e) {
public E higher(final E e) {
public NavigableSet<E> subSet(final E fromElement, final boolean fromInclusive, final E toElement, final boolean toInclusive) {
public NavigableSet<E> headSet(final E toElement, fin... | 0 |
p.apply("ReadLines", TextIO.Read.from(options.getInputFile())) | 0 |
protected void clearInternal()
super.clearInternal(); | 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... | 0 |
private static final String DFLT_FILENAME_ATTR = "file"; | 0 |
import java.io.Closeable;
public interface HttpClientConnectionManager extends Closeable {
* Returns a {@link LeaseRequest} object which can be used to obtain
* a {@link ConnectionEndpoint} to cancel the request by calling
* {@link LeaseRequest#cancel()}.
* Please note that newly allocated endpoints... | 0 |
Collection<IPackageImport> imports = sigilProject.getBundle().getBundleInfo().getImports();
Collection<IRequiredBundle> requiredBundles = sigilProject.getBundle().getBundleInfo() | 0 |
StateTag<? super K, WatermarkHoldState<W>> address) {
Map<W, WatermarkHoldState<W>> map = context.accessInEachMergingWindow(address);
WatermarkHoldState<W> result = context.access(address);
&& result.getOutputTimeFn().dependsOnlyOnEarliestInputTimestamp()) {
if (result.getOutputTimeFn().depend... | 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 java.util.Date;
if (!cookie.isExpired(new Date())) {
Date now = new Date();
if (((Cookie) (it.next())).isExpired(now)) { | 0 |
public <T> Coder<T> getCoder(TypeToken<T> typeToken) {
return AvroCoder.of(typeToken); | 0 |
* Document doc;
* Element refElem = ref.toElement(doc);
* Element refElem = doc.getElement("Reference"); // PSEUDO
XMLUtils.addReturnToElement(this.constructionElement);
this.baseURI = BaseURI;
// this._manifest.appendChild(this.constructionElement);
// this._manifest.appendChild(this.doc.cre... | 0 |
* @version $Id: StringType.java,v 1.3 2004/02/11 09:53:44 antonio Exp $ | 0 |
AuthenticationToken token = Property.createInstanceFromPropertyName(conf, Property.TRACE_TOKEN_TYPE, AuthenticationToken.class, new PasswordToken()); | 0 |
import org.apache.xml.security.test.TestUtils;
Element nscontext = TestUtils.createDSctx(doc, "ds", | 0 |
ArrayList<CompactionInfo> compactions = new ArrayList<>();
HashSet<ByteSequence> allColumnFamilies = new HashSet<>();
List<SortedKeyValueIterator<Key,Value>> iters = new ArrayList<>(filesToCompact.size());
ArrayList<FileSKVIterator> readers = new ArrayList<>(filesToCompact.size()); | 0 |
// Thermos executors in the wild have been observed using 48-54MB RSS, setting to 128MB
// to be extra vigilant initially.
.addResources(Resources.makeMesosResource(Resources.CPUS, 0.25))
.addResources(Resources.makeMesosResource(Resources.RAM_MB, 128)) | 0 |
* {@link ParDo.MultiOutput} is translated to {@link ApexParDoOperator} that wraps the {@link DoFn}.
implements TransformTranslator<ParDo.MultiOutput<InputT, OutputT>> {
public void translate(ParDo.MultiOutput<InputT, OutputT> transform, TranslationContext context) {
ParDo.MultiOutput.class.getSimpleNam... | 0 |
public static String getHomeId(AtlasElement element) {
return element.getProperty(Constants.HOME_ID_KEY, String.class);
}
| 0 |
httpProcessorCopy, requestHandlerRegistry, connStrategyCopy, responseFactoryCopy, this.streamListener); | 0 |
import org.apache.sshd.server.auth.password.PasswordAuthenticator; | 0 |
// Try to gently feed more data to the event dispatcher
// if the session input buffer has not been fully exhausted
// (the choice of 5 iterations is purely arbitrary)
for (int i = 0; i < 5; i++) {
this.eventDispatch.inputReady(session);
if... | 0 |
if (!isNullOrEmpty(dataflowOptions.getDataflowWorkerJar())) {
List<String> experiments =
dataflowOptions.getExperiments() == null
? new ArrayList<>()
: dataflowOptions.getExperiments();
experiments.add("use_staged_dataflow_worker_jar");
dataflowOptions.setExpe... | 0 |
* <li><code>flowContext</code> - which represents the bean that was from the Flowscript </li>
* <li><code>continuation</code> - which represents the current continuation - an instance of {@link org.apache.cocoon.components.flow.WebContinuation}</li>
*
* @version CVS $Id: FlowVelocityGenerator.java,v 1.5 2003/04/15... | 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 {
prepareSocket(channel.socket());
Object attachment = sessionRequest.getAttachment();
ChannelEntry entry = new ChannelEntry(channel, attachment);
addChannel(entry);
} catch (IOEx... | 0 |
public Set<Class<?>> getExtensionHosts() {
return extensionHostClasses;
}
| 0 |
return FlinkKeyUtils.encodeKey(key, keyCoder); | 0 |
import cz.seznam.euphoria.core.client.io.UnsplittableBoundedSource;
import java.util.Collections;
public HadoopSource(
Class<K> keyClass, Class<V> valueClass,
Class<? extends InputFormat<K, V>> hadoopFormatCls,
Configuration hadoopConf) {
public List<BoundedDataSource<Pair<K, V>>> split(long desir... | 0 |
import org.apache.accumulo.core.clientImpl.ClientContext;
import org.apache.accumulo.core.clientImpl.MasterClient;
import org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException;
import org.apache.accumulo.miniclusterImpl.MiniAccumuloConfigImpl; | 0 |
* @version $Revision$ $Date$ | 0 |
import java.io.IOException;
import java.io.InputStream;
public Node deserialize(byte[] source, Node ctx) throws XMLEncryptionException, IOException {
try (InputStream is = new ByteArrayInputStream(fragment)) {
return deserialize(ctx, new StreamSource(is));
} | 0 |
* eventually committed. Committed elements are executed by the {@link PTransform PTransforms} that
* consume the {@link PCollection} this bundle is a part of at a later point.
*
/** Returns the PCollection that the elements of this bundle belong to. */
* Returns the key that was output in the most recent {@code... | 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... | 0 |
FIRE_AND_FINISH(true, true); | 0 |
import org.apache.accumulo.cluster.standalone.StandaloneAccumuloCluster; | 0 |
// public to maintain binary compatibility
public DigestUtils() { | 0 |
@Override
@Override
@Override
@Override
@Override
@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 ma... | 0 |
public ByteConverterTestCase(final String name) {
protected NumberConverter makeConverter(final Object defaultValue) {
final String[] message= {
final Object[] input = {
final Byte[] expected = {
final Converter converter = makeConverter();
final Class<?> clazz = Byte.cla... | 0 |
import com.google.common.collect.ImmutableMap;
private static final String COUNTDOWN_MS_PARAM = "forceMaintenanceCountdownMs";
long startMs = hostMaintenanceRequest.get().getCreatedTimestampMs();
long timeoutMs = TimeAmount.of(
hostMaintenanceRequest.get().getTimeoutSecs(),
Time... | 0 |
* @author <a href="mailto:bluetkemeier@s-und-n.de">Björn Lütkemeier</a>
* @version CVS $Id: ObjectModelAction.java,v 1.2 2003/07/10 13:17:04 cziegeler Exp $ | 0 |
import org.apache.xml.security.signature.Reference;
import org.apache.xml.security.utils.JavaUtils;
boolean result=false;
result=signature.checkSignatureValue(cert);
result=signature.checkSignatureValue(pk);
if (!result) {
StringBuffer sb = new StringBuffer();
for (i... | 0 |
* This class provides support for the SVGTransformable interface.
* Creates a new SVGTransformableSupport.
public static SVGAnimatedTransformList getTransform(Element elt) {
throw new RuntimeException(" !!! TODO: getTransform()"); | 0 |
this.verifyHMAC(filename, resolver, followManifests, hmacKey); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.