Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* @cocoon.sitemap.component.documentation
* Generates a document from a session attribute.
*
* @cocoon.sitemap.component.name sessionattribute
* @cocoon.sitemap.component.label content
* @cocoon.sitemap.component.logger sitemap.generator.sessionattribute
*
* @version CVS $Id: SessionAttributeGenerator.jav... | 0 |
import org.apache.http.nio.util.ByteBufferAllocator;
import org.apache.http.nio.util.DirectByteBufferAllocator;
private ByteBufferAllocator allocator;
this.allocator = new DirectByteBufferAllocator();
}
public void setByteBufferAllocator(final ByteBufferAllocator allocator) {
if (allocator ... | 0 |
var context = new ServerContext(SiteConfiguration.auto()); | 0 |
import it.sauronsoftware.cron4j.Predictor;
* HTTP interface to provide information about jobs for a specific mesos role.
public class SchedulerzRole extends StringTemplateServlet {
private static Logger LOG = Logger.getLogger(SchedulerzRole.class.getName());
private static final String ROLE_PARAM = "role";
publ... | 0 |
* http://www.apache.org/licenses/LICENSE-2.0 | 0 |
public List<VA> addInput(K key, List<VA> accumulator, VA input) {
return mergeToSingleton(key, accumulator);
} else {
return accumulator;
return mergeToSingleton(key, Iterables.concat(accumulators));
private List<VA> mergeToSingleton(K key, Iterable<VA> accumulators) {
List<VA>... | 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 |
final public static String CONFIG_NODE = "/zookeeper/config";
public final int reconfig = 16;
"getChildren", "getChildren2", "getMaxChildren", "setMaxChildren", "ping", "reconfig", "getConfig" }; | 0 |
import org.apache.hc.core5.http.HttpEntity;
@Override
public void setEntity(final HttpEntity entity) {
throw new IllegalStateException(METHOD_NAME + " requests may not include an entity.");
}
| 0 |
import org.osgi.service.cm.ConfigurationAdmin;
// property is private if explicitly marked or a well known
// service property such as service.pid
final boolean isPrivate = getBoolean(property,
Constants.PROPERTY_PRIVATE, false)
|| name.equals(org.osgi... | 0 |
@Override | 0 |
Matchers.containsInAnyOrder("@type", "type", "schema", "encoding_id"));
public void testPojoEncodingId() throws Exception {
AvroCoder<Pojo> coder = AvroCoder.of(Pojo.class);
CoderProperties.coderHasEncodingId(coder, Pojo.class.getName());
}
@Test | 0 |
import static org.junit.Assert.fail;
Key key = new Key("~wal+host:43861[14a7df0e6420003]", "log", "hdfs://localhost:50514/accumulo/wal/host:43861/70c27ab3-6662-40ab-80fb-01c1f1a59df3");
try {
Key bogus = new Key("~wal/host:43861[14a7df0e6420003]", "log", "hdfs://localhost:50514/accumulo/wal/host:43861/70c... | 0 |
memberDAO, privilegeDAO, resourceDAO, resourceTypeDAO, securityHelper, handlerList, null, null)); | 0 |
import static org.apache.accumulo.examples.simple.client.RandomBatchWriter.abs;
import java.util.concurrent.TimeUnit;
BatchScanner batchReader = connector.createBatchScanner(opts.getTableName(), opts.auths, bsOpts.scanThreads); | 0 |
* method always returns {@code null}.</p>
* Returns {@code true}.
* @return {@code true}. | 0 |
import java.util.SortedSet;
import java.util.TreeSet;
import org.apache.accumulo.core.client.Connector;
import org.junit.Test;
public class BulkFileIT extends MacTest {
@Test(timeout=30*1000)
public void testBulkFile() throws Exception {
Connector c = getConnector();
c.tableOperations().create("bulkFile");
... | 0 |
char first = op.charAt(0); | 0 |
* @version CVS $Id: UniqueFieldJXPathBinding.java,v 1.2 2004/03/11 02:56:32 joerg Exp $
* The id of the CocoonForm widget
* context to the form widget specified in this object.
* Actively performs the binding from the form to the ObjectModel | 0 |
.setStartCommand(getValue(configMap, "start_command", String.class)) | 0 |
import org.apache.beam.sdk.util.common.ReflectHelpers; | 0 |
package org.apache.felix.karaf.gshell.admin.internal.commands; | 0 |
package org.ognl.test.objects;
import java.io.Serializable;
/**
* Generic test object.
*/
public interface Cracker<T extends Serializable>{
T getParam();
void setParam(T param);
} | 0 |
public static final Predicate INSTANCE = new FalsePredicate<>(); | 1 |
clcm.releaseConnection(conn, -1, null); | 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 |
package org.apache.accumulo.monitor.rest.tservers; | 0 |
private Option verboseOpt, forceOpt, sizeOpt;
String tableName = OptUtil.getTableOpt(cl, shellState);
Text startRow = OptUtil.getStartRow(cl);
Text endRow = OptUtil.getEndRow(cl);
o.addOption(OptUtil.startRowOpt());
o.addOption(OptUtil.endRowOpt()); | 0 |
templateObjects.put("curblock", developmentBlocks[developmentBlocks.length - 1]); | 0 |
public TriggerResult onElement(OnElementContext c)
Instant delayUntil = c.lookup(DELAYED_UNTIL_TAG, c.window());
c.setTimer(c.window(), delayUntil, TimeDomain.PROCESSING_TIME);
c.store(DELAYED_UNTIL_TAG, c.window(), delayUntil);
public MergeResult onMerge(OnMergeContext c) throws Exception {
if ... | 0 |
import com.google.api.services.bigquery.model.TableFieldSchema;
import com.google.api.services.bigquery.model.TableReference;
import com.google.api.services.bigquery.model.TableRow;
import com.google.api.services.bigquery.model.TableSchema;
import com.google.common.base.MoreObjects;
import com.google.datastore.v1.Entit... | 0 |
final ClientExecChain t = createCachingExecChain(backend, cache, cacheConfig);
protected ClientExecChain createCachingExecChain(final ClientExecChain backend,
final BasicHttpCache cache, final CacheConfig config) {
return new CachingExec(backend, cache, config);
}
| 0 |
ListBuilder builder = new ListBuilder(this); | 0 |
* @version $Id$ | 0 |
import org.apache.ambari.server.topology.tasks.ConfigureClusterTaskFactory;
@Mock(type = MockType.NICE)
private ConfigureClusterTaskFactory configureClusterTaskFactory; | 0 |
* @version $Id$ | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/test/org/apache/commons/jxpath/ri/StressTest.java,v 1.2 2003/10/09 21:31:42 rdonkin Exp $
* $Revision: 1.2 $
* $Date: 2003/10/09 21:31:42 $
* any, must include the following acknowledgement:
* Alternately, this ... | 0 |
(OrFinallyStateMachine) TriggerStateMachines.stateMachineForTrigger(trigger);
.setRepeat(RunnerApi.Trigger.Repeat.newBuilder().setSubtrigger(subtrigger1))
.build();
(RepeatedlyStateMachine) TriggerStateMachines.stateMachineForTrigger(trigger); | 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 |
import org.apache.commons.lang3.StringUtils;
* Tests whether the node matcher is used when querying keys.
*/
@Test
public void testQueryKeyWithAlternativeMatcher()
{
setUpAlternativeMatcher();
checkKey("tables_._table_.name_", "name", 2);
}
/**
* Tests whether the nod... | 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 by applic... | 0 |
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.UUID; | 0 |
import org.apache.cocoon.portal.coplet.CopletInstance;
CopletInstance cid = this.getCopletInstanceData(); | 0 |
public String usage() {
return getName() + " <fileName>";
}
@Override | 0 |
for (int n = source.read(buf); n > 0; n = source.read(buf)) {
| 0 |
* @version $Revision: 1.5 $ $Date: 2004/05/16 11:16:01 $
* Evaluates the predicate returning the opposite to the stored predicate.
*
* @param object the input object
* @return true if predicate returns false
* | 0 |
import org.apache.beam.dsls.sql.utils.CalciteUtils;
orderedStream.setCoder(new BeamSqlRowCoder(CalciteUtils.toBeamRecordType(getRowType())));
SqlTypeName fieldType = CalciteUtils.getFieldType(row1.getDataType(), fieldIndex); | 0 |
private long memoryDiff; | 0 |
import org.apache.beam.fn.harness.data.PCollectionConsumerRegistry;
PCollectionConsumerRegistry pCollectionConsumerRegistry,
FnDataReceiver<WindowedValue<OutputT>> consumer =
(FnDataReceiver<WindowedValue<OutputT>>)
(FnDataReceiver)
pCollectionConsumerRegistry.get... | 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 |
public void goesThroughAvailableRecords() throws IOException, TransientKinesisException {
when(firstResult.getRecords()).thenReturn(asList(a, b, c));
when(secondResult.getRecords()).thenReturn(singletonList(d));
when(thirdResult.getRecords()).thenReturn(Collections.<KinesisRecord>emptyList());
assert... | 0 |
import org.apache.beam.sdk.transforms.windowing.GlobalWindow;
new LinkedList<>(Arrays.asList(7, 6, 5)));
@Test
public void testCoderIsSerializableWithWellKnownCoderType() throws Exception {
CoderProperties.coderSerializable(ListCoder.of(GlobalWindow.Coder.INSTANCE));
} | 0 |
import org.apache.beam.runners.core.StateMerging; | 0 |
String choose(VolumeChooserEnvironment env, String[] options); | 0 |
public T initializeDataIfNeeded(Long hostId, boolean regenerateHash) throws AmbariException { | 0 |
@Override public MetricName getName() {
return name;
}
@Override public MetricName getName() {
return name;
}
@Override public MetricName getName() {
return name;
} | 0 |
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
Credential,
KerberosDescriptor;
public static final Type KerberosDescriptor = InternalType.KerberosDescriptor.getType(); | 0 |
* @throws NullPointerException if the predicate is null
throw new NullPointerException("Predicate must not be null"); | 0 |
* @deprecated since 1.7.0 use {@link #getTablet()}
*/
@Deprecated
public abstract org.apache.accumulo.core.data.KeyExtent getExtent();
/**
* @return tablet thats is compacting | 0 |
import org.apache.accumulo.core.clientImpl.Table;
import org.apache.accumulo.core.dataImpl.KeyExtent; | 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 applic... | 0 |
import org.apache.accumulo.core.clientImpl.Table; | 0 |
* @version $Id$ | 0 |
import org.apache.accumulo.core.security.tokens.PasswordToken;
import org.apache.accumulo.core.security.tokens.SecurityToken; | 0 |
// Ignored | 0 |
private static final AtomicLong SESSION_ID_GENERATOR = new AtomicLong(100L);
private final long id = SESSION_ID_GENERATOR.incrementAndGet();
@Override
public int available() {
return buffer.remaining();
}
@Override
public void getRawB... | 1 |
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
* The locations of the directories where the different property files are
protected List locations = Collections.singletonList(Constants.DEFAULT_CLASSPATH_SPRING_CONFIGURATION_LOCATION);
* Set the directories to search in.
... | 0 |
public void testHighLoad() throws Exception {
final StringBuilder response = new StringBuilder(1000000);
for (int i = 0; i < 100000; i++) {
response.append("0123456789");
}
test(response.toString(), 1, 100);
}
@Test | 0 |
* Removal of all codes “0” except at the beginning. This means that two or more identical consecutive digits can occur
* if they occur after removing the "0" digits.
lastCode = code; | 1 |
throw new
throw new
throw new
throw new
8 // 12 = double
v.add(new String(bvalues, prevIndex,
String[] strings = new String[count];
* Returns true if a tag appears in the directory.
private int r... | 1 |
* href="https://commons.apache.org/configuration/team-list.html">Commons | 0 |
public static void init(FileSystem fs, ServerConfiguration config, String application) throws UnknownHostException {
for (Entry<String,String> entry : config.getConfiguration()) | 1 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import org.apache.commons.codec.CharEncoding;
import org.junit.Test;
public class QuotedPrintableCodecTest {
@Test
@Test
@Test
@Test
@Test
@Test
@Test
@Test
@T... | 1 |
String country = (size >= 2) ? elements.get(1) : "";
String variant = (size >= 3) ? elements.get(2) : "";
Constructor<?> ctor = Class.forName(INTERNET_ADDRESS_CLASSNAME)
.getConstructor(new Class[] {String.class});
return split(s, d... | 0 |
Document doc = XMLUtils.newDocument(false); | 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 by applic... | 0 |
import org.apache.hadoop.metadata.web.util.Servlets;
.accept(Servlets.JSON_MEDIA_TYPE)
.type(Servlets.JSON_MEDIA_TYPE)
.accept(Servlets.JSON_MEDIA_TYPE)
.type(Servlets.JSON_MEDIA_TYPE)
.accept(Servlets.JSON_MEDIA_TYPE)
.type... | 0 |
public org.apache.beam.sdk.extensions.euphoria.core.client.triggers.Trigger<UnsupportedWindow>
getTrigger() { | 0 |
import java.util.ArrayList;
import java.util.Collections;
import org.apache.beam.model.fnexecution.v1.BeamFnApi.MonitoringInfo;
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
private MetricsContainerImpl unboundContainer = new MetricsContainerImpl(null);
/* Returns the container tha... | 0 |
import com.twitter.aurora.gen.MesosAdmin;
import com.twitter.aurora.scheduler.thrift.aop.AopModule;
install(new AopModule());
bind(MesosAdmin.Iface.class).to(SchedulerThriftRouter.class); | 0 |
import org.apache.beam.runners.flink.FlinkRunner;
options.setRunner(FlinkRunner.class); | 0 |
*
*
* <!-- empty lines above to avoid 'svn diff' context problems -->
* @version $Revision$ $Date$
* Creates a new header from a buffer.
* The name of the header will be parsed immediately,
* the value only if it is accessed.
* @param buffer the buffer containing the header to represent | 0 |
animationEventNames11.addAll(Arrays.asList(eventNamesSVG11));
animationEventNames12.addAll(Arrays.asList(eventNamesSVG12)); | 0 |
import org.apache.beam.vendor.grpc.v1.io.grpc.stub.ServerCallStreamObserver;
// the call may be cancelled because the sdk harness hung up
// (we terminate the environment before terminating the service endpoints)
if (inbound.outboundObserver instanceof ServerCallStreamObserver) {
if ((... | 0 |
success = true; | 0 |
import org.apache.sshd.common.util.buffer.Buffer; | 0 |
public Coder<T> getOutputCoder() {
return underlying.getOutputCoder(); | 0 |
* A file system provider for compressed files. Provides read-only file systems.
public abstract class CompressedFileFileProvider extends AbstractLayeredFileProvider {
public CompressedFileFileProvider() {
* public FileName parseUri(final String uri) throws FileSystemException { return ZipFileName.parseUri(uri... | 1 |
*
log.warn("The 'b' in " + str + " is being considered as bytes. " + "Setting memory by bits is not supported");
throw new IllegalArgumentException("The value '" + str + "' is not a valid memory setting. A valid value would a number "
+ "possibily followed by an optional 'G', 'M', 'K',... | 0 |
import java.util.ArrayList;
import java.util.List;
import java.util.TreeSet;
public static final int LOTS = 100000;
TreeSet<Integer> startRows = new TreeSet<Integer>();
startRows.add(0);
while (startRows.size() < parts)
startRows.add(rand.nextInt(LOTS));
List<String> printRows = new Ar... | 0 |
import java.net.InetAddress;
import java.net.UnknownHostException;
public LightModel getModel(){
return model;
}
String port = context.getProperty("org.osgi.service.http.port");
InetAddress inet;
try {
inet = InetAddress.getLocalHost();
String hostname = inet.getHostName();
//Str... | 0 |
/*
* Copyright (c) OSGi Alliance (2001, 2016). All Rights Reserved.
*
* 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 req... | 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 |
public abstract class AbstractFileChangeEvent extends FileChangeEvent {
public AbstractFileChangeEvent(final FileObject file) { | 1 |
private static final long serialVersionUID = -2819379966444533294L; | 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 |
: LATEST_ACTIVITY.sortedCopy(Storage.Util.consistentFetchTasks(storage, INACTIVE_QUERY))) { | 0 |
public class LCMP extends Instruction
implements TypedInstruction, StackProducer, StackConsumer
{
/** @return Type.LONG
*/
public Type getType(ConstantPoolGen cp) {
return Type.LONG;
}
v.visitTypedInstruction(this);
v.visitStackProducer(this);
v.visitStackConsumer(this); | 0 |
import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
df = new SAXSVGDocumentFactory(getXMLParserClassName()); | 0 |
spanner.close(); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.