Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
/**
*
* @version CVS $Id: FOM_WebContinuation.java,v 1.3 2004/01/22 16:53:57 vgritsenko Exp $
*/
pwk.setPrototype(getClassPrototype(getParentScope(),
NativeArray arr =
cwk.setPrototype(getClassPrototype(getParentScope(),
FOM_Cocoon cocoon =
ComponentManager compone... | 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 |
/**
* Stores the path to the server actions folder which contains server actions jars for the given service.
*/
@XmlTransient
private File serverActionsFolder;
public File getServerActionsFolder() {
return serverActionsFolder;
}
public void setServerActionsFolder(File serverActionsFolder) {
... | 0 |
*
* <p>Please see 'build_rules.gradle' file for instructions regarding | 0 |
import org.apache.atlas.repository.Constants;
import org.apache.commons.configuration.Configuration;
private HttpServletRequest httpServletRequest;
private final int maxFullTextQueryLength;
private final int maxDslQueryLength;
public DiscoveryREST(AtlasDiscoveryServic... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//fileupload/src/java/org/apache/commons/fileupload/MultipartStream.java,v 1.11 2003/04/27 17:30:06 martinc Exp $
* $Revision: 1.11 $
* $Date: 2003/04/27 17:30:06 $
import java.io.ByteArrayOutputStream;
* @version $Id: MultipartStr... | 1 |
public static <T> Factory<T> constantFactory(final T constantToReturn) {
public ConstantFactory(final T constantToReturn) { | 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 |
boolean debugEnabled = log.isDebugEnabled();
if (debugEnabled) {
if (debugEnabled) { | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/ShortArrayList.java,v 1.2 2002/08/13 19:41:36 pjack Exp $
* $Revision: 1.2 $
* $Date: 2002/08/13 19:41:36 $
* A list of <Code>short</Code> elements.
*
* @ver... | 0 |
} else if (sumLength >= FIVE && sumLength <= SEVEN) {
} else if (sumLength >= EIGHT && sumLength <= ELEVEN) {
name1LtREnd = name1.substring(name1Size - i, name1Size - i + 1);
name2RtLEnd = name2.substring(name2Size - i, name2Size - i + 1);
return firstLetter + name; | 0 |
return new XMLSecStartDocumentImpl(systemId, xmlStreamReader.getCharacterEncodingScheme(), | 0 |
import java.util.Collections;
import org.apache.accumulo.examples.wikisearch.sample.Field;
table.setUnevaluatedFields(Collections.singletonList("TEXT"));
results = table.runQuery(c, auths, "TEXT == 'abacus'", null, null, null);
docs = results.getResults();
assertEquals(1, docs.size());
for (Document... | 0 |
volatile boolean finished = false;
@Override
finished = true;
queuedRequests.clear(); | 0 |
columnFamilies = new HashSet<>(columnFamilies);
columnFamilies = new HashSet<>(columnFamilies); | 0 |
private Manifest m_manifest;
m_manifest = new Manifest();
m_manifest.read(is);
return m_manifest; | 0 |
/**
* Tests the clone() method.
*/
public void testClone()
{
Configuration c = (Configuration) conf.clone();
assertTrue(c instanceof XMLConfiguration);
XMLConfiguration copy = (XMLConfiguration) c;
assertNotNull(conf.getDocument());
assertNull(copy.getD... | 0 |
* Check if <code>request(profileName)</code> will return with a ICCColorSpaceExt
* Check if <code>request(profileName)</code> will return immediately with the | 0 |
new HashMap<>(); | 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 |
PublicKeyEntry keyEntry = PublicKeyEntry.parsePublicKeyEntry(KEY_STRING);
key = keyEntry.resolvePublicKey(null, PublicKeyEntryResolver.FAILING); | 0 |
buffer.putInt(0); // reserve space for actual packet length | 0 |
* <p/>
* The following parameters can be used to customize the behavior of this
* class:
* <ul>
* <li>{@link org.apache.http.params.CoreProtocolPNames#HTTP_ELEMENT_CHARSET}</li>
* <li>{@link org.apache.http.params.CoreConnectionPNames#TCP_NODELAY}</li>
* <li>{@link org.apache.http.params.CoreConnectionPNames#... | 0 |
interface ProxyListener extends EventListener {
static class ProxyListenerImpl implements ProxyListener { | 0 |
"duration, " +
" (?, ?, ?, ?, ?, ?, 0, ?, 0)"
"lastUpdateTime = ?, " +
"duration = ? - (SELECT startTime FROM " +
WORKFLOW_TABLE +
" WHERE workflowId = ?) " +
"WITH sums as (SELECT sum(inputBytes) as input, " +
... | 0 |
private static final State THROTTLED = State.create(ScheduleStatus.THROTTLED);
final Closure<Transition<State>> deleteIfKilling =
Closures.filter(Transition.to(KILLING), addWorkClosure(WorkCommand.DELETE));
.to(PENDING, THROTTLED, UNKNOWN))
.withCallback(deleteIfKilling))
... | 0 |
import org.apache.hc.core5.http.nio.support.BasicRequestProducer;
import org.apache.hc.core5.http.nio.support.BasicResponseConsumer; | 0 |
LOG.warn("Exception occurred from thread {}", thName, e); | 0 |
// Manage the No Value case.
return prop.onGet(pojo, fieldName, value); | 0 |
return doVerify(encoded); | 0 |
if(null != mt.messages && !mt.messages.isEmpty()){
for(int i = 0; i < mt.messages.size(); i++){
String message = mt.messages.get(i);
message = tokenReplace(ctx, message, taskWrapper.getService(), taskWrapper.getComponent());
mt.messages.set(i, m... | 0 |
.apply(Combine.perKey(new MultiStepCombineFn()));
.apply(Window.into(windowFn))
.apply(Combine.perKey(new MultiStepCombineFn()));
.apply(Combine.perKey(new MultiStepCombineFn())); | 0 |
*/
public ISHL() {
super(org.apache.bcel.Constants.ISHL);
}
/**
* 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 visi... | 0 |
*
* @throws IllegalArgumentException if the uri is invalid.
| 0 |
name = SystemReadyServlet.PID,
public static final String PID = "org.apache.felix.systemready.impl.servlet.SystemReadyServlet";
| 0 |
final WritableByteChannel channel,
| 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.collect.Lists;
import java.io.IOException;
import java... | 0 |
* @version $Id$ | 0 |
import org.apache.aurora.scheduler.base.Tasks;
import static org.apache.aurora.scheduler.TaskVars.rackStatName;
ScheduledTask task = new ScheduledTask()
.setOwner(new Identity(ROLE_A, ROLE_A + "-user"))));
if (Tasks.SLAVE_ASSIGNED_STATES.contains(status) || Tasks.isTerminated(status)) {
ta... | 0 |
import org.apache.ambari.logsearch.util.SolrUtil;
import org.apache.solr.schema.TextField;
@Autowired
SolrUtil solrUtil;
String typeXAxis = solrDaoBase.schemaFieldsNameMap.get(xAxisField);
return rangeStackGraph(xAxisField, stackField, from, to, unit, solrDaoBase, solrQuery);
if (solrUtil.isSolrF... | 0 |
log.debug("Waiting {}ms before starting main replication loop", millisToWait); | 0 |
Predicate predicate = new LessPredicate(propertyId, 10);
resource.setProperty(propertyId, 1);
resource.setProperty(propertyId, 100);
resource.setProperty(propertyId, 10);
LessPredicate predicate = new LessPredicate(propertyId, 1); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/Functions.java,v 1.4 2003/01/11 05:41:22 dmitri Exp $
* $Revision: 1.4 $
* $Date: 2003/01/11 05:41:22 $
* {@link ClassFunctions ClassFunctions} and
* {@link PackageFunctions PackageFunc... | 1 |
final Candidate masterCandidate = new Candidate(masterGroup);
masterCandidate.watchLeader(new Candidate.LeaderChangeListener() {
@Override public void onLeaderChange(String leaderId) {
LOG.info("Received notification of nexus master group change: " + leaderId);
}
... | 0 |
* $Revision: 1.11 $
* $Date: 2003/10/26 17:18:11 $
import org.apache.commons.dbcp.datasources.TestFactory;
* @version $Revision: 1.11 $ $Date: 2003/10/26 17:18:11 $
suite.addTest(TestFactory.suite()); | 0 |
package org.apache.commons.ognl;
* http://www.apache.org/licenses/LICENSE-2.0
import java.util.Enumeration;
import java.util.Iterator; | 0 |
* can be invoked in order to start/register (or stop/unregister) a Service at any time. When this annotation
* Runnable starter
*
* @LifecycleController(start=false)
* Runnable stopper
* // start our "Z" service (our "start" method will be called, juste before service registrati... | 0 |
@Deprecated
| 0 |
void killTasks(Query.Builder query, String user); | 0 |
/*
Collection<String> roles = autoInstanceConfig.getRoles();
setViewInstanceRoleAccess(viewInstanceEntity, roles);
* Set access to the a particular view instance based on a set of roles.
* <p>
* View access to the specified view instances will be granted to anyone directly or indirectly
* as... | 0 |
private String activate;
private String deactivate;
private String modified;
public String getActivate() {
public void setActivate(String activate) {
public String getDeactivate() {
public void setDeactivate(String deactivate) {
public String getModified() {
public void setModified(S... | 0 |
@Override
protected int defaultTimeoutSeconds() {
return 10 * 60;
}
@Test | 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 |
* {@code null} if the client is not yet ready to send a
* @return an HTTP request to be sent or {@code null} if no | 0 |
} else if (DatabaseConsistencyCheckHelper.ifWarningsFound()) {
System.out.println("Database consistency check: warning"); | 0 |
* <p>
* Spring namespace handler for the Cocoon servlet namespace (<code>http://cocoon.apache.org/schema/servlet</code>).
* The {@link ServletDecorator} deals with the implementation details.
* @version $Id: ServletNamespaceHandler.java 562806 2007-08-05 02:26:41Z
* vgritsenko $ | 0 |
System.out.println(instance.getStatus().getMessage());
| 0 |
/** Tests of InstanceBuilder. */
@Rule public ExpectedException expectedEx = ExpectedException.none();
TupleTag tag =
InstanceBuilder.ofType(TupleTag.class)
.fromClassName(InstanceBuilderTest.class.getName())
.fromFactoryMethod("createTag")
.withArg(String.class, "hello... | 1 |
/*
* Copyright 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 applica... | 0 |
private String fieldName;
public CompactionsType(String which) {
this.fieldName = which;
}
@Override
public String format(Object obj) {
if (obj == null) return "-";
TableInfo summary = (TableInfo) obj;
Compacting c = summary.major;
if (fieldName.equals("minor")) c = summary.minor;... | 1 |
public static class DocumentURIResolver implements URIResolver { | 0 |
import org.apache.batik.ext.awt.image.Light; | 0 |
Object v1 = children[0].getValue( context, source );
Object v2 = children[1].getValue( context, source ); | 0 |
public Long lengthString(String str) {
public Long lengthBytes(byte[] bytes) {
public String reverseString(String str) {
public byte[] reverseBytes(byte[] bytes) { | 0 |
public static Object invokeCallbackMethod(Object instance, String methodName, Class[][] signatures, Object[][] parameters) throws NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
return invokeMethod(instance, currentClazz, methodName, signatures, p... | 0 |
* @throws IOException
* @throws IOException | 0 |
final class CallParamRule
extends AbstractXmlRule
{
public CallParamRule( RulesBinder targetRulesBinder, PatternStack patternStack )
{
super( targetRulesBinder, patternStack );
protected void bindRule( LinkedRuleBuilder linkedRuleBuilder, Attributes attributes )
throws Exception
{
... | 0 |
package org.apache.cocoon.portal.profile;
public class ConverterException extends Exception { | 0 |
import java.net.InetAddress;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.conn.ClientConnectionOperator;
import org.apache.http.conn.DnsResolver;
import org.apache.http.conn.scheme.SchemeLayeredSocketFactory;
import org.apache.http.conn.socket.LayeredConnectionSocketFactory;
import org.apache.ht... | 0 |
import com.twitter.common.application.modules.LocalServiceRegistry; | 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 org.apache.aurora.scheduler.storage.log;
import org.apache.aurora.codec.ThriftBinaryCodec;
import org.apache.aurora.codec.ThriftBinaryCodec.CodingException;
import org.apache.aurora.gen.storage.LogEntry;
import org.apache.aurora.gen.storage.LogEntry._Fields;
| 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Optional;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Predicate;
import org.apache.beam.vendor.guava.v20_0.com.google.common.base.Predic... | 0 |
import org.apache.hc.core5.net.URIAuthority;
import org.apache.hc.core5.net.URIBuilder;
* Convenience factory method for {@link URI} instances.
*
* @since 5.0
*/
public static URI create(final HttpHost host, final String path) throws URISyntaxException {
final URIBuilder builder = new UR... | 0 |
import org.apache.http.HttpResponse;
protected void doService(final HttpRequest request, final HttpResponse response) | 0 |
package org.apache.atlas.model;
import org.apache.atlas.model.SearchFilter.SortType;
import javax.xml.bind.annotation.XmlRootElement;
* Paginated-list, for returning search results.
@XmlRootElement
public PList(List<T> list) {
this(list, 0, list.size(), list.size(), SortType.NONE, null);
}
public... | 0 |
Map<String, Map<String, String>> userProvidedProperties = getUserProvidedProperties(topology, existingConfigurations);
blueprintConfig.getProperties(), blueprintConfig.getPropertyAttributes())); | 0 |
package org.apache.xml.security.test.dom.c14n.implementations; | 0 |
import java.util.Map;
import java.util.TreeMap;
Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
headers.put(hdrName, hdrValue);
return loadKeyPairs(session, resourceKey, pubLines, prvLines, prvEncryption, passwordProvider, headers);
FilePasswordProvide... | 0 |
import org.apache.beam.runners.core.TimerInternals.TimerData; | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
AccumuloClient c = getAccumuloClient();
AccumuloClient c = getAccumuloClient(); | 0 |
return ZeroArgsAdapter.INSTANCE;
* If SQL aggregation call doesn't have actual arguments, we pass an empty row to it.
*
* <p>This is for cases like COUNT(1) which doesn't take any arguments, or COUNT(*) that is a
* special case that returns the same result. In both of these cases we should count all R... | 0 |
private static final String SLAVE_ID = OFFER.getOffer().getSlaveId().getValue();
expectPreemptorCall(TASK_A, Optional.of(SLAVE_ID));
expectPreemptorCall(TASK_B, Optional.<String>absent());
expectPreemptorCall(TASK_A, Optional.of(SLAVE_ID));
expectPreemptorCall(TASK_A, Optional.of(SLAVE_ID));
expe... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//jxpath/src/java/org/apache/commons/jxpath/XMLDocumentContainer.java,v 1.4 2002/04/26 03:28:36 dmitri Exp $
* $Revision: 1.4 $
* $Date: 2002/04/26 03:28:36 $
* @version $Revision: 1.4 $ $Date: 2002/04/26 03:28:36 $
thr... | 0 |
aggregate = deltaAggregate = Double.NEGATIVE_INFINITY;
aggregate = deltaAggregate = Double.POSITIVE_INFINITY;
deltaAggregate = Double.NEGATIVE_INFINITY;
deltaAggregate = Double.POSITIVE_INFINITY; | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CursorableLinkedList.java,v 1.8 2002/06/16 03:39:40 mas Exp $
* $Revision: 1.8 $
* $Date: 2002/06/16 03:39:40 $
* @version $Id: CursorableLinkedList.java,v 1.8 2002/06/16 03:39:... | 0 |
* @version $Id$ | 0 |
final File baseDir = AbstractVfsTestCase.getTestDirectory(); | 0 |
* @version CVS $Id: Principal.java,v 1.2 2003/03/16 17:49:06 vgritsenko Exp $ | 0 |
// Set supported execution environments to default value,
// if not explicitly configured.
if (!getConfig().containsKey(Constants.FRAMEWORK_EXECUTIONENVIRONMENT))
{
s = Util.getDefaultProperty(
m_logger, Constants.FRAMEWORK_EXECUTIONENVIRONMENT);
... | 0 |
import java.io.IOException;
SshdSocketAddress startLocalPortForwarding(SshdSocketAddress local, SshdSocketAddress remote) throws IOException;
void stopLocalPortForwarding(SshdSocketAddress local) throws IOException;
SshdSocketAddress startRemotePortForwarding(SshdSocketAddress remote, SshdSocketAddress loc... | 0 |
@Override
@Override
@Override
@Override
@Override
@Override | 0 |
import java.util.ArrayList;
import java.util.List;
public ListenerEndpoint[] getEndpoints() {
List<ListenerEndpoint> list = new ArrayList<ListenerEndpoint>();
Set<SelectionKey> keys = this.selector.keys();
for (Iterator<SelectionKey> it = keys.iterator(); it.hasNext(); ) {
Select... | 0 |
m.put("colf", "colq", new Value(new byte[] {}));
m.put("colf", "colq", new Value(new byte[] {}));
m.put(new Text(oversized), new Text("colq"), new Value(new byte[] {}));
m.put(new Text(oversized), new Text("colq"), new Value(new byte[] {})); | 0 |
getListIterator().add(object);
getListIterator().set(object); | 0 |
* @param paramType The request {@link KexProposalOption} value
* - ignored if {@code null}
* otherwise for the outgoing data
* otherwise for the outgoing data
* otherwise for the outgoing data
* @return The {@link IoSession} associated to this session | 0 |
import org.apache.zookeeper.ZKTestCase;
public class QuorumPeerTestBase extends ZKTestCase implements Watcher { | 0 |
(new org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI(), 1); | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.