Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import org.apache.beam.sdk.transforms.windowing.TimestampCombiner;
TimestampCombiner timestampCombiner = input.getWindowingStrategy().getTimestampCombiner();
.map(new KeyedByTimestamp<K, V>(timestampCombiner), "keyed_by_timestamp")
.fold(new Merge<>(windowFn, timestampCombiner), "merge")
private... | 0 |
case 2:
break;
case 3:
buf[pos++] = (byte) ((x >> 16) & MASK_8BITS);
buf[pos++] = (byte) ((x >> 8) & MASK_8BITS);
break;
// WE'RE DONE!!!!
eof = true;
... | 0 |
public <R, P> R accept( NodeVisitor<? extends R, ? super P> visitor, P data )
throws OgnlException | 0 |
/**
* Constructs a new provider.
*/ | 0 |
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import static com.fasterxml.jackson.annotation.JsonAutoDete... | 0 |
} catch (IllegalArgumentException e) {
} catch (IllegalArgumentException e) { | 0 |
// TODO: implements CacheableProcessingComponent { | 0 |
public void accept( final Visitor v ) { | 0 |
import org.apache.commons.jelly.JellyTagException;
public void doTag(XMLOutput xmlOutput) throws JellyTagException {
throw new JellyTagException( "<jellyResourceHandler> tag must be enclosed inside a <httpContext> tag" ); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java,v 1.45 2003/01/24 10:04:33 morgand Exp $
* $Revision: 1.45 $
* $Date: 2003/01/24 10:04:33 $
* $Id: XMLParser.java,v 1.45 2003/01/24 10:04:33 morgand Exp $
import org.a... | 0 |
if (o instanceof Key)
return this.equals((Key) o, PartialKey.ROW_COLFAM_COLQUAL_COLVIS_TIME_DEL);
if (len == 0)
return EMPTY_BYTES;
if (!copyData && ba.length == len && off == 0)
return ba;
if (result != 0 || part.equals(PartialKey.ROW))
return result;
if (result != 0 || part... | 1 |
* @version CVS $Id: SlideRepositoryImpl.java,v 1.7 2004/04/13 15:16:37 unico Exp $ | 0 |
AccumuloClient client = getAccumuloClient();
ClientInfo info = client.info();
String path = ZooUtil.getRoot(client.getInstanceID()) + Constants.ZGC_LOCK; | 0 |
import static com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly;
private String tableId;
public Writer(ClientContext context, String tableId) {
checkArgument(tableId != null, "tableId is null");
this.tableId = tableId;
TabletLocation tabLoc = TabletLocator.getLocator(context, tab... | 0 |
import org.apache.sshd.util.test.NoIoTestCase;
import org.junit.experimental.categories.Category;
@Category({ NoIoTestCase.class })
Path idFile = dir.resolve(getCurrentTestName() + ".pem");
KeyPair identity = Utils.getFirstKeyPair(createTestHostKeyProvider());
AtomicInteger reloadCount = new Ato... | 0 |
* Copyright 2001-2006 The Apache Software Foundation
* @throws ValidatorException If an error occurs during validation. | 0 |
/**
* @see org.apache.cocoon.sitemap.SitemapExecutor#enteringPipeline(org.apache.cocoon.sitemap.ExecutionContext, java.util.Map, org.apache.cocoon.sitemap.SitemapExecutor.PipelineComponentDescription)
*/
public PipelineComponentDescription enteringPipeline(ExecutionContext context, Map objectModel, Pi... | 0 |
import org.apache.hc.client5.http.sync.methods.HttpExecutionAware;
import org.apache.hc.client5.http.impl.sync.RoutedHttpRequest; | 0 |
@Override | 0 |
package org.apache.beam.sdk.extensions.euphoria.core.client.operator.base;
protected final Dataset<OutputT> createOutput(
final Dataset<InputT> input, Set<OutputHint> outputHints) { | 0 |
/** The default profile name. */
protected String defaultProfileName;
// FIXME - We should use a better default than 'portal'
this.defaultProfileName = this.portalService.getConfiguration("default-profile-name", "portal");
* @see org.apache.cocoon.portal.services.UserService#getDefaultProfi... | 0 |
import org.apache.hadoop.metadata.MetadataException;
protected void store(StructInstance instance, int colPos, int pos) throws RepositoryException {
StructInstance s = instance.structs[colPos];
for(Map.Entry<AttributeInfo, IAttributeStore> e : attrStores.entrySet()) {
IAttributeStore att... | 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 |
Element group = domFactory.createElement(SVG_G_TAG);
Element testGroup = domFactory.createElement(SVG_G_TAG); | 0 |
import cz.seznam.euphoria.core.client.dataset.windowing.Batch;
keyExtractor, valueExtractor, Batch.get(), this) | 0 |
import static org.hamcrest.core.Is.isA;
import org.apache.beam.runners.spark.translation.streaming.utils.SparkTestPipelineOptions;
import org.apache.beam.sdk.transforms.DoFn;
import org.junit.rules.ExpectedException;
private static class UserException extends RuntimeException {
public final transient SparkTestPipel... | 0 |
timerInternals.cleanupPendingTimer(timer.getNamespace());
timerInternals.cleanupPendingTimer(timer.getNamespace());
final MapState<String, TimerData> pendingTimersById; | 0 |
((SecurityManager) sm).checkPermission(
new AdminPermission(bundle, AdminPermission.EXTENSIONLIFECYCLE));
if (!((BundleProtectionDomain) bundle.getProtectionDomain()).impliesDirect(new AllPermission()))
{
throw new SecurityException("Extension Bundles ... | 0 |
import org.apache.ambari.server.controller.internal.AlertNoticeResourceProvider;
AlertNoticeResourceProvider.init(injector); | 0 |
* Copyright (c) 2002, 2003 The Apache Software Foundation. All rights
* The separator character used in file paths.
* The separator used in file paths. | 0 |
private Set<ServiceResponse> getServices(ServiceRequest 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 may not... | 1 |
public Password password = new Password("secret"); | 0 |
import org.apache.felix.sigil.common.model.IModelElement;
import org.apache.felix.sigil.common.repository.IResolution;
import org.apache.felix.sigil.common.repository.ResolutionException; | 0 |
import com.google.cloud.dataflow.sdk.util.common.worker.ElementCounter;
receiver = new OutputReceiver();
ElementCounter outputCounter = new DataflowOutputCounter(outputName, addCounterMutator);
receiver.addOutputCounter(outputCounter); | 0 |
* @version $Revision$ $Date$ | 0 |
RootedFileSystem rootedFs = null;
String scheme = uri.getScheme();
String expected = getScheme();
public AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options,
ExecutorService executor, Fi... | 1 |
import com.twitter.mesos.gen.storage.migration.StorageMigrationPath;
import com.twitter.mesos.gen.storage.migration.StorageMigrationResult;
* {@link com.twitter.mesos.gen.storage.migration.StorageMigrationStatus#NO_MIGRATION_NEEDED}. | 0 |
* <p>
* The lookup order is:
* Windows Notes:<br> | 0 |
* @version CVS $Id: XPathSourceInspector.java,v 1.2 2003/03/16 17:49:07 vgritsenko Exp $ | 0 |
new AutoValue_XmlIO_MappingConfiguration.Builder<T>().setCharset(
StandardCharsets.UTF_8.name()).build())
new AutoValue_XmlIO_MappingConfiguration.Builder<T>().setCharset(
StandardCharsets.UTF_8.name()).build())
return new AutoValue_XmlIO_Write.Builder<T>().se... | 0 |
// noop.
/**
* Returns {@code 0}.
*/
/**
* Noop.
*/
// noop.
/**
* Noop.
*/
@SuppressWarnings("sync-override")
// noop.
/**
* Returns {@code true}.
*/
/**
* Returns {@code -1}.
*/
/**
* Returns {@code -1}.
*/... | 0 |
try (SeekableByteChannel channel = accessor.openFile(
session, this, null, file, null, Collections.emptySet())) {
accessor.closeFile(session, this, null, file, null, channel, Collections.emptySet());
try (SeekableByteChannel channel = accessor.openFile(
sessi... | 0 |
public void copy(Iterable<String> srcFilenames, Iterable<String> destFilenames)
throws IOException { | 0 |
private KV<String, org.apache.beam.runners.core.construction.Timer<byte[]>> timerBytes(
key, | 0 |
final String name = param.getName();
final boolean noQuotes = ("nc".equals(name) || "qop".equals(name)
|| "algorithm".equals(name));
final StringBuilder builder = new StringBuilder(); | 0 |
log.error("Unable to delete {}", outputFile);
log.error(e.getMessage(), e);
log.error(e.getMessage(), e);
log.error("Unable to delete {}", outputFile);
log.warn(e.getMessage(), e);
log.warn(exception.getMessage(), exception);
log.error(e.getMessage()... | 0 |
import org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition;
executeDDLFixes();
private void executeDDLFixes() throws AmbariException, SQLException {
//Fix latest_text column type to match for all DBMS
Configuration.DatabaseType databaseType = configuration.getDatabaseType();
if (Config... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/TagLibrary.java,v 1.20 2003/01/24 05:26:13 morgand Exp $
* $Revision: 1.20 $
* $Date: 2003/01/24 05:26:13 $
* $Id: TagLibrary.java,v 1.20 2003/01/24 05:26:13 morgand Exp $
* @version $Rev... | 0 |
return getQuotaInfo(role, Optional.absent(), storeProvider);
getQuotaInfo(cronConfig.getKey().getRole(), Optional.absent(), storeProvider);
: ImmutableSet.of()); | 0 |
import com.twitter.aurora.scheduler.storage.entities.IConstraint;
import com.twitter.aurora.scheduler.storage.entities.IScheduledTask;
import com.twitter.aurora.scheduler.storage.entities.ITaskConfig;
private interface FilterRule extends Function<ITaskConfig, Iterable<Veto>> { }
@Override public final Iterable<Ve... | 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... | 0 |
verify("mntr", "num_alive_connections");
verify("stat", "Connections");
verify("srvr", "Connections");
Assert.assertTrue(Pattern.matches("^Connections: \\d+$", line));
line = in.readLine(); | 0 |
import org.apache.ambari.logsearch.common.Marker;
@Marker
public interface TopFieldAuditLogRequest extends FieldAuditLogRequest, TopParamDefinition, UserParamDefinition { | 0 |
package org.w3c.dom.svg;
import org.w3c.dom.DOMException;
public interface SVGRect {
public float getX( );
public void setX( float x )
throws DOMException;
public float getY( );
public void setY( float y )
throws DOMException;
public float getWidth( )... | 1 |
LOG.debug("{} cookie has been found and is being processed", cookieName); | 0 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Joiner; | 0 |
package org.apache.accumulo.core.clientImpl.mapreduce.lib; | 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.sshd.common.util.AbstractLoggingBean;
public abstract class AbstractUserAuth extends AbstractLoggingBean implements UserAuth { | 1 |
try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
try (CloseableHttpResponse response = httpclient.execute(httpget, localContext)) { | 0 |
SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 128);
SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 128);
SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 128);
SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 128);
Sess... | 0 |
/**
* Copyright 2013 Apache Software Foundation | 0 |
LOG.debug("Looking for duplicate service " + service.getName()); | 0 |
* @version $Revision$ $Date$ | 0 |
import org.apache.felix.sigil.ui.eclipse.ui.wizard.project.SigilProjectWizard; | 0 |
import org.apache.hadoop.conf.Configuration;
public void configure(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {
super.configure(cfg, hadoopCoreSite); | 0 |
assertEquals("Set value (bar:2)", bean.getBar(), "beta");
Method method = null;
try {
method = MethodUtils.getAccessibleMethod(PublicSubBean.class, "setFoo", String.class);
} catch (Throwable t) {
fail("getAccessibleMethod() setFoo threw " + t);
}
... | 0 |
private HandleErrorsNode error;
void setErrorHandler(ProcessingNode node) {
this.error = (HandleErrorsNode) node;
return this.error == null;
return this.error != null && this.error.isInternal();
return this.error != null && this.error.isExternal();
} else if (error != nul... | 0 |
public boolean isEvalChain( OgnlContext context )
throws OgnlException
{
if ( children == null )
{
return false;
}
for ( Node child : children )
{
if ( child instanceof SimpleNode )
{
if ( ( (SimpleNode) child ).... | 0 |
import net.jcip.annotations.Immutable;
@Immutable | 0 |
HttpClientContext clientContext = HttpClientContext.adapt(context);
CookieSpec cookieSpec = clientContext.getCookieSpec();
CookieStore cookieStore = clientContext.getCookieStore();
CookieOrigin cookieOrigin = clientContext.getCookieOrigin(); | 0 |
* Get path to accumulo-site.xml
*/
String getSitePath();
/** | 0 |
Boolean authed = null;
authed = auth.auth(this, username, buffer);
if (authed == null) {
log.info(authed ? "Authentication succeeded" : "Authentication failed");
authed = false;
if (authed != null && authed) {
... | 0 |
import org.apache.accumulo.server.fs.FileRef;
import org.apache.accumulo.server.fs.VolumeManager;
private static final Map<FileRef,DataFileValue> EMPTY_MAP = Collections.emptyMap();
private static Map<FileRef,DataFileValue> toFileMap(FileRef mergeFile, DataFileValue dfv) {
MinorCompactor(Configuration conf, Volum... | 1 |
* The put method will only succeed if the key specified is the same as the | 0 |
public static List<Article> getArticleInfo(NNTPClient client, int lowArticleNumber, int highArticleNumber) | 0 |
@Override
public final String toString() { | 0 |
private static final long serialVersionUID = 1L;
| 0 |
/*
* Copyright 2001-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 applicable la... | 0 |
Method allowClusterOperatorToManageCredentials = UpgradeCatalog240.class.getDeclaredMethod("allowClusterOperatorToManageCredentials");
.addMockedMethod(allowClusterOperatorToManageCredentials)
upgradeCatalog240.allowClusterOperatorToManageCredentials(); | 0 |
import static org.apache.atlas.TestUtilsV2.NAME; | 1 |
public interface Options extends LeaderBoard.Options { | 0 |
import org.apache.http.conn.HttpRoute;
/**
* The scheme registry.
* Instantiated in {@link #setup setup}.
*/
private static SchemeRegistry supportedSchemes;
final HttpRoute route = new HttpRoute
(target, null, proxy,
supportedSchemes.getScheme(target).isLayered()... | 0 |
import org.apache.beam.sdk.coders.ByteStringCoder;
import org.apache.beam.sdk.coders.IterableCoder;
import org.apache.beam.sdk.coders.KvCoder;
import org.apache.beam.sdk.coders.protobuf.ProtoCoder;
p.apply(
Create.empty(
KvCoder.of(ByteStringCoder.of(), IterableCoder.of(ProtoCoder.of... | 0 |
* @version $Id: AbstractConfiguration.java,v 1.16 2004/06/24 14:01:03 ebourg Exp $
/** how big the initial arraylist for splitting up name value pairs */
private static final int INITIAL_LIST_SIZE = 2;
* {@inheritDoc}
return interpolateHelper(base, null);
* {@inheritDoc}
* {@inheritDoc... | 0 |
import org.apache.ambari.server.controller.internal.ViewInstanceResourceProvider;
@ApiModelProperty(name = ViewInstanceResourceProvider.VIEW_INSTANCE_INFO)
@ApiModelProperty(name = ViewInstanceResourceProvider.VIEW_NAME_PROPERTY_ID, hidden = true)
@ApiModelProperty(name = ViewInstanceResourceProvider.VERSION_... | 0 |
* <p>For the Fn API, the {@link PTransformOverrideFactory} is only required to perform per key
* grouping and expansion.
* Returns a {@link PTransformOverrideFactory} that replaces a multi-output {@link ParDo} with a
* composite transform specialized for the {@link DataflowRunner}.
StatefulSingleOutputPar... | 1 |
* @version CVS $Id: ValueJXPathBinding.java,v 1.11 2004/02/03 12:22:08 joerg Exp $
public void doLoad(Widget frmModel, JXPathContext jxpc) throws BindingException {
if (widget == null) {
throw new BindingException("The widget with the ID [" + this.fieldId
+ "] referenced in ... | 0 |
assertEquals("0+", resolveComponent(info, parentInfo).getModuleInfo().getCardinality()); | 0 |
org.osgi.framework.hooks.service.EventListenerHook.class, | 0 |
for (final String scheme : urlSchemes)
for (final String scheme : urlSchemes)
for (Object provider : providers.values())
for (FileProvider fileProvider : providers.values())
final AbstractFileProvider provider = (AbstractFileProvider) fileProvider; | 0 |
* Copyright (c) 2002 The Apache Software Foundation. All rights | 0 |
import static org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly; | 0 |
log.warn("Expected Digest: " + Base64.encode(elemDig));
log.warn("Actual Digest: " + Base64.encode(calcDig)); | 0 |
* Bridge class for the <flowRoot> element.
* Constructs a new bridge for the <flowRoot> element. | 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.2 2002/04/24 04:05:40 dmitri Exp $
* $Revision: 1.2 $
* $Date: 2002/04/24 04:05:40 $
import java.util.ArrayList;
import java.util.List;
import o... | 0 |
* @version $Id: Action.java,v 1.4 2004/04/09 16:43:21 mpo Exp $
private final ActionDefinition definition;
protected WidgetDefinition getDefinition() {
return this.definition;
| 0 |
UserEntity userEntity = userDAO.findUserByName(userName); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.