Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
FlinkPipelineOptions options = PipelineOptionsFactory.as(FlinkPipelineOptions.class);
options,
FlinkExecutableStageContext.factory(options), | 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 |
ServerContext context = new ServerContext(opts.getSiteConfiguration());
loginTracer(context.getConfiguration()); | 0 |
import org.apache.commons.cli2.option.PropertyOption;
cl.addProperty(new PropertyOption(), "present","present property");
assertNull(writeable.getProperty(new PropertyOption(), "present"));
writeable.addProperty(new PropertyOption(), "present","present value");
assertEquals("present value",writeable.getProperty... | 0 |
for (Object key : keys) {
for (Object key : keys) { | 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 |
package org.apache.felix.karaf.shell.console.completer;
import org.apache.felix.karaf.shell.console.Completer; | 0 |
if (assigner == null || !assigner.getClass().getName().equals(workAssignerClass)) { | 0 |
Map<String,Object> map = new HashMap<>();
Map<String,Object> results = new HashMap<>();
List<Map<String,Object>> servers = new ArrayList<>();
Map<String,Object> badServer = new HashMap<>();
Map<String,Object> deadServer = new HashMap<>(); | 1 |
package org.apache.beam.runners.core.construction; | 0 |
import java.util.Random;
private final int hashCode = (RANDOM.nextInt() * Integer.MAX_VALUE);
private static final Random RANDOM = new Random(); | 0 |
import org.apache.avalon.excalibur.pool.Recyclable;
public class SaxBuffer implements ContentHandler, LexicalHandler, XMLizable, Recyclable {
public void recycle() {
saxbits.clear();
}
| 0 |
if ((m_type != null) && m_type.equalsIgnoreCase(Resource.VERSION)
&& (value.indexOf(',') > 0))
{
return VersionRange.parse(value);
}
else if ((m_type != null) && m_type.equalsIgnoreCase(Resource.VERSION)) | 0 |
* Adds all event listener registrations stored in the specified
* {@code EventListenerList} to this list.
*
* @param c the list to be copied (must not be <b>null</b>)
* @throws IllegalArgumentException if the list to be copied is <b>null</b>
*/
public void addAll(EventListenerList c)
... | 0 |
import java.util.Iterator;
PropertiesConfiguration buildConfiguration =
new PropertiesConfiguration("metadata-buildinfo.properties");
String appPath = "webapp/target/metadata-webapp-" + getProjectVersion(buildConfiguration);
PropertiesConfiguration configuration =
... | 0 |
this.serviceId = (Long) ref.getProperty(Constants.SERVICE_ID);
if (rankingObj instanceof Integer)
this.ranking = (Integer) rankingObj;
return (value instanceof String) ? ((String) value).trim() : null;
final String[] arr = (String[]) value;
String[] v... | 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 com.google.cloud.dataflow.sdk.options.PipelineOptions;
ReduceFn<K, InputT, OutputT, W> reduceFn,
PipelineOptions options) {
stateInternals, this.activeWindows, timerInternals, windowingInternals, options); | 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 |
final Closure<?> closure = generateClosure(); | 0 |
import static com.google.cloud.dataflow.sdk.runners.worker.SourceTranslationUtils.splitRequestToApproximateSplitRequest;
import com.google.api.services.dataflow.model.ApproximateReportedProgress;
import com.google.api.services.dataflow.model.ApproximateSplitRequest;
ApproximateReportedProgress progress = readerPr... | 0 |
*
*
*
*
* | 0 |
private final Map<String, Dictionary<String, Object>> configs = new HashMap<>();
public Map<String, Dictionary<String, Object>> getStored()
@SuppressWarnings("rawtypes")
@SuppressWarnings("rawtypes")
@SuppressWarnings("unchecked")
public void store( String pid, @SuppressWarnings("rawtypes") Dict... | 0 |
/** Job management services for use in beam runners. */ | 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 |
@Override
@Override
@Override
@Override
@Override | 0 |
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.HashSet;
import java.util.Set;
public void testSetIOFactoryWriter() throws ConfigurationException, IOException
final PropertiesWriterTestImpl testWriter = new PropertiesWriterTestImpl(',');
return testWriter;
... | 0 |
* </p>
| 0 |
import org.apache.hc.core5.http.EndpointDetails;
public EndpointDetails getEndpointDetails() { | 0 |
import org.apache.commons.httpclient.util.HttpURLConnection;
public static final String STANDBY_MONITOR_MESSAGE = "This is not the active Monitor";
public boolean isActiveMonitor() {
// If the HighlyAvailableService is not initialized or it's not the active service, throw an exception
// to prevent processi... | 0 |
* @param data
* the data to update the {@link MessageDigest} with
* @param data
* the data to update the {@link MessageDigest} with
* @param data
* the data to update the {@link MessageDigest} with
* @param data
* the data to update the... | 0 |
import org.apache.zookeeper.cli.RemoveWatchesCommand;
new RemoveWatchesCommand().addToMap(commandMapCli); | 0 |
public <R,P> R accept(NodeVisitor<? extends R, ? super P> visitor, P data)
{
return visitor.visit(this, data);
} | 0 |
* Copyright 2002,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... | 0 |
* @version CVS $Id: EP_Order.java,v 1.3 2003/09/05 07:31:40 cziegeler Exp $ | 0 |
import org.apache.http.protocol.HttpRequestExecutor; | 0 |
/**
* @todo add maxdepth and mindepth somehow
*/ | 0 |
import static com.google.common.base.Preconditions.checkArgument;
checkArgument(maxParallelism > 0,
checkArgument(maxParallelism > 0,
checkArgument(maxParallelism > 0, | 0 |
import org.apache.accumulo.server.zookeeper.IZooReaderWriter;
IZooReaderWriter zoo = ZooReaderWriter.getInstance(); | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
log.trace("Revalidating the cache entry");
if (log.isTraceEnabled()) {
log.trace("Cache miss [host: " + target + "; uri: " + rl.getUri() + "]");
if (log.isTraceEnabled()) {
log.trace("Cache hit [host: " + target + "; uri: " + rl.getUri() + "]");
log.trace("Calling... | 0 |
import org.apache.commons.lang.StringUtils;
public static final String PRECISION_TABLE_SPLIT_POINTS =
"timeline.metrics.host.aggregate.splitpoints";
public static final String AGGREGATE_TABLE_SPLIT_POINTS =
"timeline.metrics.cluster.aggregate.splitpoints";
| 0 |
@Override
public boolean accept() {
return delegateExpression != null && delegateExpression.accept();
}
@Override
public BeamSqlPrimitive evaluate(
Row inputRow, BoundedWindow window, BeamSqlExpressionEnvironment env) {
if (delegateExpression == null) {
throw new IllegalStateException("Un... | 0 |
/**
* @param args
*/
public static void main(String[] args) throws Exception {
String tserverPath = ZooUtil.getRoot(HdfsZooInstance.getInstance()) + Constants.ZTSERVERS;
if (args.length == 1 && args[0].equals("-list")) {
ZooReaderWriter zoo = ZooReaderWriter.getInstance();
L... | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBeanMap.java,v 1.10 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.10 $
* $Date: 2003/08/31 17:28:43 $
* any, must include the following acknowledgement:
* Alte... | 0 |
package org.apache.beam.runners.core; | 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.cocoon.portal.services.aspects.RequestProcessorAspectContext;
public class PortletAdapter
final String portletEntityId = (String) getConfiguration(coplet, PORTLET_ATTRIBUTE_NAME);
PortletWindow portletWindow = new PortletWindowImpl(coplet, portletEntityId);
PortletWindo... | 0 |
collectorUri = configuration.getProperty(COLLECTOR_PROPERTY) + WS_V1_TIMELINE_METRICS;
if (collectorUri.toLowerCase().startsWith("https://")) {
String trustStorePath = configuration.getProperty(SSL_KEYSTORE_PATH_PROPERTY).trim();
String trustStoreType = configuration.getProperty(SSL_KEYSTORE_TYPE_PR... | 0 |
import com.fasterxml.jackson.annotation.JsonIgnore;
@JsonIgnore
@JsonIgnore | 0 |
.add(StringUtf8Coder.of()) | 0 |
* A tag which provides an Ant Task object on which to set Ant DataTypes or create nested types
* @return the Ant object which may be an Ant Task or nested element | 0 |
package org.apache.http.impl.client.integration;
import org.apache.http.client.HttpClient;
import org.apache.http.concurrent.Cancellable;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingClientConnectionManager;
import org.apache.http.impl.conn.SchemeRegistryFactory;
public ... | 0 |
public int read() throws IOException { // lgtm [java/non-sync-override] | 0 |
if (numChildren == 0 && !tempDir.delete()) | 0 |
package org.apache.hc.core5.http.nio; | 1 |
SetPropertiesRule rule = (SetPropertiesRule) getDigester().peek();
SetNestedPropertiesRule rule = (SetNestedPropertiesRule) getDigester().peek(); | 0 |
@Override | 0 |
import org.apache.atlas.repository.audit.InMemoryEntityAuditRepository;
/** Enable this after ATLAS-498 is committed
**/
//Map EntityAuditRepository interface to hbase based implementation
binder.bind(EntityAuditRepository.class).to(InMemoryEntityAuditRepository.class).asEagerSingleton(... | 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.apache.beam.sdk.transforms.OldDoFn;
* {@link OldDoFn.ProcessContext#pane} method of the context
* passed to a {@link OldDoFn#processElement} overridden method.
* {@link OldDoFn.Context#outputWithTimestamp} in
* any {@code OldDoFn}, and it uses the same | 0 |
final DynaBean row = rows.next();
final DynaBean row = rows.next(); | 0 |
* <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 ma... | 0 |
public static Builder forTypeName(TypeName typeName) {
return new AutoValue_Schema_FieldType.Builder().setTypeName(typeName);
}
return forTypeName(typeName).build();
/** Create an array type for the given field type. */
public static final FieldType array(FieldType elementType) {
ret... | 0 |
new HttpDataTransmitterMockup(out, -10);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException ex) {
//expected
}
try {
HttpDataTransmitterMockup transmitter = new HttpDataTransmitterMockup();
HttpDataRec... | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 1 |
if (this.contentDecoder != null && (this.session.getEventMask() & SelectionKey.OP_READ) > 0) {
handler.inputReady(this, this.contentDecoder);
if (this.contentDecoder.isCompleted()) {
// Response entity received
// Ready to receive a new... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/xmlrules/DigesterRulesSource.java,v 1.5 2003/10/09 21:09:48 rdonkin Exp $
* $Revision: 1.5 $
* $Date: 2003/10/09 21:09:48 $
* Alternately, this acknowledgement may appear in the so... | 0 |
Copyright 2001 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 applicable law or a... | 0 |
Object[] exArgs = { implementedTransformURI }; | 0 |
protected volatile AbstractPoolEntry poolEntry; | 0 |
* If cluster does not exist, then break | 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 |
@Override
public Object clone()
@Override
public String toString() | 0 |
*
* sets system properties set for service processes
*
*
/**
* | 0 |
PipelineRunner<? extends PipelineResult> runner = PipelineRunner.fromOptions(options); | 0 |
/*
* Copyright (C) 2015 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 |
/*
* 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 |
if (label == null) {
label = "";
} | 0 |
package org.apache.felix.sigil.common.config; | 0 |
@Override
@Override | 0 |
* Copyright 2005-2011 The Apache Software Foundation.
throws InvalidAlgorithmParameterException
{
throws InvalidAlgorithmParameterException
{
throw new InvalidAlgorithmParameterException(me);
private void unmarshalParams(Element curXPathElem) throws MarshalException
{
List<... | 0 |
* Visits an enumeration attribute.
* @param arg0 the attribute name
* @param arg1 the enumeration descriptor
* @param arg2 the attribute value
*/
public void visitEnum(String arg0, String arg1, String arg2) {
if (m_acc == null) {
m_acc = "... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/java/org/apache/commons/beanutils/BasicDynaBean.java,v 1.7 2002/12/18 06:20:40 craigmcc Exp $
* $Revision: 1.7 $
* $Date: 2002/12/18 06:20:40 $
import java.io.Serializable;
* <p><strong>IMPLEMENTATION NOTE</strong> ... | 0 |
* The name of the class that the server action is going to delegate to. This
* is used in cases were a server action is being told to run another
* non-server action, such as during an upgrade.
*/
String WRAPPED_CLASS_NAME = "WRAPPED_CLASS_NAME";
/** | 0 |
import static org.apache.sshd.common.sftp.SftpConstants.S_IFDIR;
import static org.apache.sshd.common.sftp.SftpConstants.S_IFLNK;
import static org.apache.sshd.common.sftp.SftpConstants.S_IFMT;
import static org.apache.sshd.common.sftp.SftpConstants.S_IFREG;
| 0 |
package org.apache.accumulo.miniclusterImpl; | 0 |
public void repaint(Shape area);
public void repaint(List areas); | 0 |
ImmutableMap.Builder<String, PTransformTranslator> translatorMap = ImmutableMap.builder();
FlinkPipelineTranslatorUtils.createOutputMap(outputs.values()); | 1 |
BasicCredentialsProvider credsProvider = new BasicCredentialsProvider(); | 0 |
public class DOMMutationEvent
extends AbstractEvent
implements org.apache.batik.dom.dom3.events.MutationEvent {
/**
* <b>DOM</b>: Initializes this event object.
*/
public void initMutationEventNS(String namespaceURIArg,
String typeArg,
... | 1 |
@VisibleForTesting
static class UnboundedJmsReader extends UnboundedReader<JmsRecord> {
this.session = this.connection.createSession(false, Session.CLIENT_ACKNOWLEDGE); | 0 |
import org.apache.avalon.framework.CascadingThrowable;
import org.xml.sax.SAXException;
* @version CVS $Id: AuthenticationProfileManager.java,v 1.1 2003/05/27 11:54:18 cziegeler Exp $
public class AuthenticationProfileManager
String portalPrefix = AuthenticationProfileManager.class.getName()+"/"+service.g... | 0 |
* @threadSafe | 0 |
/**
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
*/ | 0 |
public class FontFamilyFactory
extends AbstractValueFactory
implements ValueFactory {
values.put(CSS_CURSIVE_VALUE, CURSIVE_VALUE);
values.put(CSS_FANTASY_VALUE, FANTASY_VALUE);
values.put(CSS_MONOSPACED_VALUE, MONOSPACED_VALUE);
values.put(CSS_SERIF_VALUE, SERIF_VALUE);
values.put(CSS_SANS_S... | 0 |
import org.apache.http.nio.NHttpServerIOTarget;
import org.apache.http.nio.reactor.IOSession;
return new DefaultServerIOEventDispatch(serviceHandler, params) {
@Override
protected NHttpServerIOTarget createConnection(final IOSession session) {
return new LoggingNHttpServ... | 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 PreparedVariableResolver resolver;
//private Map objectModel;
public void setUp() throws Exception {
super.setUp();
resolver = new PreparedVariableResolver();
resolver.setManager(getManager());
//objectModel = getObjectModel();
}
resolver.setExpr... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.