Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* @cocoon.sitemap.component.documentation
*
* @cocoon.sitemap.component.name mp3directory
* @cocoon.sitemap.component.label content
* @cocoon.sitemap.component.logger sitemap.generator.mp3directory
* @cocoon.sitemap.component.documentation.caching
* Uses the last modification date of the direct... | 0 |
TableInfo _val3; // optional | 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 |
tearDownMiniCluster(); | 0 |
ResponseEntityProxy.enhance(response, execRuntime); | 0 |
import org.apache.ambari.server.api.resources.ResourceInstance;
import org.apache.ambari.server.controller.spi.UnsupportedPropertyException;
public RequestStatus persist(ResourceInstance resource, Set<Map<String, Object>> setProperties) {
return getClusterController().updateResources(resource.getResourceDefinit... | 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 |
* Options that are used to configure the Dataflow pipeline worker pool.
@Description("Options that are used to configure the Dataflow pipeline worker pool.") | 0 |
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.commons.vfs.provider.zip.test;
import java... | 0 |
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@com.fasterxml.jackson.annotation.JsonProperty("clusterId")
private String clusterId;
@JsonIgnore
@JsonIgnore
@JsonIgnore
@JsonIgnore
@JsonIgnore
@JsonIgn... | 1 |
private static final char[] US_ENGLISH_MAPPING = US_ENGLISH_MAPPING_STRING.toCharArray();
this.soundexMapping = US_ENGLISH_MAPPING;
this.soundexMapping = new char[mapping.length];
System.arraycopy(mapping, 0, this.soundexMapping, 0, mapping.length);
}
/**
* Creates a refined so... | 0 |
LOG.info("Processing ruok command from "
+ sock.socket().getRemoteSocketAddress());
LOG.info("Processing kill command from "
+ sock.socket().getRemoteSocketAddress());
LOG.info("Processing getracemask command from "
... | 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 |
private boolean setInstanceId;
instanceId = conf.getString(INSTANCE_ID_PROPERTY);
setInstanceId = conf.getBoolean(SET_INSTANCE_ID_PROPERTY, false);
if (setInstanceId) {
timelineMetric.setInstanceId(instanceId);
} | 0 |
BatchWriter bw = c.createBatchWriter(tableName); | 0 |
return new SmbFileSystem( rootName ); | 0 |
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import org.apache.http.HttpStreamableEntity;
public class ByteArrayEntity implements HttpStreamableEntity {
private final byte[] content;
this.content = b;
return this.content.length;
public InputStream getContent() {
retur... | 0 |
public void setBaseURI(String uri) { }
public void setKeySelector(KeySelector ks) { }
public void setURIDereferencer(URIDereferencer ud) {} | 0 |
import org.apache.ambari.server.metrics.system.AmbariMetricSink;
import org.apache.commons.lang.ClassUtils;
import org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink;
import org.apache.hadoop.metrics2.sink.timeline.TimelineMetric;
import org.apache.hadoop.metrics2.sink.timeline.TimelineMetrics;
impor... | 0 |
package org.apache.commons.dbcp2; | 1 |
* Set authenticated user
*/
public void setAuthenticatedUserId(Integer username);
/**
* Get authenticated user
*/
public Integer getAuthenticatedUserId();
/** | 0 |
* @version $Revision: 1.42 $
configureTag(tag);
/**
* Returns the namespace context of this tag. This is all the prefixes
* in scope in the document where this tag is used which are mapped to
* their namespace URIs.
*
* @return a Map with the keys are namespace prefixes and the va... | 0 |
import org.apache.accumulo.server.fs.FileRef;
import org.apache.accumulo.server.fs.VolumeManager;
import org.apache.accumulo.server.fs.VolumeManagerImpl;
final VolumeManager fs = VolumeManagerImpl.get();
Map<KeyExtent,List<FileRef>> tabletFiles = new HashMap<KeyExtent,List<FileRef>>();
List<FileRef> files... | 1 |
Class clazz = null;
synchronized (this)
{
clazz = findLoadedClass(name);
}
| 0 |
AtlasTypesDef typesToUpdate = getTypesToUpdate(typesDef, atlasTypeRegistry, true);
public static AtlasTypesDef getTypesToUpdate(AtlasTypesDef typesDef, AtlasTypeRegistry typeRegistry, boolean checkTypeVersion) {
if (updateTypeAttributes(oldStructDef, newStructDef, checkTypeVe... | 0 |
import java.awt.image.renderable.RenderableImage;
import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.Vector;
import org.apache.batik.ext.awt.image.SVGComposite; | 0 |
if ( order != null ) {
} | 0 |
* Returns this user agent's alternate style-sheet title.
*/
public String getAlternateStyleSheet() {
return null;
}
/** | 0 |
final ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(BeamEnumerableConverter.class.getClassLoader());
final PipelineOptions options = createPipelineOptions(node.getPipelineOptions());
return toEnumerable(opti... | 0 |
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A> | 0 |
.transform(status ->
addStateTransition(makeTask("id", TaskTestUtil.JOB), status, 100L)).toList(); | 0 |
import com.google.common.net.HostAndPort;
TServerInstance server = new TServerInstance(HostAndPort.fromParts("127.0.0.1", 10000), sessionId); | 0 |
private final ThreadLocal<FileContentThreadData> threadData = new ThreadLocal<>(); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ByteList.java,v 1.2 2003/08/31 17:21:14 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear... | 0 |
import org.apache.commons.collections.IteratorUtils;
import org.apache.cocoon.util.AbstractLogEnabled;
public final class SettingsInputModule extends AbstractLogEnabled
implements InputModule, ThreadSafe, Serviceable,
Disposable {... | 0 |
expect(mockInput.getConfigs()).andReturn(Collections.<String, Object> emptyMap());
expect(mockInput.getConfigs()).andReturn(Collections.<String, Object> emptyMap()); | 0 |
import static org.apache.aurora.scheduler.thrift.Fixtures.IDENTITY;
assertOkResponse(thrift.createJob(makeProdJob(), null));
new JobConfiguration().setKey(JOB_KEY.newBuilder()).setOwner(IDENTITY);
.setOwner(IDENTITY)
.setJob(JOB_KEY.newBuilder());
.setMaxTaskFailures(0);
... | 0 |
import org.apache.beam.sdk.transforms.windowing.BoundedWindow;
import org.apache.beam.sdk.transforms.windowing.WindowFn; | 0 |
* Entities transferred using this input stream can be of unlimited length.
* After the stream is read to the end, it provides access to the trailers,
return Math.min(len, this.chunkSize - this.pos);
*
}
if (this.eof) {
if (eof) {
if (eof) {
... | 0 |
public ClassLoader getContextClassLoader() {
return this.wrappedRulesBinder.getContextClassLoader();
}
/**
* {@inheritDoc}
*/ | 0 |
public void close(boolean gracefully) {
// graceful stop is used for streaming. | 0 |
import org.apache.ambari.server.events.AgentConfigsUpdateEvent;
import org.apache.ambari.server.security.encryption.Encryptor;
import com.google.inject.TypeLiteral;
import com.google.inject.name.Names;
bind(new TypeLiteral<Encryptor<AgentConfigsUpdateEvent>>() {}).annotatedWith(Names.named("AgentConfigEncryptor... | 0 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
@Contract(threading = ThreadingBehavior.SAFE) | 0 |
*
* @deprecated (4.3) use {@link #INSTANCE}
@Deprecated
public final static LineFormatter INSTANCE = new BasicLineFormatter();
public BasicLineFormatter() {
super();
}
* {@link #INSTANCE default}
formatter = BasicLineFormatter.INSTANCE;
* ... | 0 |
final LinkedList<ISigilBundle> read = new LinkedList<ISigilBundle>();
readBundles( new OBRListener()
public void handleBundle( ISigilBundle bundle )
read.add( bundle );
}
} );
cached = read;
bundles = new Sof... | 0 |
this.referencesEl =
* @param referenceURI <code>URI</code> attribute in <code>Reference</code> for specifying
* @param transforms org.apache.xml.security.signature.Transforms object with an ordered
String baseURI, String referenceURI, Transforms transforms,
Reference ref =
... | 1 |
public void testTwoPartitions() { | 0 |
package org.apache.zookeeper.test;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;
import org.apache.zookeeper.ZooDefs.CreateFlags;
import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.data.Stat;
import org.apache.zookeeper.proto.W... | 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 |
mergedStream.setRowSchema(outputType); | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/io/ObjectInput.java,v 1.6 2006/03/14 01:20:23 hargrave Exp $
*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... | 0 |
@Override
public void clear() {
Iterator<Map.Entry<K, V>> it = AbstractPatriciaTrie.this.entrySet().iterator();
Set<K> currentKeys = keySet();
while (it.hasNext()) {
if (currentKeys.contains(it.next().getKey())) {
it.remove();
... | 0 |
package org.apache.accumulo.test.randomwalk.shard;
import org.apache.accumulo.test.randomwalk.State;
import org.apache.accumulo.test.randomwalk.Test; | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/axes/AncestorContext.java,v 1.3 2001/09/21 23:22:43 dmitri Exp $
* $Revision: 1.3 $
* $Date: 2001/09/21 23:22:43 $
* @version $Revision: 1.3 $ $Date: 2001/09/21 23:22:43 $
private ... | 0 |
import javax.servlet.Servlet;
import org.osgi.framework.ServiceReference;
import org.osgi.service.http.HttpService;
private HttpService httpServ;
doServletRegistration();
private void doServletRegistration() {
ServiceReference sr = context.getServiceReference(HttpService.class.getName());
if (sr... | 0 |
import org.apache.batik.ext.awt.image.renderable.Clip;
import org.apache.batik.ext.awt.image.renderable.Filter;
import org.apache.batik.ext.awt.image.renderable.PadMode;
import org.apache.batik.ext.awt.image.renderable.PadRable;
import org.apache.batik.ext.awt.image.renderable.TurbulenceRable;
import org.apache.batik.e... | 0 |
package org.apache.ambari.metrics.adservice.prototype.core; | 0 |
import jline.console.ConsoleReader;
import org.junit.Assert;
@Deprecated
@Test
public void testSetInstance_Fake() throws Exception {
ShellOptionsJC opts = createMock(ShellOptionsJC.class);
expect(opts.isFake()).andReturn(true);
replay(opts);
shell.setInstance(opts);
Assert.assertTrue(shell.g... | 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 m... | 0 |
* @version $Id$ | 0 |
import com.google.common.base.Function;
import com.google.common.collect.Iterables;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
protected <T extends PInput> T getInput(PTransform<T, ?> transform) {
T input = (T) currentTrans... | 0 |
import com.google.common.base.Splitter;
import com.google.common.collect.Lists; | 0 |
public interface TaskIdGenerator {
/**
* Generates a universally-unique ID for the task. This is not necessarily a repeatable
* operation, two subsequent invocations with the same object need not return the same value.
*
* @param task Task to generate an ID for.
* @return Unique ID for the task.
*/... | 0 |
import org.apache.accumulo.core.client.impl.thrift.SecurityErrorCode;
import org.apache.accumulo.core.client.security.tokens.PasswordToken; | 0 |
result.setEncoding(element.getAttributeNS(null, Constants._ATT_ENCODING)); | 0 |
@Override
protected <AggInputT, AggOutputT> Aggregator<AggInputT, AggOutputT> createAggregator(
String name,
CombineFn<AggInputT, ?, AggOutputT> combiner) {
return null;
} | 0 |
import aQute.service.reporter.*;
static public interface ERROR extends Reporter.SetLocation {}
static public interface WARNING extends Reporter.SetLocation {} | 0 |
*
DefaultOption xmlOption =
Argument pathArgument =
Group outputChildren =
Option outputOption =
| 0 |
import org.junit.experimental.categories.Category;
Config config = cf.createNew(m_cluster, ConfigHelper.CLUSTER_ENV, "version2", | 0 |
import org.apache.ambari.server.state.ConfigHelper;
expect(cluster.getClusterProperty(ConfigHelper.CLUSTER_ENV_ALERT_REPEAT_TOLERANCE, "1")).andReturn("1").atLeastOnce(); | 0 |
((FelixBundle) framework.getBundle(0)).getInfo().getBundleContext(); | 0 |
/**
* Get the reply, and pass it to command listeners
*/
private void __getReply() throws IOException
{
__getReply(true);
}
/**
* Get the reply, but don't pass it to command listeners.
* Used for keep-alive processing only.
*/
protected void __getReplyNoReport(... | 0 |
import org.apache.commons.vfs.FileType;
final FileType type,
super(scheme, hostName, port, defaultPort, userName, password, path, type);
public FileName createName(final String absPath, FileType type)
type, | 0 |
private Analyzer m_analyzer;
private Reporter m_reporter;
private MetadataRenderer m_renderer = new MetadataRenderer();
m_analyzer = analyzer;
m_reporter = reporter;
Resource resource = m_analyzer.getJar().getResource(path);
Collection<Clazz> classes = m_analyzer.getClass... | 0 |
SimpleRequestProducer.create(request), | 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... | 0 |
import junit.framework.TestCase;
| 0 |
* @version $Revision: 1.47 $
Tag tag = getTag(context);
public Tag getTag(JellyContext context) throws JellyException {
Tag tag = context.getTagOfTagScript(this);
context.setTagForScript(this,tag);
configureTag(tag,context);
protected void configureTag(Tag tag, Jel... | 0 |
SecurityException se = new SecurityException(ex.getMessage());
se.initCause(ex);
throw se;
SecurityException se =
new SecurityException(
... | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableSet;
import org.apache.beam.vendor.guava.v26_0_jre.com.googl... | 0 |
return Transforms.TRANSFORM_C14N11_OMIT_COMMENTS;
(XMLSignatureInput input, Transform transform)
throws CanonicalizationException {
return enginePerformTransform(input, null, transform);
(XMLSignatureInput input, OutputStream os, Transform transform)
throws Canonicalizati... | 1 |
package org.apache.felix.webconsole; | 0 |
/**
* Copyright 2016 Seznam a.s.
*
* 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... | 0 |
volatile boolean persisted = false; | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.translate.io; | 0 |
* <p>Users can optionally specify a query priority using {@link TypedRead#withQueryPriority(
* TypedRead.QueryPriority)} and a geographic location where the query will be executed using {@link
* TypedRead#withQueryLocation(String)}. Query location must be specified for jobs that are not
* executed in US or EU. See ... | 0 |
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.commons.vfs.provider.local;
import org.apa... | 0 |
import org.apache.http.nio.util.HeapByteBufferAllocator;
this(handler, new HeapByteBufferAllocator(), params); | 0 |
*
* Note that this class is intended as an in-memory replacement for RFile$Reader, so its behavior reflects the same assumptions; namely, that this iterator is
* not responsible for respecting the columnFamilies passed into seek(). If you want a Map-backed Iterator that returns only sought CFs, construct a new
*
*... | 0 |
package org.apache.commons.dbcp2.datasources; | 1 |
import org.apache.ambari.server.orm.entities.ClusterVersionEntity;
import org.apache.ambari.server.orm.entities.RepositoryVersionEntity;
private RepositoryVersionEntity repositoryVersion;
StackId stackId = new StackId("HDP-2.0.6");
ClusterVersionEntity clusterVersion = c1.createClusterVersion(stackId,
... | 0 |
import org.apache.http.impl.nio.DefaultClientIOEventDispatch;
public class SSLClientIOEventDispatch extends DefaultClientIOEventDispatch {
super(handler, params);
@Override
if (conn == null) {
SSLIOSession ssliosession = createSSLIOSession(
session,
... | 0 |
@SuppressWarnings({"unchecked", "serial", "rawtypes", "unused"}) public class SpanReceiver {
public enum _Fields implements org.apache.thrift.TFieldIdEnum { | 0 |
package org.apache.jcp.xml.dsig.internal.dom; | 0 |
assertTrue("Wrong clone result", copy instanceof AbstractHierarchicalConfiguration);
AbstractHierarchicalConfiguration<?> copy =
(AbstractHierarchicalConfiguration<?>) config.clone();
Configuration clone = (Configuration) config.clone();
* A concrete test implementation of
... | 0 |
formatter.printHelp("app", options); // used to hang & crash | 0 |
package org.apache.felix.sigil.ui.eclipse.ui.form; | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.