Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbutils/src/test/org/apache/commons/dbutils/handlers/BeanHandlerTest.java,v 1.2 2004/01/11 22:30:38 dgraham Exp $
* $Revision: 1.2 $
* $Date: 2004/01/11 22:30:38 $
* Copyright (c) 2003-2004 The Apache Software Foundation. All ri... | 0 |
import org.apache.beam.sdk.transforms.Distinct;
/** Unit tests for {@link Distinct}. */
public class DistinctExampleTest {
public void testDistinct() {
input.apply(Distinct.<String>create());
public void testDistinctEmpty() {
input.apply(Distinct.<String>create()); | 0 |
* Copyright (C) 2015 Google Inc. | 0 |
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonProperty("alertDefinitions")
@JsonProperty("configurations")
@JsonProperty("clusterName")
@JsonProperty("hostName") | 0 |
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
@XmlAccessorType(XmlAccessType.FIELD)
private String fileName;
@XmlElement(name = "default")
private Boolean isDefault = fa... | 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 |
return new User("testuser", "password", Collections.emptyList());
ResourceInstance resource = new QueryImpl(new HashMap<>(), new HostComponentResourceDefinition(), null);
ResourceInstance resource = new QueryImpl(new HashMap<>(), new HostComponentResourceDefinition(), null);
ResourceInstance res... | 0 |
this.log.error( "Shell Features service is unavailable." );
this.log.error( "Shell Features service is unavailable." );
this.log.error( "Shell Features service is unavailable." );
this.log.error( "Shell Features service is unavailable." );
this.log.error( "She... | 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 |
import org.apache.beam.sdk.values.Row;
@Override public PCollection<Row> buildBeamPipeline(PCollectionTuple inputPCollections | 0 |
Copyright 2001-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 applica... | 0 |
Constants.setSignatureSpecNSprefix("ds"); | 0 |
package org.apache.aurora.scheduler;
import org.apache.aurora.scheduler.configuration.Resources;
import org.apache.aurora.scheduler.storage.entities.ITaskConfig;
| 0 |
assertTrue(results.stream().anyMatch(s -> s.startsWith("NULL") && s.endsWith("" + 1)));
assertTrue(results.stream().anyMatch(s -> s.startsWith("19700101") && s.endsWith("" + 2))); | 0 |
public void execute(Storage.MutableStoreProvider storeProvider) { | 0 |
* for (int i = offset; i < length; i++) { | 0 |
@Override | 1 |
params.put("auth","NONE"); | 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.felix.ipojo.test.scenarios.component.temporal;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.handler.temporal.Requires;
import org.apache.felix.ipojo.test.scenarios.annotations.service.FooService;
@Component
public class TemporalWithTimeout {
@Requires(... | 0 |
import org.apache.commons.vfs.FileName;
* @version $Revision: 1.3 $ $Date: 2003/02/12 02:05:20 $
super( scheme, zipFileUri, path );
* Builds the root URI for this file name.
protected void appendRootUri( final StringBuffer buffer )
buffer.append( getScheme() );
UriParser.appendEncoded(... | 0 |
ByteArrayOutputStream bout = new ByteArrayOutputStream(string.length() * 2 / 3);
decode(rdr, bout);
}
catch (Exception e) {
while ((c = rdr.read()) >= 0) {
throw new IllegalArgumentException("Invalid base64 character in " + rdr + ", character value > 128 ");
if (c == '=') {
if (v < 0)
throw... | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestAll.java,v 1.11 2003/09/13 16:12:47 psteitz Exp $
* @version $Revision: 1.11 $ $Date: 2003/09/13 16:12:47 $
suite.addTest(TestPredicatedMap.suite());
... | 0 |
Set<String> percentMetrics = new HashSet<>();
Set<String> metricsWithAggregateFunctionIds = new HashSet<>(); | 0 |
* @param session The (never {@code null}) client session instance | 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 |
String propertyCategory = PropertyHelper.getPropertyCategory(entry.getKey());
if (propertyCategory != null && propertyCategory.equals("config")) { | 0 |
@Deprecated
public Socket createLayeredSocket( | 0 |
* --runner=BlockingDataflowRunner | 0 |
protected final AuthState targetAuthState;
protected final AuthState proxyAuthState;
this.targetAuthState = new AuthState();
this.proxyAuthState = new AuthState();
context.setAttribute(ClientContext.TARGET_AUTH_STATE, targetAuthState);
context.setAttribute(ClientContext.PROXY_AUT... | 0 |
@Override | 0 |
import static org.junit.Assert.assertTrue;
| 0 |
/** {@link org.apache.commons.logging} logging facility */
private static final org.apache.commons.logging.Log log =
org.apache.commons.logging.LogFactory.getLog(XMLUtils.class);
} catch (IOException ex) {
if (log.isDebugEnabled()) {
log.debug(ex);
... | 0 |
Copyright 2002-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... | 0 |
final X509HostnameVerifier verifier = SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER; | 0 |
import org.apache.accumulo.core.security.thrift.ThriftSecurityException; | 0 |
try (final BufferedOutputStream output1 =
new BufferedOutputStream(new FileOutputStream(m_testFile1))) {
try (final BufferedOutputStream output =
new BufferedOutputStream(new FileOutputStream(m_testFile2))) { | 0 |
package org.w3c.dom.svg;
import org.w3c.dom.DOMException;
public interface SVGAnimatedNumberList {
public SVGNumberList getBaseVal( );
public void setBaseVal( SVGNumberList baseVal )
throws DOMException;
public SVGNumberList getAnimVal( );
} | 1 |
* @version $Id: TestPropertiesConfiguration.java,v 1.16 2004/11/14 18:29:02 oheger Exp $
public void testLoadUnexistingFile()
{
try
{
conf = new PropertiesConfiguration("Unexisting file");
fail("Unexisting file was loaded.");
}
catch(ConfigurationExc... | 0 |
import java.util.Collections;
@Test
public void testReseekUnconsumed() throws Exception {
TestRFile trf = new TestRFile();
trf.openWriter();
for (int i = 0; i < 2500; i++) {
trf.writer.append(nk(nf("r_", i), "cf1", "cq1", "L1", 42), nv("foo" + i));
}
trf.closeWriter();
t... | 0 |
public abstract static class Builder {
public abstract Builder setName(String name);
public abstract Builder setDescription(String description);
public abstract Builder setType(FieldType fieldType);
public abstract Builder setNullable(Boolean nullable);
public abstract Field build(); | 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 |
String PARAM_YARN_ATS_URL = "yarn.ats.url";
String PARAM_YARN_RESOURCEMANAGER_URL = "yarn.resourcemanager.url";
String PARAM_YARN_PROTOCOL = "yarn.protocol";
/**
* @return The authentication type for RM. Check: https://hadoop.apache.org/docs/r1.2.1/HttpAuthentication.html
*/
String getRMAuthenticationT... | 0 |
* @version CVS $Id: RendererFactory.java,v 1.2 2004/01/19 09:27:26 antonio Exp $
Renderer createRenderer(String mimeType); | 0 |
import org.apache.accumulo.core.client.BatchWriterConfig;
bw = connector.createBatchWriter(table, new BatchWriterConfig()); | 0 |
Path root =
new Path(fs.getUri().toString() + cluster.getTemporaryPath(), getClass().getName()); | 0 |
import java.net.Socket;
* ClientConnectionOperator represents a strategy for creating
* {@link OperatedClientConnection} instances and updating the underlying
* {@link Socket} of those objects. Implementations will most likely make use
* of {@link SocketFactory}s to create {@link Socket} instances. | 0 |
Collections.unmodifiableSet(EnumSet.allOf(Result.class)); | 0 |
* @return {@code true</code> if the request should be redirected, <code>false} | 0 |
private static final Logger log = Logger.getLogger(SecurityHelper.class); | 0 |
Document document = XMLUtils.parse(sourceDocument, false);
document = StAX2DOM.readDoc(XMLUtils.newDocument(false), securityStreamReader);
Document document = XMLUtils.parse(sourceDocument, false);
document = StAX2DOM.readDoc(XMLUtils.newDocument(false), securityStreamReader);
Do... | 0 |
Request nextPending = null;
case OpCode.check:
| 0 |
package org.apache.hadoop.metrics2.sink.timeline.cache;
public static final int MAX_RECS_PER_NAME_DEFAULT = 10000;
public static final int MAX_EVICTION_TIME_MILLIS = 59000; // ~ 1 min
public TimelineMetricsCache(int maxRecsPerName, int maxEvictionTimeInMillis) { | 0 |
private static final Map<Integer,TTransportFactory> factoryCache = new HashMap<>(); | 0 |
public void testSuperCallWithBC() {
try {
Factory fact = Utils.getFactoryByName(context, "org.apache.felix.ipojo.test.scenarios.component.CallSuperConstructorWithBC");
ComponentInstance ci = fact.createComponentInstance(null);
ci.dispose();
} catch (Throwable e) {... | 0 |
* @version CVS $Id$ | 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 |
* 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 |
import org.apache.bcel.classfile.LocalVariableTypeTable;
} else if (a instanceof LocalVariableTypeTable) {
LocalVariable[] lv = ((LocalVariableTypeTable) a).getLocalVariableTypeTable();
removeLocalVariables();
for (int k = 0; k ... | 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 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//digester/src/java/org/apache/commons/digester/rss/Attic/Channel.java,v 1.4 2003/02/02 15:53:56 rdonkin Exp $
* $Revision: 1.4 $
* $Date: 2003/02/02 15:53:56 $
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
... | 0 |
* Creates a new instance of <code>Node</code> and sets the name and the value. | 0 |
log.trace(String.format("tservers per batch : %,8.2f avg %,6d min %,6d max", tabletServersBatchSum / (double) numBatches, minTabletServersBatch,
log.trace(String.format("tablets per batch : %,8.2f avg %,6d min %,6d max", tabletBatchSum / (double) numBatches, minTabletBatch, maxTabletBatch));
... | 0 |
/**
* A demonstration of reading entire rows and deleting entire rows.
*/ | 0 |
import org.apache.accumulo.core.security.tokens.UserPassToken;
if (!shellState.getConnector().securityOperations().authenticateUser(new UserPassToken(currentUser, oldPassword)))
shellState.getConnector().securityOperations().changeUserPassword(new UserPassToken(user, pass));
shellState.updateUser(user, pa... | 0 |
/**
*
*
*
*
*
* | 0 |
import static org.apache.beam.sdk.extensions.sql.SqlTypeCoders.INTEGER;
import static org.apache.beam.sdk.extensions.sql.SqlTypeCoders.VARCHAR;
.coder(INTEGER)
.coder(VARCHAR) | 0 |
/**
* Abstract {@link ParamTypeBuilder} implementation for {@code setNext()}, {@code setRoot()} and {@code setTop()}
*
* @param <R> The rule type has to be created
*/
/**
* {@inheritDoc}
*/
/**
* {@inheritDoc}
*/
/**
* {@inheri... | 0 |
* Autogenerated by Thrift Compiler (0.9.1) | 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 |
private final boolean masterComponent;
String hostName, boolean recoveryEnabled, boolean masterComponent) {
this.masterComponent = masterComponent;
public boolean isMasterComponent() {
return masterComponent;
}
buffer.append("clusterId=").append(m_clusterId); | 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 |
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 use... | 0 |
* @version CVS $Id: PatternTransformer.java,v 1.6 2003/10/25 17:37:42 cziegeler Exp $
/* if (this.lexiconSource.getInputStream()==null) {
}*/ | 0 |
/**
* This plugin is called after analysis. The plugin is free to modify the
* jar and/or change the classpath information (see referred, contained).
* This plugin is called after analysis of the JAR but before manifest
* generation.
*
* @param analyzer
* @return true if the classpace has been modified ... | 0 |
// no arg constructor should do minimal work since its used in Main ServiceLoader
public Shell() {}
* @throws IOException
* if problems occur creating the ConsoleReader
public boolean config(String... args) throws IOException {
if (this.reader == null)
this.reader = new ConsoleReader();
... | 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 ap... | 0 |
int b = this.buffer.get();
if (b < 0) {
b = 256 + b;
}
return b; | 0 |
import java.io.Serializable;
import java.util.Objects;
class ShardedKey<K> implements Serializable {
@Override
public String toString() {
return "key: " + key + " shard: " + shardNumber;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof ShardedKey)) {
return false;
}
Sh... | 0 |
poolEntry.shutdownEntry();
poolEntry.shutdownEntry(); | 0 |
package org.apache.beam.runners.flink; | 0 |
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
* @version CVS $Id: Logicsheet.java,v 1.3 2004/02/07 15:20:09 joerg Exp $
* The ServiceManager of this instance.
private ServiceManager manager;
public Logicsheet(Source source, ServiceM... | 0 |
import java.lang.reflect.Method;
import org.apache.beam.sdk.PipelineRunner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static final Logger LOG = LoggerFactory.getLogger(SerializableCoder.class);
@Override
public boolean consistentWithEquals() {
return false;
}
/**
* The structur... | 0 |
import org.apache.accumulo.core.client.admin.ReplicationOperations;
/**
* Retrieves a ReplicationOperations object to manage replication configuration.
*
* @return an object to modify replication configuration
* @since 1.7.0
*/
public abstract ReplicationOperations replicationOperations(); | 0 |
info(getInstanceManager().getInstanceName() + " is reconfiguring the properties : " + configuration); | 0 |
public static <T> PredicatedCollection<T> predicatedCollection(final Collection<T> coll,
final Predicate<? super T> predicate) {
protected PredicatedCollection(final Collection<E> coll, final Predicate<? super E> predicate) {
for (final ... | 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 |
final HttpRequestHandler handler = handlerResolver.lookup(requestURI); | 0 |
* @see org.apache.felix.ipojo.architecture.Architecture#getDescription() | 0 |
BeanUtilsBean.getInstance().getPropertyUtils().clearDescriptors(); | 0 |
import org.apache.ambari.server.state.UpgradeState;
stateEntity.setUpgradeState(UpgradeState.NONE);
}
/***
* To be called during the upgrade of a specific Component in a host.
* The potential upgrade states are NONE (default), PENDING, IN_PROGRESS, FAILED.
* If the upgrade completes successfully, the u... | 0 |
@Test
public void setIterTest() throws IOException {
Shell.log.debug("Starting setiter test --------------------------");
exec("createtable t", true);
String cmdJustClass = "setiter -class VersioningIterator -p 1";
exec(cmdJustClass, false, "java.lang.IllegalArgumentException", false);
e... | 0 |
* <p><em>Note:</em> This method does not work correctly with custom bean
* introspection under certain circumstances. It may return {@code null}
* even if a write method is defined for the property in question. Use
* {@link #getWriteMethod(Class, PropertyDescriptor)} to be sure that the
* corre... | 0 |
* A SyncRequestProcessor is also spawned off to log proposals from the leader.
public class FollowerZooKeeperServer extends LearnerZooKeeperServer {
this.self = self;
}
new SendAckRequestProcessor((Learner)getFollower()));
/**
* When a COMMIT message is received,... | 0 |
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
| 0 |
import java.util.Iterator; | 0 |
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.apache.atlas.ocf.properties.beans.Connection;
import java.util.List;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibi... | 0 |
import org.apache.excalibur.source.Source;
import org.apache.excalibur.source.SourceException;
import org.apache.excalibur.source.SourceNotFoundException;
import org.apache.excalibur.source.SourceValidity;
import org.apache.excalibur.source.impl.validity.TimeStampValidity;
* @version CVS $Id: CocoonToAvalonSource.jav... | 0 |
* according to {@link Object#equals(Object)}, the encoded bytes are
* @throws NonDeterministicException never, unless overridden. A
* {@link DeterministicStandardCoder} is presumed deterministic. | 0 |
* @param target A target path {@link String} or {@link Handle} or {@code byte[]}
* @param target A target path {@link String} or {@link Handle} or {@code byte[]}
* @param target A target path {@link String} or {@link Handle} or {@code byte[]}
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.