Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
package org.apache.beam.sdk.coders;
import org.apache.beam.sdk.values.TypeDescriptor; | 0 |
package org.w3c.dom.svg;
public interface SVGAnimateTransformElement extends
SVGAnimationElement {
} | 1 |
private void validateLockForTasks(Optional<ILock> lock, Iterable<IScheduledTask> tasks)
throws LockException {
ImmutableSet<IJobKey> uniqueKeys = FluentIterable.from(tasks)
.transform(Tasks.SCHEDULED_TO_JOB_KEY)
.toSet();
// Validate lock against every unique job key derived from the t... | 0 |
* @version $Revision: 1.7 $ $Date: 2004/06/02 22:12:14 $
public String getCompatibilityVersion() {
return "3.1";
}
// public void testCreate() throws Exception {
// resetEmpty();
// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnmodifiableS... | 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.cocoon.xml.AttributesImpl;
/** The Cocoon core. */
protected Core core;
}
this.core = (Core)this.manager.lookup(Core.ROLE);
this.manager.release(this.core);
this.core = null;
atts.addCDATAAttribute(namespace, "date", dateTime);
atts.addC... | 0 |
* Copyright (c) 2001-2006 The Apache Software Foundation. All rights
* @author rwinston <rwinston@apache.org>
return (String[]) list.toArray(new String[list.size()]); | 0 |
log.debug("Initializing input split: " + baseSplit);
throw new IllegalArgumentException("Can not initialize from " + baseSplit.getClass()); | 0 |
* <code>ResultSetHandler</code> implementation that converts the first
*
* The RowProcessor implementation to use when converting rows
/**
*
/**
*
* @param convert The <code>RowProcessor</code> implementation
* @return An initialized JavaBean or <code>null</code> if there were no
... | 0 |
public ClientParamsStack(final HttpParams aparams, final HttpParams cparams,
final HttpParams rparams, final HttpParams oparams) {
public ClientParamsStack(final ClientParamsStack stack) {
public ClientParamsStack(final ClientParamsStack stack,
final... | 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 |
* @version CVS $Id: CellType.java,v 1.3 2003/08/20 17:29:07 joerg Exp $
public class CellType {
public static final int CELL_TYPE_FORMULA = -1;
private CellType() {
public static boolean isValid(final int val) {
switch (val) {
case CELL_TYPE_FORMULA :
static int convertCellType(... | 0 |
public final static short MAX_ACC_FLAG = ACC_STRICT;
"volatile", "transient", "native", "interface", "abstract", "strictfp" | 0 |
* Obtains a non <b>null</b> {@code FileLocationStrategy} object from the
* passed in {@code FileLocator}. If the {@code FileLocator} is not
* <b>null</b> and has a {@code FileLocationStrategy} defined, this strategy
* is returned. Otherwise, result is the default
* {@code FileLocationStrategy}.... | 0 |
dm.add(createComponent() | 0 |
/**
* Mark the sub-trigger at {@code index} as never-started. If the sub-trigger wasn't finished,
* clears any associated state.
*
* @param compositeContext the context that the parent trigger was executing in.
* @param index the index of the sub-trigger to affect.
* @param window the ... | 0 |
Random random = Utils.getRandomizerInstance(); | 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 not... | 0 |
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storage.MutableStoreProvider storeProvider) { | 0 |
import org.apache.accumulo.test.functional.FunctionalTestUtils;
import org.junit.After;
@After
public void checkForDanglingFateLocks() {
FunctionalTestUtils.assertNoDanglingFateLocks(getConnector().getInstance(), getCluster());
}
| 0 |
package org.apache.felix.obr.plugin; | 0 |
StringBuilder w = new StringBuilder(command.size() * Integer.SIZE); | 0 |
lock.notifyAll(); | 0 |
import java.util.ArrayList;
import org.apache.accumulo.server.cli.ClientOpts;
import com.beust.jcommander.Parameter;
static class Opts extends ClientOpts {
@Parameter(description="<logfile> { <logfile> ...}")
List<String> logFiles = new ArrayList<String>();
}
Opts opts = new Opts();
opts.parseArgs(... | 0 |
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.everyItem;
import static org.hamcrest.Matchers.isIn;
import org.apache.beam.sdk.testing.CombineFnTester;
import org.hamcrest.Matchers;
@Test
public void testCombineFn() {
CombineFnTester.testCombineFn(
Sample.<String... | 0 |
private final PipelineOptions pipelineOptions;
public Provider(PipelineOptions pipelineOptions) {
this.pipelineOptions = pipelineOptions;
}
pipelineOptions, loggingServer, controlServer, clientPool.getSource()); | 0 |
package org.apache.ambari.resource.statemachine;
public interface Role extends LifeCycle {
public RoleState getRoleState();
public String getRoleName();
public Service getAssociatedService();
} | 0 |
package org.apache.http.entity.mime.content;
import org.apache.http.entity.mime.MIME; | 0 |
expectNew(ZooKeeperInstance.class, new Class<?>[] {ClientConfiguration.class}, clientConf).andReturn(theInstance);
expectNew(ZooKeeperInstance.class, new Class<?>[] {ClientConfiguration.class}, clientConf).andReturn(theInstance); | 0 |
import org.apache.sshd.common.PtyMode;
import org.apache.sshd.util.BaseTest;
import org.junit.Test;
| 0 |
import org.apache.cocoon.deployer.applicationserver.MonolithicServer23;
MonolithicServer23 zipExtractor = new MonolithicServer23(basedir, logger);
zipExtractor.addRule("**legacy**.xconf", new SingleFileDeployer("WEB-INF/xconf"));
zipExtractor.addRule("**legacy**.xmap", new SingleFileDeployer("WE... | 0 |
public void testReductionType0() {
public void testEventTime() {
public void testReduceWithWindowing() {
public void testReduceWithoutWindowing() {
public void testMergingAndTriggering() {
public void testSessionWindowing() {
public void testElementTimestamp() {
public void testElementTimestampEarlyTrig... | 0 |
props.put("instance.name","empty-1");
props.put("instance.name","client");
props2.put("instance.name","provider");
props.put("instance.name","client");
props2.put("instance.name","provider");
props.put("instance.name","client");
props2.put("instance.name","provider");
p.put("instance.name","empty2");
... | 0 |
int localPort = server.getConnectors()[0].getLocalPort(); | 0 |
throws JellyException { | 0 |
import org.apache.http.HttpRequestInterceptor;
import org.apache.http.HttpResponseInterceptor;
import org.apache.http.protocol.HttpProcessor;
import org.apache.http.protocol.ImmutableHttpProcessor;
HttpProcessor serverHttpProc = new ImmutableHttpProcessor(new HttpResponseInterceptor[] {
new Resp... | 0 |
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.attribute.GroupPrincipal;
import java.nio.file.attribute.PosixFileAttributeView;
import java.nio.file.attribute.PosixFileAttributes;
import java.nio.file.attribute.PosixFilePermission... | 0 |
import javax.xml.bind.JAXBException;
import javax.xml.bind.UnmarshalException;
import org.xml.sax.SAXParseException;
String configType = ConfigHelper.fileNameToConfigType(configFile.getName());
ConfigurationXml config = null;
config = unmarshaller.unmarshal(ConfigurationXml.class, config... | 0 |
.setShardId(2)
.setName(MesosTaskFactoryImpl.EXECUTOR_NAME)
.setSource(MesosTaskFactoryImpl.getSourceName(TASK.getTask())) | 0 |
import java.io.Serializable;
public interface FieldValueSetter<ObjectT, ValueT> extends Serializable { | 0 |
else if ( dto.state == ComponentConfigurationDTO.ACTIVE )
{
dto.service = serviceReferenceToDTO(manager.getRegisteredServiceReference());
} | 0 |
public void accept( final Visitor v ) { | 0 |
import java.util.Iterator;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Tests an append operation with a system configuration while system
* properties are modified from another thread. This is related to
* CONFIGURATION-570.
*/
@Test
public void testAppendWhileConcurrentAcce... | 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... | 0 |
private EnumerationUtils() {} | 0 |
// otherwise acquire the service
try
{
service = m_componentManager.getActivator().getBundleContext().getService( serviceReference );
}
catch ( IllegalStateException ise )
{
// caused by getService() called on invalid bundle context
// ... | 0 |
import org.apache.accumulo.core.replication.ReplicationTable;
import org.apache.accumulo.server.replication.ReplicationUtil;
String expectedQueueKey = p.getName() + DistributedWorkQueueWorkAssignerHelper.KEY_SEPARATOR + target.getPeerName()
+ DistributedWorkQueueWorkAssignerHelper.KEY_SEPARATOR + target.get... | 0 |
import org.apache.aurora.scheduler.cron.CronException;
import org.apache.aurora.scheduler.cron.CronJobManager;
import org.apache.aurora.scheduler.cron.CrontabEntry;
import org.apache.aurora.scheduler.cron.SanitizedCronJob;
private static final JobConfiguration CRON_JOB = makeJob().setCronSchedule("* * * * *");
cr... | 0 |
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.HttpVersion;
import org.apache.hc.core5.http.message.BasicHeader;
import org.apache.hc.core5.http.message.BasicHttpRequest; | 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 java.util.ArrayList;
import org.osgi.resource.Capability;
import org.osgi.service.resolver.HostedCapability;
import org.osgi.service.resolver.ResolveContext;
public class ShadowList extends CandidateSelector
public static ShadowList createShadowList(CandidateSelector original) {
return new ShadowLis... | 0 |
package org.apache.beam.sdk.extensions.sql.interpreter.operator.math;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlExpression;
import org.apache.beam.sdk.extensions.sql.interpreter.operator.BeamSqlPrimitive; | 0 |
timelineMetrics = requestHelper.fetchTimelineMetrics(uriBuilder,
temporalInfo.getStartTimeMillis(),
temporalInfo.getEndTimeMillis()); | 0 |
* @version $Revision: 1.38 $ $Date: 2004/07/11 16:51:34 $
*
* <p><strong>BasicDataSource does NOT support this method.</strong></p>
// This method isn't supported by the PoolingDataSource returned by
// the createDataSource
throw new UnsupportedOperationException("Not supported by Ba... | 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. | 0 |
DefaultTrigger.of(),
DefaultTrigger.of(),
DefaultTrigger.of(), | 0 |
/**
* Returns a transform for writing to text files that adds a header string to the files
* it writes.
*
*<p> A <code>null</code> value will clear any previously configured header.</p>
*
* @param header the string to be added as file header
*/
/**
* R... | 0 |
import org.apache.accumulo.test.constraints.AlphaNumKeyConstraint; | 0 |
this._constructionElement.setAttributeNS(null, Constants._ATT_ID, Id);
return this._constructionElement.getAttributeNS(null, Constants._ATT_ID);
this._constructionElement.setAttributeNS(null, Constants._ATT_MIMETYPE,
return this._constructionElement.getAttributeNS(null, Constants._ATT_MIME... | 0 |
import java.util.Objects;
this.redirector = Objects.requireNonNull(redirector); | 0 |
@SuppressWarnings("all") public enum TableOperation implements org.apache.thrift.TEnum { | 0 |
import org.apache.ambari.server.api.services.AmbariMetaInfo;
servicesUpCheck.ambariMetaInfo = new Provider<AmbariMetaInfo>() {
@Override
public AmbariMetaInfo get() {
return Mockito.mock(AmbariMetaInfo.class);
}
};
PrerequisiteCheck check = new PrerequisiteCheck(null, null);
... | 0 |
workerPool.setKind(options.getWorkerPoolType());
disk.setDiskType(options.getWorkerDiskType()); | 0 |
* </p>
* </p>
* </p> | 0 |
/*
* Copyright 2002-2005 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 |
import org.apache.hc.client5.http.utils.ByteArrayBuilder; | 0 |
PCollection<KV<String, Iterable<Integer>>> grouped = input.apply(GroupByKey.create()); | 0 |
} catch (IOException | HttpException ex) { | 0 |
* Autogenerated by Thrift Compiler (0.12.0)
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)")
@org.apache.thrift.annotation.Nullable | 0 |
headerTableSize,
pushEnabled,
maxConcurrentStreams,
initialWindowSize > 0 ? initialWindowSize : 65535,
maxFrameSize,
maxHeaderListSize); | 0 |
DelayedProvider dp = new DelayedProvider(provider, 1000); | 0 |
package com.twitter.mesos.scheduler;
import com.twitter.mesos.gen.JobConfiguration;
/**
* Stores job configuration data.
*
* @author jsirois
*/
public interface JobStore {
/**
* Fetches all {@code JobConfiguration}s for jobs owned th the {@link JobManager} identified by
* {@code managerId}; if there are ... | 0 |
import org.apache.ambari.view.commons.exceptions.NotFoundFormattedException;
import org.apache.ambari.view.commons.exceptions.ServiceFormattedException;
import org.apache.ambari.view.commons.hdfs.HdfsService;
public class FilePreviewService extends HdfsService { | 0 |
import java.io.BufferedInputStream;
import org.apache.sshd.client.channel.ChannelShell;
import org.fusesource.jansi.AnsiConsole;
import org.slf4j.impl.SimpleLogger;
int level = 1;
} else if (args[i].equals("-v")) {
level++;
System.out.println(" -v ... | 0 |
final ResourcePatternResolver resolver = (ResourcePatternResolver) resourceLoader; | 0 |
// discard 100-continue
response = null; | 0 |
import com.google.common.collect.ContiguousSet;
import com.google.common.collect.DiscreteDomain;
import com.google.common.collect.Range;
import com.google.gson.Gson;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.apache.ambari.server.security.encryption.CredentialStoreService;
import java... | 0 |
package org.apache.commons.ognl.test.objects; | 0 |
throw new IllegalStateException("telnetd is already running on port " + port);
InetAddress addr = "".equals(ip) ? null : InetAddress.getByName(ip);
server = new ServerSocket(port, 0, addr);
thread = new Thread(this, "Gogo telnet"); | 0 |
import com.google.common.collect.Multimap;
Map<String, Collection<ServiceConfigVersionResponse>> activeServiceConfigVersions =
activeServiceConfigVersions.get("MAPREDUCE").iterator().next();
mapredResponse = activeServiceConfigVersions.get("MAPREDUCE").iterator().next();
mapredResponse = activeService... | 0 |
/**
* Set the page request information for this query.
*
* @param pageRequest the page request information
*/
public void setPageRequest(PageRequest pageRequest); | 0 |
if ( ref.getParameterIndex() != null && !parIndexSet.add(ref.getParameterIndex()) )
throw validationFailure( "Duplicate reference for argument " + ref.getParameterIndex() + " in constructor" );
if ( ref.getParameterIndex() != null ) | 0 |
import com.google.api.services.bigquery.model.TableRow;
import java.util.Arrays;
import java.util.List; | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument; | 0 |
import org.apache.ambari.logsearch.common.PropertiesHelper;
import org.apache.ambari.logsearch.util.JSONUtil;
String solrUrl = PropertiesHelper.getProperty("logsearch.solr.url");
String zkConnectString = PropertiesHelper.getProperty("logsearch.solr.zk_connect_string");
String collection = PropertiesHelper.g... | 0 |
*
*
*
/**
// force the Swing converters to be loaded
//-------------------------------------------------------------------------
| 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 |
assertEquals(9, stages.size());
assertEquals(9, tasks.size()); | 0 |
"SUPPORTS_AGGREGATION BOOLEAN, " +
"IS_WHITELISTED BOOLEAN " +
public static final String ALTER_METRICS_METADATA_TABLE =
"ALTER TABLE METRICS_METADATA ADD IF NOT EXISTS IS_WHITELISTED BOOLEAN";
"START_TIME, SUPPORTS_AGGREGATION, IS_WHITELISTED) " +
"VALUES (?, ?, ?, ?, ?, ?, ?)";
"SUP... | 0 |
SimpleTimer.getInstance().schedule(new Runnable() { | 0 |
for (String source : sources) {
if (source != null) {
this.sources.add(source);
for (Object source : sources) {
SVGConverterSource src = (SVGConverterSource) source;
getDestinationFile(src.getName()));
for (O... | 0 |
import java.io.OutputStream;
import java.util.Map;
import org.apache.javaflow.Continuable;
import org.apache.javaflow.Continuation;
import org.apache.javaflow.ContinuationContext;
* @version CVS $Id: AbstractContinuable.java 30941 2004-07-29 19:56:58Z vgritsenko $
private static CocoonContinuationContext getConte... | 0 |
/**
* A factory interface for creating {@link org.apache.beam.sdk.schemas.FieldValueSetter} objects
* corresponding to a class.
*/
* Returns a list of {@link org.apache.beam.sdk.schemas.FieldValueGetter}s for the target class. | 0 |
/** Holds the mount prefix of the current request accessible by {@link DispatcherServlet.getDispatcherMountPrefix} */
private static ThreadLocal prefix = new ThreadLocal();
// getPathInfo methods to provide reasonable values in the called servlet
prefix.set(req.getServletPath());
tr... | 0 |
if (!clusters.getClustersForHost(request.getHostname()).contains(cluster)) {
cluster.getClusterName(), null, request.getComponentName(), request.getHostname());
boolean filterBasedConfigStaleness = false;
boolean staleConfig = true;
if (request.getStaleConfig() != null) {
filterB... | 0 |
* {@code null} indicates that the default should be used.
* {@code null} for the default
* {@code null} for a direct route
* @param secure {@code true} if the route is (to be) secure,
* {@code false} otherwise
* {@code ... | 0 |
if (entity != null && !context.isMetastoreHook()) {
AtlasEntity ddlEntity = createHiveDDLEntity(entity);
if (ddlEntity != null) {
ret.addEntity(ddlEntity);
}
}
if (!s... | 0 |
*
public final class SetPropertiesLoaderHandler
implements DigesterLoaderHandler<SetProperty, Field>
{
public void handle( SetProperty annotation, Field element, FromAnnotationsRuleSet ruleSet )
{
ruleSet.getProvider( annotation.pattern(), SetPropertiesRuleProvider.class );
if ( rulePr... | 1 |
try (ClientSession session = client.connect(getCurrentTestName(), TEST_LOCALHOST, port).verify(7L, TimeUnit.SECONDS).getSession()) { | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.