Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
newLoader(ruleModule).setClassLoader(d.getClassLoader()).decorate(d); | 0 |
import org.apache.cocoon.environment.Request;
* @version CVS $Id: PortalServiceImpl.java,v 1.12 2004/07/11 14:04:34 cziegeler Exp $
final Request request = ContextHelper.getRequest( this.context );
PortalServiceInfo info = (PortalServiceInfo) request.getAttribute(this.key, Request.GLOBAL_SCOPE);
... | 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 ap... | 0 |
package org.apache.beam.sdk.testing;
import static org.apache.beam.sdk.testing.SerializableMatchers.allOf;
import static org.apache.beam.sdk.testing.SerializableMatchers.anything;
import static org.apache.beam.sdk.testing.SerializableMatchers.containsInAnyOrder;
import static org.apache.beam.sdk.testing.SerializableMa... | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
return new DelegateCoder<>(coder, toFn, fromFn, typeDescriptor); | 0 |
import org.apache.batik.util.DoublyIndexedTable; | 0 |
* </p>
* </p>
* </p> | 0 |
"nodeRangeExpressions", | 0 |
import net.jcip.annotations.Immutable;
@Immutable | 0 |
params.setParameter(CoreConnectionPNames.SO_TIMEOUT, 100);
params.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 100); | 0 |
import org.apache.ambari.server.orm.entities.RepositoryVersionEntity;
import org.apache.ambari.server.state.repository.ClusterVersionSummary;
import org.apache.ambari.server.state.repository.VersionDefinitionXml;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
@R... | 0 |
close(true); | 0 |
@Override
@Override | 0 |
AccumuloConfiguration acuconf =
FileOutputConfigurator.getAccumuloConfiguration(AccumuloFileOutputFormat.class, job); | 0 |
package org.apache.aurora.scheduler.thrift;
import com.twitter.thrift.Status;
| 0 |
import org.apache.cocoon.portal.services.CopletFactory;
import org.apache.cocoon.portal.services.LayoutFactory;
import org.apache.cocoon.portal.services.LinkService; | 0 |
super(new HashMap<>()); | 0 |
return new UnmodifiableOrderedMap<>(map); | 1 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/PredicateUtils.java,v 1.13 2003/11/23 19:11:21 scolebourne Exp $
import org.apache.commons.collections.functors.EqualPredicate;
import org.apache.commons.collections.functors.False... | 0 |
if (!getCombinedState().isAcceptingInputs())
return;
if (!getCombinedState().isAcceptingInputs())
return true;
| 0 |
import javax.persistence.Lob;
@Column(name = "inputs")
@Lob
private byte[] inputs = new byte[0];
return inputs != null ? new String(inputs) : null;
this.inputs = inputs != null ? inputs.getBytes() : null; | 0 |
// If nodefilters are set, must execute them first to create node-set
try {
return Collections.unmodifiableSet(xi.getNodeSet()).iterator();
} catch (Exception e) {
// should not occur
throw new RuntimeException
("unrecoverable error retrieving ... | 1 |
Map<String, DesiredConfig> clusterDesired = (cluster == null) ? new HashMap<String, DesiredConfig>() : cluster.getDesiredConfigs(); | 0 |
* @version $Revision$ $Date$ | 0 |
import org.apache.felix.sigil.eclipse.ui.SigilUI; | 0 |
import org.apache.cocoon.portal.layout.aspect.TabLayoutStatus;
* @version CVS $Id: TabContentAspect.java,v 1.2 2003/05/08 13:38:11 cziegeler Exp $ | 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 applica... | 0 |
package org.w3c.dom.svg;
import org.w3c.dom.DOMException;
public interface SVGURIReference {
public String getXlinkType( );
public void setXlinkType( String xlinkType )
throws DOMException;
public String getXlinkRole( );
public void setXlinkRole( String xlinkRole )
... | 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 |
/*
* 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 |
/*
* Copyright 2000-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 b... | 0 |
* @version $Revision$ | 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 |
* this pool at the same time, or non-positive for no limit.
* in perUserMaxConnections.
* this pool at the same time, or non-positive for no limit.
* in perUserMaxConnections. The default is 8.
* pool, without extra ones being released, or negative for no limit.
* in perUserMaxIdle.
... | 0 |
package org.apache.accumulo.core.cryptoImpl; | 0 |
Set<String> hostsToForceKerberosOperations = new HashSet<String>();
if(Service.Type.KERBEROS.name().equalsIgnoreCase(scHost.getServiceName()) &&
Role.KERBEROS_CLIENT.name().equalsIgnoreCase(scHost.getServiceComponentName())) {
// Since the KERBERO... | 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 |
/*
* Copyright 2002, 2003,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... | 0 |
import java.util.Collection;
public void init(ClientSession session, String service, Collection<?> identities) throws Exception { | 0 |
import java.io.IOException;
import java.io.Reader;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Vector; | 0 |
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.transaction.Synchronization;
import org.apache.commons.dbcp2.DelegatingConnection;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
* Tests ManagedDataSource with an active transaction in progres... | 0 |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class DemuxTestCase {
@Test
@Test | 0 |
Copyright 2003 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 law or... | 0 |
* Copyright 2016 Seznam.cz, a.s. | 0 |
KeyPairGenerator kpg = KeyPairGenerator.getInstance("DSA");
kpg.initialize(1024);
KeyPair keyPair = kpg.generateKeyPair(); | 0 |
package org.apache.aurora.scheduler.storage.mem;
import org.apache.aurora.gen.Lock;
import org.apache.aurora.gen.LockKey;
import org.apache.aurora.scheduler.base.JobKeys;
import org.apache.aurora.scheduler.storage.LockStore;
import org.apache.aurora.scheduler.storage.entities.ILock;
import org.apache.aurora.scheduler.s... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/Substitutor.java,v 1.3 2004/01/10 17:39:41 rdonkin Exp $
* $Revision: 1.3 $
* $Date: 2004/01/10 17:39:41 $
* Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* @ve... | 0 |
* <p>
* <p>
import org.apache.atlas.repository.Constants;
import org.apache.commons.collections.CollectionUtils;
final String type = searchFilter.getParam(SearchFilter.PARAM_TYPE);
final String name = searchFilter.getParam(SearchFilter.PARAM_NAME);
final String ... | 0 |
import org.apache.beam.sdk.transforms.SerializableFunction;
PCollection<OutputT> output;
input.apply(
ParDo.of(
new DoFn<InputT, OutputT>() {
@ProcessElement
public void processElement(@Element Row row, OutputReceiver<Outp... | 0 |
for (Clazz c: list) {
break;
definition.sortReferences(); | 0 |
import org.apache.accumulo.server.util.PortUtils;
proxyPort = PortUtils.getRandomFreePort(); | 0 |
* Abstract non-blocking client-side HTTP connection interface. It can be used
* to submit HTTP requests and asynchronously receive HTTP responses.
*
* @see NHttpConnection
*
* @version $Revision$
* Submits {@link HttpRequest} to be sent to the target server.
* Returns <code>true</code> if an HTTP req... | 0 |
* @version CVS $Id: RepeaterJXPathBinding.java,v 1.22 2004/03/03 12:30:18 antonio Exp $
if (uniqueBindings != null) {
for (int i=0; i < uniqueBindings.length; i++) {
uniqueRowBinding.add(uniqueBindings[i]);
} | 0 |
import org.apache.beam.sdk.values.WindowingStrategy; | 0 |
* @version $Revision$ | 0 |
return new TestSuite(Jira349TestCase.class); | 0 |
import java.io.File;
else if (source instanceof File) {
return getSAXReader().read((File) source);
} | 0 |
// TODO: FRAGMENT RESOLVER - Technically, this is only necessary for fragments.
// When we refactoring for the new R4.3 framework API, we'll have to see
// if this is still necessary, since the new BundleWirings API will give
// us another way to detect it.
boolean isRemovalPending... | 0 |
* @version $Id$ | 0 |
import org.apache.sshd.common.NamedResource;
public boolean canExtractKeyPairs(NamedResource resourceKey, List<String> lines)
SessionContext session, NamedResource resourceKey, FilePasswordProvider passwordProvider, List<String> lines)
NamedResource resourceKey, List<String> lines, int start... | 0 |
* <p>
* </p>
* <p>
* </p>
* <p>
* </p>
* <p>
* </p>
* <p>
* </p>
* <p>
* </p> | 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... | 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... | 0 |
List<String> txids = new ArrayList<>();
LinkedHashMap<String,TxOpts> txOpts = new LinkedHashMap<>(2);
AdminUtil<Master> admin = new AdminUtil<>();
ZooStore<Master> zs = new ZooStore<>(path, zk);
admin.print(new ReadOnlyStore<>(zs), zk, ZooUtil.getRoot(instance) + Constants.ZTABLE_LOCKS); | 1 |
import org.apache.commons.digester3.Rule;
import org.apache.commons.digester3.binder.NestedPropertiesBuilder;
extends Rule
public void begin( String namespace, String name, Attributes attributes )
NestedPropertiesBuilder builder = getDigester().peek();
builder.addAlias( elementName ).forProperty... | 0 |
import org.apache.atlas.AtlasException;
void setNull(String attrName) throws AtlasException;
boolean getBoolean(String attrName) throws AtlasException;
byte getByte(String attrName) throws AtlasException;
short getShort(String attrName) throws AtlasException;
int getInt(String attrName) throws Atlas... | 0 |
inputs.put(new TupleTag<KV<Long, String>>("mainInputName") {}, mainInput);
assertThat(ParDoTranslation.getMainInputName(protoTransform), equalTo("mainInputName")); | 0 |
* @exception IllegalArgumentException value is not | 1 |
import org.junit.Test;
public class NullWriterTest {
@Test | 0 |
try {
encoder.encode(null);
} catch( EncoderException ee ) {
// An exception should be thrown
} | 0 |
/* $Id: DigesterRulesSource.java,v 1.9 2004/05/10 06:30:08 skitching Exp $
* | 0 |
private static final int BUFFER_SIZE = 2048;
throw new IllegalStateException("Inconsistent codec state");
// read and discard the remainder of the message
byte buffer[] = new byte[BUFFER_SIZE];
while (read(buffer) >= 0) {
... | 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 ap... | 1 |
* Manages an internal list of secret keys used to sign new authentication tokens as they are
* generated, and to validate existing tokens used for authentication.
* Each TabletServer, in addition to the Master, has an instance of this {@link SecretManager} so
* that each can authenticate requests from clients prese... | 0 |
// Commenting this out since we do not need an index for edge here
//createEdgeMixedIndex(propertyName);
/* Commenting this out since we do not need an index for edge label here
} */ | 0 |
public void testEmptyIfNull() {
assertTrue(ListUtils.emptyIfNull(null).isEmpty());
List<Long> list = new ArrayList<Long>();
assertSame(list, ListUtils.emptyIfNull(list));
}
| 0 |
import com.google.cloud.dataflow.sdk.util.state.MergingStateContext;
import com.google.cloud.dataflow.sdk.util.state.StateContext;
public abstract StateContext<K> state();
public abstract MergingStateContext<K, W> state();
public abstract void onMerge(OnMergeContext context) throws Exception;
public abstrac... | 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 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
@Contract(threading = ThreadingBehavior.IMMUTABLE)
final String method = request.getMethod().toUpperCase(Locale.ROOT); | 0 |
import org.apache.accumulo.core.client.impl.AcceptableThriftTableOperationException;
throw new AcceptableThriftTableOperationException(tableId, null, TableOperation.COMPACT, TableOperationExceptionType.OTHER, "Compaction canceled");
throw new AcceptableThriftTableOperationException(tableId, null, TableOpera... | 0 |
private boolean enabled = true;
/**
* Gets whether this definition is enabled.
*
* @return {@code true} if enabled.
*/
@JsonProperty("enabled")
public boolean isEnabled() {
return enabled;
}
/**
* Sets whether this definition is enabled.
*
* @param enabled
* {@code tru... | 0 |
protected static final int ui(byte b)
protected static final long ul(byte b) | 0 |
Copyright 2000-2001 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 law... | 0 |
* @version CVS $Id$
XMLUtils.createElement(contenthandler, "title", copletInstanceData.getTitle()); | 0 |
private static final String TIMESTAMP_ATTRIBUTE = "timestamp";
private static final String ID_ATTRIBUTE = "id";
client = new PubsubJsonClient(TIMESTAMP_ATTRIBUTE, ID_ATTRIBUTE, mockPubsub);
ImmutableMap.of(TIMESTAMP_ATTRIBUTE, String.valueOf(MESSAGE_TIME),
ID_ATTRIBUTE, RECORD_ID));
... | 0 |
/*
* Copyright 2006 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 |
private static final NoTservers NO_SERVERS = new NoTservers(log);
protected final OutstandingMigrations outstandingMigrations = new OutstandingMigrations(log);
resetBalancerErrors();
} else {
outstandingMigrations.migrations = migrations;
constraintNotMet(outstandingMigrations);
... | 0 |
&& ref.getField().getDeclaringClass().getName().equals(container.getClassDescription().getDescribedClass().getName())
this.logger.debug("Generating bind and unbind method for " + name + " in " + container.getClassDescription().getDescribedClass().getName());
... | 0 |
import org.apache.zookeeper.ZKTestCase;
import org.junit.Assert;
import org.junit.Test;
public class PurgeTxnTest extends ZKTestCase implements Watcher {
@Test
Assert.assertTrue("waiting for server being up ",
Assert.assertTrue("waiting for server to shutdown",
Assert.assertTrue("exactly 3 ... | 0 |
@Override
public void setUp() throws Exception {
// ensure jul logging is only error to avoid warning in silent mode
java.util.logging.Logger.getLogger(JexlEngine.class.getName()).setLevel(java.util.logging.Level.SEVERE);
}
@SuppressWarnings("boxing") | 0 |
*
* @version $Id: AggregateFieldDefinition.java,v 1.6 2004/02/11 10:43:30 antonio Exp $ | 0 |
this.requester = new HttpAsyncRequester(this.httpProcessor, this.reuseStrategy); | 0 |
/**
* 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 law or agreed to in writing, software
* distribu... | 0 |
import org.apache.directory.api.util.Strings;
import org.apache.hadoop.security.authentication.util.KerberosName;
import org.apache.hadoop.security.authentication.util.KerberosUtil;
import sun.security.krb5.KrbException;
public static final String HADOOP_SECURITY_AUTH_TO_LOCAL = "hadoop.security.auth_to_local";
pub... | 0 |
import org.apache.accumulo.core.data.impl.KeyExtent; | 1 |
import org.apache.beam.sdk.testing.CoderProperties; | 0 |
* {@link org.apache.ambari.server.state.RepositoryVersionState#UPGRADING}.
* Retrieve all of the host versions for the given host name across all clusters.
public List<HostVersionEntity> findByHost(String hostName) {
.createNamedQuery("hostVersionByHostname", HostVersionEntity.class);
* Retrieve all of... | 0 |
* @version $Id: EventAwareCacheImpl.java,v 1.3 2003/07/20 21:08:06 ghoward Exp $
if (!m_eventRegistry.wasRecoverySuccessful()) { | 0 |
requestContext.setAttemptCount(numRetries + 1);
requestContext.setMaxAttempts(maxRetries);
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.