Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
ServiceComponentHostEventType startEventType,
ServiceComponentHostEvent startEvent = createEvent(impl, ++timestamp,
startEventType);
impl.handleEvent(startEvent);
startEventType);
ServiceComponentHostOpFailedEvent failEvent2 = new
ServiceComponentHostOpFailedEvent(impl.getServi... | 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 ConfigurationLogger(final String loggerName)
public ConfigurationLogger(final Class<?> logCls)
ConfigurationLogger(final Log wrapped)
public void debug(final String msg)
public void info(final String msg)
public void warn(final String msg)
public void warn(final String msg, final Thro... | 0 |
assertEquals("CN=localhost, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=CH",
| 0 |
if ( "size".equals( name ) )
result = set.size();
}
else if ( "iterator".equals( name ) )
{
result = set.iterator();
}
else if ( "isEmpty".equals( name ) )
{
result = set.isEmpty() ? Boole... | 0 |
package org.apache.felix.sigil.common.model.osgi;
import org.apache.felix.sigil.common.model.IModelElement; | 0 |
package org.apache.felix.karaf.gshell.core.vfs.mvn; | 0 |
public void testTopologicalOrderWithFeedbackArcs() throws Exception {
MutableNetwork<String, String> network = createNetwork();
network.addEdge("F", "B", "FB");
Iterable<String> sortedNodes = Networks.topologicalOrder(network);
Map<String, Integer> nodeToPosition = new HashMap<>(Iterables.size(sortedN... | 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 |
import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.Iterables;
// Union a set of FieldAccessDescriptors. This function currently only supports descriptors with
* Return the field names accessed. Should not be called until after {@link #resolve} is called.
*/
public Set<String> fieldNamesAccess... | 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 |
/*
* $Id$
* 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... | 0 |
Files.asCharSink(jaasConfFile, StandardCharsets.UTF_8).write(jaasConf); | 0 |
public static PairFunction<
Tuple2<TupleTag<?>, WindowedValue<?>>,
TupleTag<?>,
ValueAndCoderLazySerializable<WindowedValue<?>>>
tupleTag, ValueAndCoderLazySerializable.of(windowedValue, coderMap.get(tupleTag)));
public static PairFunction<
Tuple2<TupleTag<?>, Value... | 0 |
KeyedWorkItem<byte[], KV<InputT, RestrictionT>>, OutputT> {
private final DoFnRunner<KeyedWorkItem<byte[], KV<InputT, RestrictionT>>, OutputT> underlying;
DoFnRunner<KeyedWorkItem<byte[], KV<InputT, RestrictionT>>, OutputT> underlying,
public DoFn<KeyedWorkItem<byte[], KV<InputT, RestrictionT>>, Outpu... | 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 |
* 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 |
requestInfoProperties.put(RequestOperationLevel.OPERATION_HOST_NAME, | 0 |
import org.apache.accumulo.server.ServerContext;
AccumuloConfiguration config = ServerContext.getInstance().getServerConfFactory() | 0 |
import com.google.cloud.dataflow.sdk.util.common.worker.PartialGroupByKeyOperation.StructuralByteArray;
import java.io.ByteArrayOutputStream;
@Override
public boolean consistentWithEquals() {
return false;
}
@Override
public Object structuralValue(T value) throws Exception {
if (value == null || con... | 0 |
import org.apache.beam.runners.core.metrics.MetricsContainerImpl;
import org.apache.beam.runners.core.metrics.MetricsContainerStepMap;
* DoFnRunner decorator which registers {@link MetricsContainerImpl}. | 0 |
LOG.debug("Calculated Digest: {}", new String(Base64.encodeBase64(calculatedDigest)));
LOG.debug("Stored Digest: {}", new String(Base64.encodeBase64(referenceType.getDigestValue()))); | 1 |
/** Test PubsubUnboundedSource. */
@Rule public TestPipeline p = TestPipeline.create();
clock,
factory,
null,
null,
StaticValueProvider.of(SUBSCRIPTION),
TIMESTAMP_ATTRIBUTE,
ID_ATTRIBUTE,
true /* needsAttributes */);
... | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/adapters/Attic/ShortCollectionCollection.java,v 1.3 2003/11/07 20:07:50 rwaldhoff Exp $
* @deprecated This code has been moved to Jakarta Commons Primitives (http://jak... | 0 |
if (LOG.isTraceEnabled()) {
ZooTrace.logTraceMessage(LOG, ZooTrace.SESSION_TRACE_MASK,
"loadData --- session in archive: " + id
+ " with timeout: " + to);
}
if (LOG.isTraceEnabled()) {
Zoo... | 0 |
* The EventTarget that has the mouse capture.
*/
protected EventTarget mouseCaptureTarget;
/**
* Whether the mouse capture event target will receive events
* that do not intersect with its geometry.
*/
protected boolean mouseCaptureSendAll;
/**
* Whether the mouse capture... | 0 |
import org.apache.ambari.server.stack.upgrade.UpgradePack.PrerequisiteCheckConfig; | 0 |
CoreUtil.addCoreContext(appContext, new Core(appContext)); | 0 |
/*
* Copyright 1999-2009 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 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import org.apache.accumulo.core.client.Instance;
import org.junit.Before;
import org.junit.Rule;
import ... | 0 |
*/
public POP() {
super(org.apache.bcel.Constants.POP);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitX... | 0 |
/*
* Copyright 2009 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 app... | 0 |
import junit.framework.TestCase;
| 0 |
/**
* A singleton.
*/
public static final NullOutputStream NULL_OUTPUT_STREAM = new NullOutputStream(); | 0 |
int newLen=pointer+len;
newLen=len; | 0 |
import java.security.SecureRandom;
return encryptKey(doc, key, mgfAlgorithm, oaepParams, null);
}
/**
* Encrypts a key to an EncryptedKey structure
*
* @param doc the Context document that will be used to general DOM
* @param key Key to encrypt (will use previously set KEK to
*... | 0 |
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
else if (File.class.equals(cls))
{
return toFile(value);
}
else if (Path.class.equals(cls))
{
return toPath(value);
}
* Convert the specified object into a File.
... | 0 |
* @deprecated replaced by {@link GroupDefinition}
public class StructDefinition extends GroupDefinition { | 0 |
return logMgr.getComponentsCount(searchCriteria); | 0 |
throw new BundleException(
"Bundle symbolic name and version are not unique: "
+ sym + ':' + ver, BundleException.DUPLICATE_BUNDLE_ERROR); | 0 |
import javax.net.ssl.SSLContext;
private final SSLContext sslContext;
public Http1TestServer(final IOReactorConfig ioReactorConfig, final SSLContext sslContext) throws IOException {
this.sslContext = sslContext;
this(IOReactorConfig.DEFAULT, null);
DefaultConnectionReuseStrategy... | 0 |
masterStatus.addSortableColumn("# Online<br />Tablet Servers", new NumberType<Integer>((int) (slaves.size() * 0.8 + 1.0), slaves.size(),
(int) (slaves.size() * 0.6 + 1.0), slaves.size()), "Number of tablet servers currently available"); | 0 |
* @version CVS $Id: HttpEnvironment.java,v 1.8 2003/05/16 07:04:56 cziegeler Exp $ | 0 |
case ServiceConfigVersion:
resourceDefinition = new ServiceConfigVersionResourceDefinition();
break;
| 0 |
* Maps the given upper-case character to its Soundex code. | 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 |
package com.twitter.mesos.scheduler.async;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicLong;
import javax.annotation.Nullable;
import com.google.common.collect.ImmutableSet;
import com.twitter.common.util.BackoffStrategy;
im... | 0 |
import java.util.jar.Manifest;
* Directory where the manifest will be written
*
* @parameter expression="${manifestLocation}" default-value="${project.build.outputDirectory}/META-INF"
*/
protected String manifestLocation;
/**
if (manifestLocation != null && manifestLocation... | 0 |
public static final short INVOKEDYNAMIC = 186;
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */ | 0 |
private void confirmDeletes(GarbageCollectionEnvironment gce, SortedMap<String,String> candidateMap) throws TableNotFoundException, AccumuloException,
private List<String> getCandidates(GarbageCollectionEnvironment gce, String lastCandidate) throws TableNotFoundException, AccumuloException,
AccumuloSecurityEx... | 0 |
import com.google.cloud.dataflow.sdk.util.common.CounterSet;
CounterSet.AddCounterMutator addCounterMutator =
new CounterSet().getAddCounterMutator();
elemCoder,
addCounterMutator);
shuffleSink.writer(shuffleWriter, "dataset")) { | 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 |
public static class MaxIntegerFn extends Combine.BinaryCombineIntegerFn {
public static class MaxLongFn extends Combine.BinaryCombineLongFn {
public static class MaxDoubleFn extends Combine.BinaryCombineDoubleFn { | 0 |
*
*
*/
if(
if(
beanUtilsReference.get() == null &&
propertyUtilsReference.get() == null &&
/**
* Tests whether difference instances are loaded by different
"Different BeanUtilsBean instances p... | 0 |
import com.twitter.mesos.gen.JobUpdateConfiguration;
import com.twitter.mesos.gen.TaskUpdateConfiguration; | 0 |
* Copyright 2016 Seznam.cz, a.s. | 0 |
LOG.debug("Sending registration response " + response);
LOG.debug("Sending heartbeat response " + heartBeatResponse); | 0 |
conf.set("mapreduce.framework.name", "local"); | 0 |
return new ComparableComparator<>();
final List<Integer> list = new LinkedList<>(); | 1 |
List<Long> aborted = new ArrayList<Long>();
aborted.add(command.getTaskId());
}
}
db.resubmitTasks(aborted);
commands = db.getRequestTasks(requestId);
for(HostRoleCommand command : commands) {
if(command.getHostName().equals(hostName)) {
assertEquals(HostRoleStatus.CO... | 1 |
if ( this.logger.isDebugEnabled() ) {
this.logger.debug("Reading user settings from '" + fileName + "'");
}
this.logger.info("Unable to read '" + fileName + "' - continuing with initialization.", ignore);
if ( this.logger.isDebugEnabled... | 0 |
protected void setFactoryProperties( Dictionary<String, ?> dictionary )
return getComponentMetadata().isDelayedKeepInstances(); | 0 |
import java.nio.charset.StandardCharsets;
StandardCharsets.UTF_8), | 0 |
import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.Struct; | 0 |
Collections.unmodifiableList(
Arrays.<NamedFactory<UserAuth>>asList(
Collections.unmodifiableList(
Arrays.asList( | 0 |
* <p>Instances of {@link StateNamespace} are guaranteed to have a {@link Object#hashCode} and
* {@link Object#equals} that uniquely identify the namespace.
* {@link String} will uniquely identify the key.
* <p>This will encode the actual namespace as a {@link String}. It is
* preferable to use the {@link Sta... | 0 |
* <li>State: The previous {@link PaneInfo} passed to the user's {@code DoFn.ProcessElement}
* method, if any. | 0 |
import javax.ws.rs.core.Response;
public static StatusMessage with(int status) {
return new StatusMessage(status, null);
}
public static StatusMessage with(Response.Status status, String message) {
return new StatusMessage(status.getStatusCode(), message);
}
private int status;
private String messa... | 0 |
// Strip all attributes other than bundle-version.
for (Iterator<Attribute> it = clauses.get(0).m_attrs.iterator(); it.hasNext(); )
Attribute attr = it.next();
if (!attr.getName().equals(Constants.BUNDLE_VERSION_ATTRIBUTE))
... | 0 |
package org.apache.felix.sigil.core.repository;
import org.apache.felix.sigil.repository.IResolutionMonitor; | 0 |
* A transaction consists of a number of operations. Instances of this class may check on the queue of outstanding transactions but may neither modify them nor
* create new ones.
* Reserving a transaction id ensures that nothing else in-process interacting via the same instance will be operating on that transaction... | 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 javax.management.ObjectName;
import javax.management.MalformedObjectNameException;
public static ObjectName REMOTE_LOGGER_ON = null;
static {
try {
REMOTE_LOGGER_ON = new ObjectName("OSGI:name=Remote Logger");
} catch (MalformedObjectNameException mone) {
//
}
} | 0 |
* Copyright 1999-2005 The Apache Software Foundation.
/**
* Sets an attribute
* @since 2.2
*/
void setAttribute(String name, Object value);
/**
* Gets an attribute
* @since 2.2
*/
Object getAttribute(String name);
/**
* Remove an attribute.
* @since 2.2
... | 0 |
public static final String FILE_NAME = "state.ser";
ReflectionUtil.setField(this, "bundlesLastModified", in.readObject());
ReflectionUtil.setField(this, "environments", in.readObject());
public static State createOrReadState(final BundleContext bc)
throws ClassNotFoundException, IOException ... | 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 |
Collections.sort(
sorted,
(o1, o2) ->
Iterables.getOnlyElement(o1.getWindows())
.maxTimestamp()
.compareTo(Iterables.getOnlyElement(o2.getWindows()).maxTimestamp())); | 0 |
package org.apache.zookeeper.server;
import org.apache.zookeeper.jmx.MBeanRegistry;
import org.apache.zookeeper.jmx.server.ConnectionBean;
import org.apache.zookeeper.jmx.server.DataTreeBean;
import org.apache.zookeeper.jmx.server.ZooKeeperServerBean;
import org.apache.zookeeper.server.util.ConnectionObserver;
import o... | 0 |
pipeline,
components.getWindowingStrategy(pCollection.getWindowingStrategyId()),
fromProto(pCollection.getIsBounded()),
(Coder) coder); | 0 |
runTest(ImmutableMap.of("executor", "E1"), ImmutableMap.of("scan_type", "quick"), "E1", "E1");
runTest(ImmutableMap.of("executor", "E1", "executor.quick", "E2"),
ImmutableMap.of("scan_type", "quick"), "E2", "E2");
runTest(ImmutableMap.of("executor", "E1", "executor.quick", "E2", "executor.slow", "E3... | 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.43 2003/01/14 18:40:19 jstrachan Exp $
* $Revision: 1.43 $
* $Date: 2003/01/14 18:40:19 $
* $Id: XMLParser.java,v 1.43 2003/01/14 18:40:19 jstrachan Exp $
* @vers... | 0 |
/*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 0 |
import org.apache.xml.security.transforms.params.XPathContainer; | 0 |
* @throws IOException If malformed input
throws IOException, GeneralSecurityException; | 0 |
// TODO: Get an exception from the remote service.
throw new IllegalStateException("The dataflow failed."); | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
AccumuloClient c = getClient();
AccumuloClient c = getClient();
AccumuloClient c = getClient();
getClient().tableOperations().create(table);
BatchWriter bw2 = getClient().createBatchWriter(table, new BatchWriterConfig());
getClient().tableOp... | 0 |
import java.util.Arrays;
import org.apache.accumulo.core.iterators.aggregation.LongSummation;
import org.apache.accumulo.core.iterators.aggregation.NumArraySummation;
import org.apache.accumulo.core.iterators.aggregation.NumSummation;
@SuppressWarnings("deprecation")
/**
* @throws IOException
* @deprecated s... | 0 |
.setTargetPreferredAuthSchemes(config.getTargetPreferredAuthSchemes()) | 0 |
package com.twitter.nexus.scheduler.persistence; | 0 |
package org.apache.beam.learning.katas.coretransforms.combine.simple;
| 0 |
import java.util.List;
List dependencies = m_service.getDependencies();
// the first dependency is always the dependency on the resource, which
// will be replaced with a more specific dependency below
dependencies.remove(0);
.add(dependencies)
.add(depend... | 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 |
propogateDeletes = !(droppedFiles.equals(allFiles.keySet())); | 0 |
import org.apache.beam.sdk.extensions.sql.impl.utils.CalciteUtils;
import org.apache.calcite.sql.type.SqlTypeName;
.typeDescriptor(FieldTypeDescriptor.of(FieldType.STRING)
.withMetadata(CalciteUtils.typeToMetadata(SqlTypeName.VARCHAR))) | 0 |
buf.append('[');
buf.append(']'); | 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 |
* 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 |
@Test(timeout = 60000) | 0 |
if (BeanUtilsTestCase.isPre14JVM()) { | 0 |
new RequestExpectContinue(true)});
new RequestExpectContinue(true)}); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.