Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
public BeanToPropertyValueTransformer(final String propertyName) {
public BeanToPropertyValueTransformer(final String propertyName, final boolean ignoreNull) {
public Object transform(final Object object) {
} catch (final IllegalArgumentException e) {
final IllegalArgumentException i... | 0 |
* @version $Revision: 1.7 $ $Date: 2002/11/23 00:41:09 $
throw new FileSystemException( "vfs.impl/create-provider.error", providerClassName, e ); | 0 |
} if (SourceUtil.getScheme(uri).equals("servlet")) {
if (redirector.hasRedirected()) {
throw new IllegalStateException("Pipeline has already been processed for this request");
}
final Map objectModel = this.processInfoProvider.getObjectModel();
Flo... | 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 |
* @version CVS $Id: DefaultLinkService.java,v 1.15 2004/07/11 17:23:29 antonio Exp $
final int pos = info.linkBase.toString().indexOf("?"); | 0 |
public void testWithNamespace_1_4_0() throws IOException, XmlPullParserException
{
String empty = "<metatype:MetaData xmlns:metatype=\"" + MetaDataReader.NAMESPACE_1_4 + "\" " + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ></metatype:MetaData>";
MetaData mti = read(empty);
... | 0 |
try (AccumuloClient c = createAccumuloClient()) { | 0 |
package org.apache.beam.runners.jet;
import com.hazelcast.jet.impl.util.ThrottleWrappedP;
.map(wV -> Utils.encode(wV, outputCoder));
ProcessorSupplier.of(
() -> new ThrottleWrappedP(new TestStreamP(payload, payloadCoder, outputCoder), 4))); | 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 java.util.HashMap;
import java.util.Map;
import org.apache.ambari.server.api.resources.ResourceInstance;
import org.apache.ambari.server.controller.spi.Resource; | 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 java.io.UnsupportedEncodingException;
if (value == null) {
return null;
}
if (bytes == null) {
return;
}
hostBytes = unqualifiedHost != null? unqualifiedHost.getBytes("ASCII") : null;
domainBytes = unqualifiedDoma... | 0 |
* @deprecated since 1.5.0; use {@link #dropLocalUser(String)} or the user management functions of
* your configured authenticator instead. | 0 |
directory + "/c14n-" + i + ".apache.txt", signature.getSignedInfo()
.item(i).getContentsAfterTransformation().getBytes());
JavaUtils.writeBytesToFilename(
directory + "/c14n-" + i + ".apache.html", signature.getSignedInfo()
.it... | 0 |
iter.next();
if (iter.getValue() == this) {
String name = (String) iter.next();
if (name.substring(0, name.indexOf('[')).equals(getName())) { | 0 |
/*
* Copyright 2000-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 ... | 0 |
/**
* Gets true if the dependency use Nullable objects.
* @return true if the dependency is optional and supports nullable objects.
*/
public boolean supportsNullable() {
return m_supportNullable;
}
public String getDefaultImplementation() {
return m_di;
} | 0 |
package org.apache.accumulo.test.functional;
IteratorSetting dropMod = new IteratorSetting(50, "dropMod", "org.apache.accumulo.test.functional.DropModIter"); | 0 |
entityREST.updateClassifications(dbEntity.getGuid(), new ArrayList<>(Arrays.asList(phiClassification, testClassification))); | 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 ... | 0 |
* implementation available in an older commons-lang implementation.
* This class is not part of the public API and could change without
* warning. | 0 |
* RequestDate interceptor is responsible for adding {@code Date} header | 0 |
@ManyToOne(optional = false) | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/CollectionIntCollection.java,v 1.6 2003/02/28 21:21:51 rwaldhoff Exp $
* @version $Revision: 1.6 $ $Date: 2003/02/28 21:21:51 $
final public class Collec... | 0 |
SharedObjectsFactory.dropInstanceCache(definition.getInstanceName());
UserLocal.dropInstanceCache(definition.getInstanceName());
SharedObjectsFactory.dropInstanceCache(definition.getInstanceName()); | 0 |
* Kerberos keytab path to use.
*/
@SerializedName("kerberos_keytab")
private String m_kerberosKeytab;
/**
* Kerberos principal name to use.
*/
@SerializedName("kerberos_principal")
private String m_kerberosPrincipal;
/**
* The configuration property with kerberos keytab path.
*
* @ret... | 0 |
import javax.annotation.Nullable;
* @param reason The reason for the state change, or {@code null} if there is no information
* relevant to the state transition.
public int sendStatusUpdate(String taskId, ScheduleStatus status, @Nullable String reason);
@Override public int sendStatusUpdate(final String... | 0 |
import org.apache.geronimo.gshell.ansi.AnsiRenderWriter;
public void testAnsi() {
AnsiRenderWriter w = new AnsiRenderWriter(System.out);
w.println("Hey, @|cyan Hello| world");
w.flush();
}
| 0 |
m_env = new BackgroundEnvironment(envContext); | 0 |
* @version CVS $Id: SourceHandler.java,v 1.2 2003/03/16 17:49:10 vgritsenko Exp $ | 0 |
* @version $Revision$ $Date$ | 0 |
import java.io.IOException;
import org.apache.sshd.server.channel.ChannelSession;
public Command createCommand(ChannelSession channel, String command) throws IOException {
return factory.createCommand(channel, command); | 0 |
import java.util.Properties;
import org.apache.accumulo.server.ServerContext;
private ServerContext context;
context = createMock(ServerContext.class);
ServerConfigurationFactory scf = createMock(ServerConfigurationFactory.class);
expect(context.getServerConfFactory()).andReturn(scf);
expect(context.g... | 0 |
import com.twitter.aurora.scheduler.storage.TaskStore.Mutable.TaskMutation;
@Override public void addWork(
WorkCommand work,
TaskStateMachine stateMachine,
Function<ScheduledTask, ScheduledTask> mutation) {
private final Function<ScheduledTask, ScheduledTask> mutation;
Work... | 0 |
return new AnyPredicate<>(FunctorUtils.copy(predicates));
return new AnyPredicate<>(preds); | 1 |
import org.apache.hc.core5.http.impl.bootstrap.ClientSessionEndpoint;
final Future<ClientSessionEndpoint> connectFuture = client.connect(target, 5, TimeUnit.SECONDS);
final ClientSessionEndpoint clientEndpoint = connectFuture.get(5, TimeUnit.SECONDS); | 0 |
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(HierarchicalQuorumTest.class);
} | 0 |
protected RenderingHints renderingHints;
protected AffineTransform usr2dev;
* @param rh Hints for rendering.
* @param at Starting user to device coordinate system transform.
public StaticRenderer(RenderingHints rh,
AffineTransform at){
renderingHints = new Render... | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
* Replacements can be several per task, so they're passed in as a json-ified list of
* objects.
*/
public static final String PARAMETER_REPLACEMENTS = "configure-task-replacements";
/**
@XmlElement(name="replace")
private List<Replace> replacements;
* Used to replace strings in a key with other st... | 0 |
return clone(); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/CharListList.java,v 1.2 2003/08/31 17:21:16 scolebourne Exp $
* any, must include the following acknowledgement:
* Alternately, this acknowledgeme... | 0 |
private String fileResource;
public String getFileResource() {
public void setFileResource(String fileResource) { | 0 |
/** The default location of spring related configuration files inside a block. */
public static final String DEFAULT_SPRING_BLOCK_CONFIGURATION_LOCATION = "classpath*:META-INF/cocoon/spring"; | 0 |
import org.apache.ambari.server.controller.internal.ClusterStackVersionResourceProvider;
.implement(ResourceProvider.class, Names.named("clusterStackVersion"), ClusterStackVersionResourceProvider.class) | 0 |
* @version CVS $Id: FileGenerator.java,v 1.5 2003/09/18 14:43:48 vgritsenko Exp $
if (null != this.inputSource) {
super.resolver.release(this.inputSource);
this.inputSource = super.resolver.resolveURI(src);
throws IOException, SAXException, ProcessingException {
if... | 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 |
configs.put(entry.getKey().toString(), (InputTableConfig) entry.getValue()); | 0 |
public void close() {
public FSDataOutputStream create(Path dest) {
public FSDataOutputStream create(Path path, boolean b) {
public FSDataOutputStream create(Path path, boolean b, int int1, short int2, long long1) {
public boolean createNewFile(Path writable) {
long blockSize) {
public b... | 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 ... | 1 |
import org.apache.avalon.framework.container.ContainerUtil;
* @version CVS $Id$
final Program p = new PythonProgram(sourceFile, clazz, dependecies);
ContainerUtil.enableLogging(p, this.getLogger());
return p; | 0 |
expect(status.getStatusMetadata()).andReturn(null);
expect(status.getStatusMetadata()).andReturn(null); | 0 |
import org.apache.sshd.server.config.keys.ServerIdentity;
String optName = opt.substring(0, idx);
String optValue = opt.substring(idx + 1);
if (ServerIdentity.HOST_KEY_CONFIG_PROP.equals(optName)) {
if (keyFiles == null) {
keyF... | 0 |
package org.apache.felix.sigil.ui.eclipse.ui.quickfix;
import org.apache.felix.sigil.eclipse.SigilCore;
import org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel;
import org.apache.felix.sigil.model.ModelElementFactory;
import org.apache.felix.sigil.model.ModelElementFactoryException;
import org.apache.fe... | 0 |
/*
* Copyright (C) 2014 Google Inc.
*
* 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 |
import java.net.URI;
import java.net.URISyntaxException;
String fileUri = row.substring(offset + 1);
try {
new URI(fileUri);
} catch (URISyntaxException e) {
Assert.fail("Expected a valid URI: " + fileUri);
}
replRows.add(fileUri);
String fi... | 0 |
import org.apache.ambari.logsearch.config.json.model.inputconfig.impl.FilterGrokDescriptorImpl; | 0 |
package com.twitter.nexus.scheduler;
import com.google.common.base.Preconditions;
import com.twitter.common.base.Closure;
import com.twitter.nexus.gen.JobConfiguration;
/**
* Interface for a job scheduler module. A job scheduler is responsible for deciding whether to
* trigger execution of a job.
*
* @author wfa... | 0 |
import java.io.Serializable;
import java.util.List; | 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 |
if(getProcessMyRequests() == true) {
}
if(getProcessChildRequests() == true) { | 0 |
private final String rulesClassSuffix;
private final String methodName;
return new LoaderFromClass( rulesClass, DFLT_METHOD_NAME ); | 0 |
import org.apache.felix.dm.Dependency;
import org.apache.felix.dm.Service; | 0 |
* Form model library.
*
protected final Object shared = new Object();
public Library(LibraryManager lm, ServiceSelector builderSelector) {
widgetDefinitionBuilderSelector = builderSelector;
protected class Dependency {
private final String dependencyURI;
private final Object shared... | 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 |
public static final MockedBoundedTable ORDER_DETAILS1 =
MockedBoundedTable.of(
Types.INTEGER, "order_id",
Types.INTEGER, "site_id",
Types.INTEGER, "price"
).addRows(
1, 2, 3,
2, 3, 3,
3, 4, 5
);
public static final MockedBoundedTable ORD... | 0 |
import org.apache.batik.gvt.font.GVTFontFace;
private GVTFontFace fontFace;
GVTFontFace fontFace, | 0 |
public static final String VISUAL_HOST_KEY = "VisualHostKey";
public static final String DEFAULT_VISUAL_HOST_KEY = "no"; | 0 |
* @param index the index to insert the interceptor at | 0 |
private ServiceInfo info;
* @param role the component's role. Can be <code>null</code> if the role isn't known.
public static ComponentHandler getComponentHandler( final String role,
final Class componentClass,
ComponentFactory factory;
... | 0 |
Iterator<Option> iter = cmd.iterator();
Option opt = iter.next(); | 0 |
import org.apache.hc.core5.io.ShutdownType;
public void shutdown(final ShutdownType shutdownType) {
ioSession.shutdown(shutdownType); | 0 |
* @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A> | 0 |
ServiceInfo si = ambariMetaInfo.getService("HDP", "2.1.1", "ZOOKEEPER");
si.setDisplayName("Zk");
ComponentInfo ci = si.getComponentByName("ZOOKEEPER_SERVER");
ci.setDisplayName("ZooKeeper1 Server2");
UpgradeGroupHolder group = groups.get(1);
// check that the display name is being used
a... | 0 |
import org.ow2.chameleon.testing.helpers.BaseTest;
import java.util.Arrays;
import java.util.List;
public class TestGetComponentInstance extends BaseTest {
@Override
protected List<String> getExtraExports() {
return Arrays.asList("org.apache.felix.ipojo.runtime.core.components");
}
| 0 |
return (I) currentTransform.getInput();
return (O) currentTransform.getOutput(); | 0 |
throw e; | 1 |
* 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 |
public boolean getConfigurationFactory() {
return Util.getBooleanValue(annotation, "getConfigurationFactory", Component.class);
map.put(Constants.COMPONENT_SET_METATYPE_FACTORY_PID, String.valueOf(this.annotation.getConfigurationFactory())); | 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 |
sshd.setCommandFactory(StreamCommand::new);
sshd.setCommandFactory(command -> new Command() {
private ExitCallback cb;
public void setOutputStream(OutputStream out) {
// ignored
public void setInputStream(InputStream in) {
// ignored
... | 0 |
package org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.string;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.BeamSqlFnExecutorTestBase;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.BeamSqlExpression;
import org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.Be... | 0 |
import java.util.ArrayList;
import java.util.List;
private static boolean ignoreLineBreaks =
AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
public Boolean run() {
}).booleanValue();
private static void getSetRec(final Node rootNode, final Set<Node> result,
... | 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 |
private static final long serialVersionUID = 0L;
| 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.apache.beam.runners.spark.util.SideInputBroadcast;
protected final Map<TupleTag<?>, KV<WindowingStrategy<?, ?>, SideInputBroadcast<?>>> sideInputs;
public SparkAbstractCombineFn(
SparkRuntimeContext runtimeContext,
Map<TupleTag<?>, KV<WindowingStrategy<?, ?>, SideInputBroadcast<?>>> sideInpu... | 0 |
if ( null == targetPath || targetPath.trim().length() == 0 || "true".equalsIgnoreCase( targetPath ) ) | 0 |
String tableDir = fs.matchingFileSystem(new Path(sourceDir), ServerConstants.getTablesDirs()).toString();
| 0 |
import java.security.SecureRandom;
private final Random random = new SecureRandom(); | 0 |
package org.apache.beam.runners.flink; | 0 |
AccumuloClient client = Accumulo.newClient().usingClientInfo(getClientInfo(job))
token = client.securityOperations().getDelegationToken(new DelegationTokenConfig());
AccumuloClient client = InputConfigurator.getClient(CLASS, job);
InputConfigurator.validatePermissions(CLASS, job, client);
... | 0 |
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonProperty("warning")
@JsonProperty("critical")
@JsonProperty("ok")
@JsonProperty("units")
@JsonProperty("type")
return Objects.hash(m_critical, m_ok, m_warning, m_type);
if ... | 0 |
throw new KerberosOperationException(String.format("Failed to create service principal for %s\nSTDOUT: %s\nSTDERR: %s",
principal, stdOut, result.getStderr())); | 0 |
rootName.getPath(),
getFileSystemOptions()); | 0 |
import org.apache.ambari.server.controller.internal.DeleteHostComponentStatusMetaData;
m_cluster.getService("HDFS").delete(new DeleteHostComponentStatusMetaData());
m_cluster.getService("HDFS").delete(new DeleteHostComponentStatusMetaData());
m_cluster.getService("HDFS").delete(new DeleteHostComponentStatus... | 1 |
* An auxiliary method of getElementsByTagName.
*/
protected static void getElementsByTagName(Node node, String name,
Nodes list) {
if (node.getNodeType() == ELEMENT_NODE) {
if (name.equals("*") || name.equals(node.getNodeName())) {
list.append(node);
... | 0 |
* Helper class to pass the result of a validation back along with
* @version CVS $Id: ValidatorActionHelper.java,v 1.2 2003/07/18 20:52:04 stephan Exp $ | 0 |
System.out.printf("reading %d...%n", m);
System.out.printf("splitting with %d remaining...%n", n); | 0 |
/**
* The Key that should be returned to the client
*/
/**
* The Value that should be return to the client
*/
/**
* The Key that is used to determine progress in the current InputSplit. It is not returned to the client and is only used internally
*/ | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.