Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
.getWatermarkThatGuaranteesFiring(window));
.getWatermarkThatGuaranteesFiring(window)); | 0 |
Element nsctx = doc.createElementNS(null, "nsctx");
nsctx.setAttributeNS(Constants.NamespaceSpecNS, "xmlns:ds",
Constants.SignatureSpecNS);
boolean thisOneWasSigned =
sig.getSignedInfo().getVerificationResult(i);
System.out
.println... | 0 |
import org.apache.felix.sigil.common.model.ModelElementFactory;
import org.apache.felix.sigil.common.model.eclipse.ISigilBundle;
import org.apache.felix.sigil.common.model.osgi.IRequiredBundle;
import org.apache.felix.sigil.common.repository.IBundleResolver;
import org.apache.felix.sigil.common.repository.IRepositoryMa... | 0 |
* TODO: Check if blueprint in cluster definition AND its parents already exists
Blueprints.getInstance().createDummyBlueprint("cluster123-site-site-site-blueprint", "0", null, null);
Blueprints.getInstance().createDummyBlueprint("cluster123-site-site-blueprint", "0", "cluster123-site-site-site-... | 0 |
import org.apache.http.HttpResponse;
HttpRequest request = this.conn.receiveRequestHeader(this.params);
if (((HttpEntityEnclosingRequest) request).expectContinue()) {
this.conn.receiveRequestEntity((HttpEntityEnclosingRequest) request);
protected void handleException(fina... | 0 |
import org.apache.hc.core5.util.CharArrayBuffer; | 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 not... | 1 |
Set<String> nameSet = params.getNames();
Set<String> localnameSet = params.getLocalNames();
Set<String> defaultnameSet = params.getDefaultNames(); | 0 |
public Set<KeyExtent> migrationsSnapshot() {
return Collections.emptySet(); | 0 |
public void awaitTermination(final long time, final TimeUnit timeUnit) throws InterruptedException {
thread.join((timeUnit != null ? timeUnit : TimeUnit.MILLISECONDS).toMillis(time)); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//validator/src/test/org/apache/commons/validator/RequiredNameTest.java,v 1.14 2003/10/05 16:41:09 dgraham Exp $
* $Revision: 1.14 $
* $Date: 2003/10/05 16:41:09 $
* @version $Revision: 1.14 $ $Date: 2003/10/05 16:41:09 $ | 0 |
if (log.isDebugEnabled())
log.debug("Created SignatureDSA using " + algorithmID.getAlgorithmID() | 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 static final String USER = "userName";
public static final String DB_STORE_TYPE = "dbStoreType";
public static final String DB_STORE_USAGE = "storeUse";
public static final String SOURCE = "source";
public static final String DESCRIPTION = "description";
public static final String STORE_U... | 0 |
public boolean hasInputStream(int index, String urlPath) throws IOException
public InputStream getInputStream(int index, String urlPath) throws IOException | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/ri/axes/AttributeContext.java,v 1.3 2002/04/10 03:40:20 dmitri Exp $
* $Revision: 1.3 $
* $Date: 2002/04/10 03:40:20 $
* @version $Revision: 1.3 $ $Date: 2002/04/10 03:40:20 $
public ... | 0 |
* Copyright 2016-2017 Seznam.cz, a.s. | 0 |
* @version $Id$
/**
* Recursively resolves references.
*/ | 0 |
import org.apache.beam.sdk.coders.CustomCoder;
private static class PartitionedGlobalWindowCoder extends CustomCoder<PartitionedGlobalWindow> {
@Override
public void verifyDeterministic() {} | 0 |
try {
OutputCommitter committer = getHadoopFormatInstance()
.getOutputCommitter(
HadoopUtils.createTaskContext(conf.getWritable(), 0));
committer.setupJob(HadoopUtils.createJobContext(conf.getWritable()));
} catch (Exception ex) {
throw new RuntimeException(ex);
}
... | 0 |
final class BeanPropertySetterRule
extends AbstractXmlRule
{
public BeanPropertySetterRule( RulesBinder targetRulesBinder, PatternStack patternStack )
{
super( targetRulesBinder, patternStack );
protected void bindRule( LinkedRuleBuilder linkedRuleBuilder, Attributes attributes )
throws ... | 0 |
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull; | 0 |
writer.write("<form action=\"iPOJO\" method=\"get\">"
writer.write("<form action=\"iPOJO\" method=\"get\">"
return "<a href=\"iPOJO?factory=" + n + "\">" + n + "</a>";
return "<a href=\"iPOJO?instance=" + name + "\">" + name + "</a>";
s += "<a href=\"iPOJO?ins... | 0 |
package org.apache.felix.sigil.model; | 0 |
/*
* Copyright 1999-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... | 0 |
import org.apache.beam.sdk.coders.NullableCoder;
static <T> NullableCoder<T> inferCoder(
return NullableCoder.of(coderRegistry.getDefaultCoder(clazz)); | 0 |
throw new SCRDescriptorException("Unable to add methods to " + this.getName(), className, 0, e); | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//beanutils/src/test/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java,v 1.2 2003/05/07 19:30:51 rdonkin Exp $
* $Revision: 1.2 $
* $Date: 2003/05/07 19:30:51 $
import java.util.Locale;
import java.text.DecimalForm... | 0 |
$Id: ActionImpl.java,v 1.2 2004/03/01 10:36:22 andreas Exp $ | 0 |
* Gets the key at the specified index.
* The index enumeration starts at 0.
* Gets the size of the list of keys, this number is the number of values this object was created with. | 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 DelegatingConnection<? extends Connection> conn = null;
conn = new DelegatingConnection<>(delegateConn);
DelegatingConnection<Connection> conn2 = new DelegatingConnection<>(delegateConn);
DelegatingConnection<Connection> conn2 = new DelegatingConnection<>(delegateConn2);
... | 0 |
* @since 3.0 | 0 |
List<String> expectedList1 = new ArrayList<String>();
}
List<String> expectedList2 = new ArrayList<String>();
List<String> actualList = EnumerationUtils.toList(new StringTokenizer(TO_LIST_FIXTURE));
Hashtable<String, Integer> expected = new Hashtable<String, Integer>();
... | 0 |
private static final long serialVersionUID = 1L; | 0 |
assertNotNull(expected + ": Null DH created", expected.create());
assertArrayEquals("P1", DHGroupData.getP1(), DHGroupData.getOakleyGroupPrimeValue("group2.prime"));
assertArrayEquals("P14", DHGroupData.getP14(), DHGroupData.getOakleyGroupPrimeValue("group14.prime")); | 0 |
import org.apache.zookeeper.common.HostNameUtils;
public String getElectionAddress() {
return HostNameUtils.getHostString(peer.getElectionAddress()) + ":"
+ peer.getElectionAddress().getPort();
}
public String getClientAddress() {
return HostNameUtils.getHostString(peer.get... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jelly/src/java/org/apache/commons/jelly/servlet/JellyServlet.java,v 1.2 2002/12/11 12:41:02 jstrachan Exp $
* $Revision: 1.2 $
* $Date: 2002/12/11 12:41:02 $
* $Id: JellyServlet.java,v 1.2 2002/12/11 12:41:02 jstrachan Exp $
* @... | 0 |
*
* @since 4.0 | 0 |
import org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.discovery.TimelineMetricMetadataManager;
private final TimelineMetricReadHelper readHelper;
TimelineMetricMetadataManager metricMetadataManager,
readHelper = new TimelineMetricReadHelper(metric... | 0 |
package org.apache.felix.sigil.model; | 0 |
"Authentication method (i.e password,"
+ " kerberos, provider). Set more properties for chosen method below.",
"Max amount" + " of time (in seconds) an unresponsive server will be re-tried. An"
+ " exception is thrown when this timeout is exceeded. Set to zero for no timeout."),
"C... | 0 |
import org.apache.cocoon.xml.NamespacesTable;
import org.apache.cocoon.xml.NamespacesTable.Declaration;
/** A {@link NamespacesTable} used to filter namespace declarations. */
protected NamespacesTable namespaces;
/**
this.namespaces = new NamespacesTable();
this.namespaces = null;
/**
... | 0 |
logicalTaskMap.put(installTask, new HashMap<>());
logicalTaskMap.put(startTask, new HashMap<>());
logicalTaskMap.put(installTask, new HashMap<>());
logicalTaskMap.put(startTask, new HashMap<>()); | 0 |
case Setting:
return new SettingResourceProvider(); | 0 |
package org.apache.sling.felix.webconsole.internal.obr;
import org.apache.sling.felix.webconsole.Action; | 0 |
private Collection<ViewInstancePropertyEntity> properties = new HashSet<>();
private Collection<ViewInstanceDataEntity> data = new HashSet<>();
private Collection<ViewEntityEntity> entities = new HashSet<>();
private final Map<Resource.Type, ResourceProvider> resourceProviders = new HashMap<>();
private final... | 0 |
List<ParallelInstruction> instructions = Arrays.asList(createReadInstruction("Read"),
createParDoInstruction(0, 0, "DoFn1", "DoFnUserName"),
createParDoInstruction(1, 0, "DoFnWithContext", "DoFnWithContextUserName"),
createWriteInstruction(2, 0, "Write"));
return createParDoInstruction(p... | 0 |
reconfig(zkArr[leaderIndex], joiningServers, null, null, -1); | 0 |
setBundleProtectionDomain(((BundleImpl) bundle).adapt(BundleRevisionImpl.class));
void setBundleProtectionDomain(BundleRevisionImpl revisionImpl) throws Exception
BundleImpl bundleImpl = revisionImpl.getBundle();
certificates = signers.keySet().toArray(new... | 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... | 1 |
properties.setProperty(Configuration.SERVER_VERSION_FILE,
"../version"); | 0 |
package org.apache.commons.digester3.xmlrules;
/*
* 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 Apac... | 0 |
* Gets a copy of all of the configuration properties that back this
* {@link Configuration} instance.
*
* @return a copy of all of the properties.
*/
public Properties getProperties() {
return new Properties(properties);
}
/** | 0 |
* Creates a new instance of {@code MapConfiguration} which uses the
* specified {@code Properties} object as its data store. All changes of
* this configuration affect the given {@code Properties} object and
* vice versa. Note that while {@code Properties} actually
* implements {@code Map<Objec... | 0 |
initPropMap.put("HBASE_MASTER", new String[]{"hbase.ssl.enabled"});
initPropMap.put("HBASE_REGIONSERVER", new String[]{"hbase.ssl.enabled"});
boolean isHttpsEnabled;
String propetyVal = protocolMap.get(componentName);
if (service.equals(Service.Type.HBASE)) {
isHttpsEna... | 0 |
* @version $Id$ | 0 |
@Test
public void testGetAmbariBlacklistFile() {
Properties ambariProperties = new Properties();
Configuration conf = new Configuration(ambariProperties);
Assert.assertEquals(null, conf.getAmbariBlacklistFile());
ambariProperties = new Properties();
ambariProperties.setProperty(Configuration.PRO... | 0 |
final int statusCode = response.getStatusLine().getStatusCode();
final HttpRequest request = (HttpRequest) context.getAttribute(
final String method = request.getRequestLine().getMethod();
final Header locationHeader = response.getFirstHeader("location");
final String loc... | 0 |
public void processHeaders( Analyzer analyzer ) throws MojoExecutionException
String embedDependencyHeader = analyzer.getProperty( EMBED_DEPENDENCY );
m_embedDirectory = analyzer.getProperty( EMBED_DIRECTORY );
m_embedStripGroup = analyzer.getProperty( EMBED_STRIP_GROUP, "true" );
... | 0 |
public PoolingDataSource(ObjectPool<Connection> pool) {
public void setPool(ObjectPool<Connection> pool)
throws IllegalStateException, NullPointerException {
Connection conn = _pool.borrowObject();
protected ObjectPool<Connection> _pool = null;
public Map<String,Class<?>> get... | 0 |
InvocationHandler handler = new RpcServerInvocationHandler<>(instance);
InvocationHandler handler = new RpcClientInvocationHandler<>(instance); | 1 |
package org.apache.ambari.server.api.services;
import org.apache.ambari.server.api.resources.ResourceDefinition;
import org.apache.ambari.server.controller.utilities.PropertyHelper;
import org.apache.ambari.server.api.query.Query; | 0 |
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights | 0 |
StateSampler stateSampler,
StateSampler.StateKind stateKind) {
super(operationName, receivers,
counterPrefix, addCounterMutator, stateSampler, stateKind);
}
public ReceivingOperation(String operationName,
OutputReceiv... | 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.ambari.datastore.DataStoreFactory;
import org.apache.ambari.datastore.DataStore;
private final DataStore dataStore;
Stacks(DataStoreFactory dataStore) throws IOException {
this.dataStore = dataStore.getInstance(); | 0 |
public void incTotalBytesRecv(final long n) {
public void incTotalBytesSent(final long n) {
public void setContentLength(final long contentLength) { | 0 |
String typeAndSubTypeNamesQryStr = context.getEntityType().getTypeAndAllSubTypesQryStr();
if (typeAndSubTypeNamesQryStr.length() <= MAX_QUERY_STR_LENGTH_TYPES) {
queryString.append(AND_STR).append(typeAndSubTypeNamesQryStr);
LOG.warn("'{}' has too many subtypes (q... | 0 |
public void testSimpleVsArgument() throws OptionException {
public void testSimpleVsBurst() throws OptionException {
public void testSimpleVsChildren() throws OptionException {
public void testSimpleVsArgumentVsBurst() throws OptionException {
public void testSimpleVsArgumentVsChildren() throws Opti... | 0 |
* Proxy method for {@link java.security.Signature#initSign(java.security.PrivateKey,
protected abstract void engineInitSign(Key signingKey, SecureRandom secureRandom) | 1 |
import java.io.DataInput;
* Construct object from input stream.
*
* @param input Input stream
StackMap(int name_index, int length, DataInput input, ConstantPool constant_pool) throws IOException {
map_length = input.readUnsignedShort();
map[i] = new StackMapEntry(input, constant_... | 0 |
if (memberEntity.getUser() != null) {
users.add(new User(memberEntity.getUser()));
} else {
LOG.error("Wrong state, not found user for member '{}' (group: '{}')",
memberEntity.getMemberId(), memberEntity.getGroup().getGroupName());
} | 0 |
* CVS $Id: ContainerDelegate.java,v 1.3 2004/01/06 12:36:07 joerg Exp $
// private WidgetDefinition definition;
private static final String WIDGETS_EL = "widgets";
// this.definition = definition; | 0 |
String tableName = OptUtil.getTableOpt(cl, shellState); | 0 |
createAggregator(SUCCESS_COUNTER, Sum.ofIntegers());
createAggregator(FAILURE_COUNTER, Sum.ofIntegers());
createAggregator(SUCCESS_COUNTER, Sum.ofIntegers());
createAggregator(FAILURE_COUNTER, Sum.ofIntegers());
createAggregator(SUCCESS_COUNTER, Sum.ofIntegers());
createA... | 0 |
cid.setTemporaryAttribute("portlet-mode", mode.toString());
cid.setTemporaryAttribute("window-state", state.toString());
int size = CopletInstanceData.SIZE_NORMAL;
if ( state.equals(WindowState.MAXIMIZED) ) {
size = CopletInstanceData.SIZE_MAXIMIZED;
... | 0 |
private InetSocketAddress start() throws Exception {
this.server.start();
this.server.registerHandler("*", new HttpAsyncRequestHandler<HttpRequest>() {
final InetSocketAddress address = start();
this.server.registerHandler("*", new HttpAsyncRequestHandler<HttpRequest>() {
fin... | 0 |
List<ByteBuffer> tableSplits = tpc.proxy().listSplits(userpass, testtable, 10);
List<ByteBuffer> tableSplits = tpc.proxy().listSplits(userpass, testtable, 10); | 0 |
package org.apache.beam.runners.core.metrics;
import org.apache.beam.sdk.metrics.MetricQueryResults;
/**
* This is the default Metrics Sink that just store in a static field the first counter (if it
* exists) attempted value. This is usefull for tests.
*/
public class DummyMetricsSink extends MetricsSink<Long> {
... | 0 |
* An alternative solution is to generate only cinclude tags by using the
* {@link org.apache.cocoon.portal.layout.renderer.aspect.impl.CIncludeCopletAspect}
* and include the coplet contents later. That would allow caching up to the point
* of the cinclude transformer.
*
* <h2>Example XML:</h2>
* <pre>
* <... | 0 |
import org.apache.batik.ext.awt.image.ARGBChannel;
| 0 |
* @version $Id: RefinedSoundex.java,v 1.19 2004/05/24 00:23:17 ggregory Exp $
return soundex((String) pObject); | 0 |
* @deprecated Replaced by the new {@link ArrayConverter} implementation | 0 |
private List<DependencyInfo> dependencies = new ArrayList<>();
logs = new ArrayList<>();
customCommands = new ArrayList<>(); | 1 |
package org.apache.ambari.server.state.live; | 0 |
public class TestHashBag<T> extends AbstractTestBag<T> {
public Bag<T> makeObject() {
return new HashBag<T>(); | 0 |
package org.apache.bookkeeper.util;
/**
* 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 Licens... | 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 |
@Deprecated | 0 |
@Override | 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 |
DataNode dataNode = new DataNode(oldDataNode.data, | 0 |
* Install bundle metadata to local OBR.
*
*
* @parameter expression="${repository-path}" alias="repository-path" | 0 |
Adapter ca = converter.newAdapter();
Adapter ca = converter.newAdapter();
Adapter ca2 = ca.newAdapter();
assertEquals(5, (int) ca2.convert("Hello").to(Integer.class));
Adapter ca = converter.newAdapter();
Adapter ca = converter.newAdapter(); | 0 |
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import org.apache.commons.vfs2.util.UserAuthenticatorUtils;
import com.jcraft.jsch.Session; | 0 |
import org.apache.beam.dsls.sql.interpreter.operator.comparison.BeamSqlIsNotNullExpression;
import org.apache.beam.dsls.sql.interpreter.operator.comparison.BeamSqlIsNullExpression; | 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 class IntHashMap<K extends Number, V>
implements Map<K, V>
private Entry<V> table[];
private Entry<T> next;
public Entry<T> getNext()
public void setNext( Entry<T> next )
Entry<V> oldTable[] = table;
Entry<V> newTable[] = new Entry[newCapacity];
for ( E... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.