Diff stringlengths 5 2k | FaultInducingLabel int64 0 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 |
final ActionExecutionContext actionContext, Stage stage)
Map<String, String> commandParams = new TreeMap<String, String>(); | 0 |
package org.apache.beam.sdk.extensions.sql.schema.kafka;
import org.apache.beam.sdk.extensions.sql.schema.BaseBeamTable;
import org.apache.beam.sdk.extensions.sql.schema.BeamIOType;
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRow;
import org.apache.beam.sdk.extensions.sql.schema.BeamSqlRowType; | 0 |
import cz.seznam.euphoria.shaded.guava.com.google.common.util.concurrent.ThreadFactoryBuilder; | 0 |
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
* @version CVS $Id: CompilingInterpreter.java,v 1.2 2004/02/20 18:48:23 sylvain Exp $
public void service(ServiceManager manager) throws ServiceException {
super.service(manager); | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 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 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
import org.apache.http.annotation.NotThreadSafe; | 0 |
/**
* @deprecated since 2.0.0
*/
@Deprecated | 0 |
class FileSystemKey implements Comparable<FileSystemKey>
private final Comparable<?> key;
/**
* Create the FS key.
*
* @param key must implement Comparable, and must be self-comparable
* @param fileSystemOptions the required options
*/
FileSystemKey(final Comparable<?> key, final F... | 0 |
* or more contributor license agreements. See the NOTICE file
* regarding copyright ownership. The ASF licenses this file
* with the License. You may obtain a copy of the License at
* KIND, either express or implied. See the License for the | 0 |
import com.google.inject.Inject;
import com.twitter.common.process.GuicedProcess;
import com.twitter.common.process.GuicedProcessOptions;
public class SchedulerMain extends GuicedProcess<SchedulerMain.TwitterSchedulerOptions,Exception> {
public static class TwitterSchedulerOptions extends GuicedProcessOptions {
p... | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
} else if (algName.equalsIgnoreCase("EC") &&
algURI.equalsIgnoreCase("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256")) {
return true; | 0 |
import org.apache.http.config.MessageConstraints; | 0 |
package org.apache.commons.vfs2.operations.vcs;
import org.apache.commons.vfs2.operations.FileOperation; | 1 |
(c, nextChar, ARABIC_ISOLATED);
(c, nextChar, ARABIC_TERMINAL);
(c, nextChar, ARABIC_MEDIAL); | 0 |
private final OutboundSecurityContext outboundSecurityContext;
public OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext) {
this(outboundSecurityContext, 0);
public OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext, int startPos) {
this(outboundSe... | 0 |
* @param msgID
public MissingResourceFailureException(Reference reference, String msgID) {
* @param reference
public MissingResourceFailureException(Reference reference, String msgID, Object exArgs[]) {
* @param msgID
Exception originalException, Reference reference, String msgID
... | 0 |
Bundle b = ((ModuleImpl) ex.getModule()).getBundle();
"Unresolved constraint in bundle " + b + ": " | 0 |
import static org.apache.beam.runners.core.metrics.ExecutionStateTracker.ABORT_STATE_NAME;
import static org.apache.beam.runners.core.metrics.ExecutionStateTracker.FINISH_STATE_NAME;
import static org.apache.beam.runners.core.metrics.ExecutionStateTracker.PROCESS_STATE_NAME;
import static org.apache.beam.runners.core.m... | 0 |
commandParams.put(HOOKS_FOLDER, configuration.getProperty(Configuration.HOOKS_FOLDER)); | 0 |
* @version $Id$ | 0 |
package com.twitter.aurora.scheduler.thrift; | 0 |
import org.apache.hc.core5.testing.nio.http.AsyncRequester;
import org.apache.hc.core5.testing.nio.http.ClientSessionEndpoint;
super(ioReactorConfig); | 0 |
public class NoKeyInfoTest extends org.junit.Assert {
public NoKeyInfoTest() throws Exception {
@org.junit.Test
String filename =
"data/ie/baltimore/merlin-examples/merlin-xmldsig-twenty-three/signature-enveloping-hmac-sha1.xml";
f = new File(BASEDIR + SEP + filename);
... | 0 |
public boolean matches(final String className) {
private void assertSerialization(final ObjectInputStream ois) throws ClassNotFoundException, IOException {
CustomVOIS(final InputStream is) throws IOException {
protected void invalidClassNameFound(final String className) throws Invali... | 0 |
* getContext().getFileSystemManager()).closeFileSystem(fileSystem); | 0 |
while (Character.isWhitespace((char) peek())) get(); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/PropertyUtils.java,v 1.36 2002/12/16 00:21:02 craigmcc Exp $
* $Revision: 1.36 $
* $Date: 2002/12/16 00:21:02 $
* @version $Revision: 1.36 $ $Date: 2002/12/16 00:21:02 $
* @dep... | 0 |
final String value = header.getValue();
final ParserCursor cursor = new ParserCursor(0, value.length());
return parseTokens(value, cursor); | 0 |
*/
/** Return int from method
*/
public IRETURN() {
super(org.apache.bcel.Constants.IRETURN);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descendi... | 0 |
public class SingletonIterator<E>
implements Iterator<E>, ResettableIterator<E> {
private E object;
public SingletonIterator(E object) {
public SingletonIterator(E object, boolean removeAllowed) {
public E next() { | 0 |
public void addListNode(final String nodeName)
public boolean isListNode(final ImmutableNode node)
public ImmutableNode getParent(final ImmutableNode node) | 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.sshd.client.session.ClientSessionHolder;
import org.apache.sshd.common.util.ValidateUtils;
public abstract class AbstractUserAuth extends AbstractLoggingBean implements UserAuth, ClientSessionHolder {
private final ClientSession session;
private final String service;
this.session = Val... | 0 |
LOG.debug("Received heartbeat from host"
LOG.debug(report.getRole() + " is an action - skip component lookup"); | 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 |
((AbstractClientConnAdapter) conn).releaseConnection();
((AbstractClientConnAdapter) conn).releaseConnection();
((AbstractClientConnAdapter) conn).releaseConnection();
((AbstractClientConnAdapter) conn).releaseConnection(); | 0 |
import org.apache.ambari.server.controller.internal.UpgradeResourceProvider;
.withRepositoryVersion(RequestAuditEventCreatorHelper.getProperty(request, UpgradeResourceProvider.UPGRADE_VERSION))
.withUpgradeType(RequestAuditEventCreatorHelper.getProperty(request, UpgradeResourceProvider.UPGRADE_TYPE))
... | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/util/Flags.java,v 1.7 2004/02/01 02:40:22 dgraham Exp $
* $Revision: 1.7 $
* $Date: 2004/02/01 02:40:22 $
* Flag 4 = 8<br/><br/>
* or using shift operator to make numbering easier... | 0 |
* The logger for the factory. | 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 static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Strings.isNullOrEmpty;
checkArgument(uri.getScheme().equalsIgnoreCase(SCHEME), "URI: %s is not a GCS URI", uri);
checkArgument(uri.getPort() == -1,
checkArgument(
isNullOrEmpty(uri.getUserInfo()),... | 0 |
private static long WAIT_EMPTY_QUEUE = 60000;
}
try {
Thread.sleep(WAIT_EMPTY_QUEUE);
} catch(InterruptedException ie) {
//ignore and continue
}
| 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/CallMethodRule.java,v 1.11 2001/12/15 19:45:56 craigmcc Exp $
* $Revision: 1.11 $
* $Date: 2001/12/15 19:45:56 $
import org.apache.commons.beanutils.MethodUtils;
* @version $Revision:... | 0 |
* Describes a service component. Service components form descriptions of services
* that are managed by the dependency manager. They can be used to query their state
* for monitoring tools. The dependency manager shell command is an example of
* such a tool.
/** Names for the states of this component. */
/*... | 0 |
import org.apache.beam.runners.fnexecution.FnService;
public class FnApiControlClientPoolService extends BeamFnControlGrpc.BeamFnControlImplBase
implements FnService {
@Override
public void close() throws Exception {
// TODO: terminate existing clients.
} | 0 |
* @param info the contextual information | 1 |
import org.apache.accumulo.core.iterators.SortedKeyValueIterator;
/**
* A scanner that instantiates iterators on the client side instead of on the tablet server. This can be useful for testing iterators or in cases where you
* don't want iterators affecting the performance of tablet servers.
* Suggested usage: Scann... | 0 |
final List<String> list = parseElements(value.toString());
results[i] = Short.parseShort(list.get(i)); | 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 |
OUT result = reducer.apply(reducableValues);
getCollector().collect(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 not... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/share/org/apache/commons/validator/Form.java,v 1.13 2004/02/01 02:25:08 dgraham Exp $
* $Revision: 1.13 $
* $Date: 2004/02/01 02:25:08 $
/**
* Validate all Fields in this Form on the given page and belo... | 1 |
throw new NoSuchElementException(
"Service " + serviceName + " not registered with registry");
PropertiesConfiguration configuration =
new PropertiesConfiguration("application.properties"); | 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 applicabl... | 0 |
import org.joda.time.DateTime;
Assert.assertEquals(new DateTime().withDate(2017, 05, 21)
.withTimeAtStartOfDay(),
Assert.assertEquals(new DateTime().withDate(2017, 05, 21)
.withTimeAtStartOfDay(),
Assert.assertEquals(new DateTime().withDate(2017, 05, 21)
.withTimeAtStartOfDay(),
... | 0 |
import org.apache.felix.webconsole.internal.BaseWebConsolePlugin;
public class BundleRepositoryRender extends BaseWebConsolePlugin
public static final String LABEL = "bundlerepo";
public static final String TITLE = "OSGi Repository";
public String getLabel()
return LABEL;
public String getTitle(... | 0 |
// method reference
// field reference
ref.setFieldOption( attributes.getAttribute( "field-option" ) );
ref.setFieldCollectionType( attributes.getAttribute( "field-collection-type" ) ); | 0 |
import org.junit.Assert; | 0 |
//Core.cleanup(); | 0 |
import java.util.Objects;
public int hashCode() {
return Objects.hashCode(getFileSystem()) + Objects.hashCode(getBasePath());
}
@Override | 0 |
public class MockHttpServletRequest implements HttpServletRequest { | 0 |
package org.apache.beam.sdk.coders;
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.coders.CoderRegistry.IncompatibleCoderException;
import org.apache.beam.sdk.coders.protobuf.ProtoCoder;
import org.apache.beam.sdk.testing.TestPipeline;
import org.apache.beam.sdk.transforms.Create;
import org.apache.bea... | 0 |
* Parse the given dictionnary and create the instance managers. | 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 |
private transient Map<String, Object> mapDecorator;
public Map<String, Object> getMap() {
mapDecorator = new DynaBeanPropertyMapDecorator(this); | 0 |
*
*
*
/**
*
* @version $Id: JellyContextAdapter.java,v 1.4 2004/09/09 12:23:16 dion Exp $
/**
*
* to propogate.
| 1 |
// is not removal pending. If the fragment revision
// is removal pending, then its current revision will
// be null or won't match the existing revision.
BundleRevision currentFragmentRevision =
... | 0 |
import javax.servlet.http.HttpSession;
final HttpSession session = request.getSession(false); | 0 |
* any, must include the following acknowledgement:
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
* permission of the Apache Software Foundation.
* @version $Revision: 1.2 $ $Date: 2003/10/13 08:42:45 $ | 0 |
private static final String LIB_VERSION_WRAPPER = "1.0.0-M2-SNAPSHOT";
private static final String LIB_VERSION_SPRING_RELOADER = "1.0.0-M2-SNAPSHOT"; | 0 |
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.NotThreadSafe;
@NotThreadSafe // unsynch access to queues etc
@GuardedBy("poolLock") | 0 |
* An asynchronous appender that maintains its own internal socket appender. Unlike
* <code>AsyncAppender</code>, this appender can be configured with a Log4J properties file,
* although in that case no additional appenders can be added.
* Creates a new appender using the given socket appender internally. Use this... | 0 |
import org.apache.commons.lang3.StringUtils;
final String message;
this(oldState, newState, "");
}
public IllegalTableTransitionException(TableState oldState, TableState newState, String message) {
if (StringUtils.isNotEmpty(message))
this.message = message;
else {
String... | 0 |
* @version CVS $Id: DefaultLayoutFactory.java,v 1.2 2003/05/07 20:24:02 cziegeler Exp $
// TODO do something here
// we have to set the aspect data handler | 0 |
clcm.releaseConnection(conn, -1, null); | 0 |
import java.io.IOException;
import java.io.StringReader; | 0 |
private static final long serialVersionUID = 0;
private static final long serialVersionUID = 0;
private static final long serialVersionUID = 0; | 0 |
import org.apache.ambari.server.controller.utilities.PropertyHelper;
public static final String ID_PROPERTY_ID = "id";
public static final String CLUSTER_NAME_PROPERTY_ID = "cluster_name";
public static final String NAME_PROPERTY_ID = "name";
public static final String DEFAULT_PROPERTY_ID = "default";
public... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNamespaceIterator.java,v 1.1 2002/04/21 21:52:33 dmitri Exp $
* $Date: 2002/04/21 21:52:33 $
package org.apache.commons.jxpath.ri.model.dom;
import org.apache.commons.jxpath... | 0 |
public static <E> Closure<E> invokerClosure(final String methodName, final Class<?>[] paramTypes,
final Object[] args) {
public static <E> Closure<E> ifClosure(final Predicate<? super E> predicate,
final Closure<? super E... | 0 |
Collection<Text> splits = state.getConnector().tableOperations().listSplits(indexTableName);
splits = state.getConnector().tableOperations().listSplits(indexTableName); | 0 |
.inOnlyPane(new IntervalWindow(new Instant(0L), new Instant(500L)))
.inOnlyPane(new IntervalWindow(new Instant(-500L), new Instant(0L))) | 0 |
final List<Iterator<? extends E>> list = new ArrayList<>(); | 1 |
handler.open(administratorCredential, defaultRealm, getConfiguration("kerberos-env")); | 0 |
* @goal deploy
* Maven settings.
* @readonly
* When true, ignore remote locking.
repoDescriptorFile = remoteFile.get( m_repositoryName, ".xml" );
// get the path to local maven repository
String mavenRepository = m_localRepo.getBasedir();
URI repoXml = repoDescriptorF... | 0 |
import org.apache.beam.sdk.extensions.sql.schema.BeamRecordSqlType;
BeamRecordSqlType type = BeamRecordSqlType.create(
.of(BeamRecordSqlType.create(names, types)) | 0 |
return super.getClass().getName(); | 0 |
import org.apache.beam.harness.test.TestStreams; | 0 |
/**
* Executes the graph query.
* @return
*/
Iterable<Object> vertexIds();
/**
* Executes graph query
* @param limit Max vertices to return
* @return
*/
Iterable<Object> vertexIds(int limit);
/**
* Executes graph query
* @param offset Starting offset
... | 0 |
@Ignore("https://issues.apache.org/jira/browse/BEAM-3604 Test timeout failure.")
@Ignore("https://issues.apache.org/jira/browse/BEAM-5150 Flake Non-deterministic output.") | 0 |
interface RowBufferFactory {
interface RowBuffer extends Iterable<Entry<Key,Value>> { | 0 |
* </p>
* </p>
* </p>
| 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 |
AccumuloInputFormat.setClientProperties(job, getClientProperties());
AccumuloOutputFormat.setClientProperties(job, getClientProperties()); | 0 |
import org.apache.accumulo.trace.instrument.TraceExecutorService;
*
*
*
| 0 |
/** {@code PTransform}s for mapping a simple function over the elements of a {@link PCollection}. */
extends PTransform<PCollection<? extends InputT>, PCollection<OutputT>> {
* Returns a new {@link MapElements} transform with the given type descriptor for the output type,
* but the mapping function yet to be ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.