Diff stringlengths 5 2k | FaultInducingLabel int64 0 1 |
|---|---|
import java.net.URI;
URI curUri = cwd.toURI();
URI newUri = curUri.resolve(dir);
cwd = new File(newUri);
} | 0 |
configurations, kerberosConfigurations, true, propertiesToIgnore); | 0 |
import com.sun.jersey.core.util.MultivaluedMapImpl;
import javax.ws.rs.core.MultivaluedMap;
MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
queryParams.add("query", dslQuery);
JSONObject response = serviceClient.callAPIWithQueryParams(AtlasClient.API.SEARCH_DSL, queryParam... | 0 |
case OperatingSystem:
return new OperatingSystemResourceProvider(managementController);
case Repository:
return new RepositoryResourceProvider(managementController); | 0 |
* Thrown when parsing XML into Digester rules, if a circular inclusion occurred in the xml digester rules files.
*
public class CircularIncludeException
extends XmlLoadException
{
* @param fileName the name of the XML file suspected of causing the circular inclusion
public CircularIncludeException( Stri... | 1 |
import java.awt.Insets;
import org.apache.commons.jelly.Tag; | 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 |
assertEquals("4.9.35", NativeLibraryClause.normalizeOSVersion("4.9.35+"));
assertEquals("4.9.0", NativeLibraryClause.normalizeOSVersion("4.9+"));
assertEquals("4.0.0", NativeLibraryClause.normalizeOSVersion("4+")); | 0 |
Assert.assertTrue(validPropertyIds.contains("Actions/action_type"));
Assert.assertTrue(validPropertyIds.contains("Actions/inputs"));
Assert.assertTrue(validPropertyIds.contains("Actions/target_service"));
Assert.assertTrue(validPropertyIds.contains("Actions/target_component"));
Assert.assertTrue(val... | 0 |
package org.apache.felix.ipojo.runtime.core.test.components;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Property;
import org.apache.felix.ipojo.runtime.core.test.services.BarService;
import org.apache.felix.ipojo.runtime.core.test.services.FooService;
@Component
pub... | 0 |
import org.apache.accumulo.core.data.TableId;
TableId tableId = Tables.getTableId(context, tableName); | 0 |
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@SuppressFBWarnings(value = "PATH_TRAVERSAL_IN", justification = "paths not set by user input") | 0 |
import org.apache.http.annotation.NotThreadSafe;
@NotThreadSafe
/**
* Constructs an empty instance.
*/
/**
* Construct an instance from the string which must be a valid URI.
*
* @param string a valid URI in string form
* @throws URISyntaxException if the input is not a valid URI
... | 0 |
@Ignore("https://jira.apache.org/jira/browse/BEAM-7582") | 0 |
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkNotNull;
import static org.apache.beam.vendor.guava.v20_0.com.google.common.base.Preconditions.checkState;
import org.apache.bea... | 0 |
private static org.slf4j.Logger log = | 1 |
char[] getText(); | 0 |
* pipeline. Please refer to the documentation of corresponding {@link PipelineRunner}s for | 0 |
import static org.apache.felix.dm.impl.Configurable.create;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.util.Arrays;
import java.util.Collections;
import java.util.Has... | 0 |
import static java.util.Objects.requireNonNull;
this.schedulerStore = requireNonNull(schedulerStore);
this.jobStore = requireNonNull(jobStore);
this.taskStore = requireNonNull(taskStore);
this.lockStore = requireNonNull(lockStore);
this.quotaStore = requireNonNull(quotaStore);
this.attributeStor... | 0 |
import java.util.Map;
import org.apache.cocoon.util.AbstractLogEnabled;
public abstract class AbstractWildcardMatcher extends AbstractLogEnabled
implements Matcher, ThreadSafe {
*
* @see AbstractPreparableMatcher#match(String, Map, Parameters)
... | 0 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
@Contract(threading = ThreadingBehavior.IMMUTABLE) | 0 |
/*
* $Header: /cvshome/build/ee.foundation/src/java/lang/IllegalThreadStateException.java,v 1.6 2006/03/14 01:20:25 hargrave Exp $
*
* (C) Copyright 2001 Sun Microsystems, Inc.
* Copyright (c) OSGi Alliance (2001, 2005). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | 0 |
import org.apache.http.message.BasicHeader;
if (entity.getContentType() != null && !response.containsHeader(HttpHeaders.CONTENT_TYPE)) {
response.addHeader(new BasicHeader(HttpHeaders.CONTENT_TYPE, entity.getContentType()));
if (entity.getContentEncoding() != null && !response.co... | 0 |
() -> storage.write(storeProvider -> stateManager.changeState(
storeProvider,
stateChange.getTaskId(),
Optional.of(THROTTLED),
PENDING,
Optional.absent())), | 0 |
/** Join builder which adds input {@link Dataset Datasets} to operator under build. */
/** Join builder which adds key extractors to operator under build. */
/** Join builder which adds joint function to operator under build. */
/** Join builder which adds input key extractors to operator under build. */
/** ... | 0 |
import org.apache.accumulo.core.client.AccumuloClient;
private static void waitForAccumulo(AccumuloClient c) throws Exception {
AccumuloClient c = SharedMiniClusterBase.getClient(); | 0 |
List<ServiceTestInvocation> listInvocations = new ArrayList<>(); | 1 |
* Copyright 2001-2006 The Apache Software Foundation. | 0 |
bridgeContext.getUserAgent().loadDocument(url);
String url = bridgeContext.getDocument()
bridgeContext.getUserAgent().loadDocument(url);
return bridgeContext.getDocument() | 0 |
import org.apache.ambari.server.state.cluster.ClustersImpl;
bindConstant().annotatedWith(Names.named("schedulerSleeptime")).to(10000L);
bindConstant().annotatedWith(Names.named("actionTimeout")).to(60000L); | 1 |
private String m_embedDirectory;
private String m_embedStripGroup;
private String m_embedStripVersion;
m_embedDirectory = properties.getProperty( EMBED_DIRECTORY );
m_embedStripGroup = properties.getProperty( EMBED_STRIP_GROUP, "true" );
m_embedStripVersion = properties.... | 0 |
String dbName = configuration.getServerJDBCPostgresSchemaName(); | 0 |
public class InventoryPrinterDescription implements Comparable {
public int compareTo(final Object spa) {
return this.reference.compareTo(((InventoryPrinterDescription)spa).reference);
+ ", modes=" + Arrays.toString(modes) + ", sortKey=" + sortKey + "]"; | 0 |
import org.apache.accumulo.core.client.impl.Credentials; | 1 |
// Implementation methods | 0 |
Window<String> windowingFn = Window.<String>into(FixedWindows.of(Duration.standardDays(10L))); | 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 |
public class MapReduceIT extends ConfigurableMacIT {
static final String output_cfcq = input_cf + ":" + output_cq;
Process hash = exec(RowHash.class, "-i", c.getInstance().getInstanceName(), "-z", c.getInstance().getZooKeepers(), "-u", "root", "-p", ROOT_PASSWORD, "-t",
tablename, "--column", input_cfc... | 0 |
getManagementController().getConfigHelper().invalidateStaleConfigsCache(); | 0 |
public static final String ALERT_TARGET = "AlertTarget";
public static final String ALERT_TARGET_ID = "AlertTarget/id";
public static final String ALERT_TARGET_NAME = "AlertTarget/name";
public static final String ALERT_TARGET_DESCRIPTION = "AlertTarget/description";
public static final String ALERT_TARGET_NO... | 1 |
public static final String USER_PRINCIPAL_TYPE_NAME = PrincipalType.USER.toString();
public static final String GROUP_PRINCIPAL_TYPE_NAME = PrincipalType.GROUP.toString();
public static final String ROLE_PRINCIPAL_TYPE_NAME = PrincipalType.ROLE.toString();
public enum PrincipalType {
USER,
GROUP,
... | 0 |
private static final int POPULATION_TIME_UPPER_LIMIT = 5;
int totalTime = endTime - startTime;
if (LOG.isInfoEnabled() && totalTime > POPULATION_TIME_UPPER_LIMIT) {
LOG.info("Ganglia resource population time: " + totalTime); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//dbcp/src/java/org/apache/commons/dbcp/ConnectionFactory.java,v 1.2 2002/03/17 14:55:20 rwaldhoff Exp $
* $Revision: 1.2 $
* $Date: 2002/03/17 14:55:20 $
import java.sql.SQLException;
* @version $Id: ConnectionFactory.java,v 1.2 2... | 0 |
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.CacheBuilder;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.CacheLoader;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LoadingCache;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache... | 0 |
import org.apache.accumulo.core.client.impl.Table;
String tblStr = c.tableOperations().tableIdMap().get(tableName);
if (null == tblStr) {
Table.ID tableId = new Table.ID(tblStr);
Table.ID tableIdEntry = new Table.ID(parts[parts.length - 2]); | 1 |
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
@Contract(threading = ThreadingBehavior.IMMUTABLE_CONDITIONAL)
public FileEntity(final File file, final ContentType contentType, final String contentEncoding) {
super(contentType, contentEncoding);
p... | 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 |
"UCX$REXECD_STARTUP.LOG;1098\r\n"+
" 4/15 24-FEB-2003 13:17:24 [POSTWARE,LP] (RWED,RWED,RE,)",
"UNZIP_AND_ATTACH_FILES.COM;12\r\n"+
" 14/15 24-JUL-2002 14:35:40 [TRANSLATED] (RWE,RWE,RWE,RE)",
"UNZIP_AND_ATTAC... | 0 |
implements PoolableObjectFactory<PoolableConnection> {
public PoolableConnection makeObject() throws Exception {
try {
initializeConnection(conn);
} catch (SQLException sqle) {
// Make sure the connection is closed
try {
conn.close();
... | 0 |
return (int) (this.endMillis - that.endMillis);
return (int) (this.startMillis - that.startMillis); | 0 |
import java.util.Iterator;
public class LineIterator implements Iterator { | 0 |
import com.google.cloud.dataflow.sdk.coders.Coder;
import com.google.cloud.dataflow.sdk.util.CloudObject;
import com.google.cloud.dataflow.sdk.util.Serializer;
private final ReaderFactory readerFactory;
ReaderFactory readerFactory,
this.readerFactory = readerFactory;
readerFactory,
private final... | 0 |
org.apache.commons.logging.LogFactory.getLog(ResolverLocalFilesystem.class); | 0 |
private final String name;
private final String city;
private final String state;
private final long id; | 0 |
for(Article article : arts){
articles.add(article); | 0 |
import org.apache.sshd.server.command.UnknownCommand; | 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 |
* Handle any exceptions that occurred on this session. | 0 |
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Storage.MutableStoreProvider storeProvider) {
public void execute(Stor... | 0 |
/**
* Gets the widget service
*/
@Path("{clusterName}/widgets")
public WidgetService getWidgetService(@Context javax.ws.rs.core.Request request,
@PathParam ("clusterName") String clusterName) {
return new WidgetService(clusterName);
}
| 0 |
import org.apache.hc.core5.util.Timeout;
final Object attachment,
final Timeout handshakeTimeout) {
tlsSession.startTls(sslContext, host, sslBufferMode, initializer, verifier, handshakeTimeout); | 0 |
setInfoForRelations(saved);
setInfoForRelations(ret); | 0 |
import org.apache.beam.model.pipeline.v1.Endpoints;
import org.apache.beam.model.pipeline.v1.RunnerApi; | 0 |
/*
* 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 ... | 1 |
import org.apache.beam.sdk.transforms.display.DisplayData;
public void populateDisplayData(DisplayData.Builder builder) {
super.populateDisplayData(builder);
builder
.addIfNotNull("rootElement", rootElement)
.addIfNotNull("recordElement", recordElement)
.addIfNotNull("recordClass", rec... | 0 |
return this.items.toArray(items);
return this.skipDays.toArray(skipDays);
return this.skipHours.toArray(skipHours);
// Can not happen | 0 |
import com.google.common.base.Optional;
updateResult == UpdateResult.TERMINATE ?
Optional.<String>absent() : Optional.of(updateToken),
updateResult); | 0 |
package org.apache.atlas.typesystem.exception;
import org.apache.atlas.AtlasException;
public class EntityNotFoundException extends AtlasException { | 1 |
log.info("There are " + allocatedNativeMaps.size() + " allocated native maps"); | 0 |
waitFor(1000, new Predicate() { | 0 |
public OnElementEvent(Object value, Instant timestamp, W window) { | 0 |
import org.apache.hc.core5.http.ContentType; | 0 |
Set<ExceptionHandler> hsSet = exceptionhandlers.get(ih);
if (hsSet == null) {
return hsSet.toArray(new ExceptionHandler[hsSet.size()]); | 0 |
private static class SparkMetricQueryResults implements MetricQueryResults {
.from(SparkMetricsContainer.getCounters())
.from(SparkMetricsContainer.getDistributions()) | 0 |
@SuppressWarnings("unchecked")
final PCollection<LeftT> left = (PCollection<LeftT>) context
@SuppressWarnings("unchecked")
final PCollection<RightT> right = (PCollection<RightT>) context
@SuppressWarnings("unchecked")
final ArrayList<Dataset> inputs = new ArrayList(operator.listInputs()); | 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 org.apache.sshd.common.util.GenericUtils;
this.factory = ValidateUtils.checkNotNull(factory, "No factory", GenericUtils.EMPTY_OBJECT_ARRAY);
Signature sig = ValidateUtils.checkNotNull(
NamedFactory.Utils.create(manager.getSignatureFactories(), algo),
"Unknown negot... | 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 org.apache.sshd.util.test.JUnitTestSupport;
public class SecurityProviderRegistrarCipherNameTest extends JUnitTestSupport { | 0 |
public void setValue(Object value) {
this.value = value;
}
| 0 |
import java.util.Collection;
| 0 |
public static Map<String, Map<String, MultimapSideInputSpec>> getMultimapSideInputs(
ExecutableStage stage) throws IOException {
return addMultimapSideInputs(stage, stage.getComponents().toBuilder());
}
| 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestDoubleOrderedMap.java,v 1.13 2003/11/18 22:37:15 scolebourne Exp $
* @version $Revision: 1.13 $ $Date: 2003/11/18 22:37:15 $
public boolean isAllowNullKey() {
public b... | 0 |
/** Binary compatibility adapter for {@link #via(InferableFunction)}. */
public static <InputT, OutputT> MapElements<InputT, OutputT> via(
final SimpleFunction<InputT, OutputT> fn) {
return via((InferableFunction<InputT, OutputT>) fn);
}
/** Binary compatibility adapter for {@link #via(ProcessFunctio... | 0 |
*/
boolean packFrame = false;
/** Constructor. */
public GraphicalVerifier() {
VerifierAppFrame frame = new VerifierAppFrame();
//Frames berprfen, die voreingestellte Gre haben
//Frames packen, die nutzbare bevorzugte Greninformationen enthalten, z.B. aus ihrem Layout
if (p... | 0 |
* @throws NullPointerException if the map is null | 0 |
IN, WIN, KIN, KEY, OUT, W extends Window<?>, TYPE extends Dataset<OUT>,
OP extends StateAwareWindowWiseSingleInputOperator<IN, WIN, KIN, KEY, OUT, W, TYPE, OP>>
extends StateAwareWindowWiseOperator<IN, WIN, KIN, KEY, OUT, W, TYPE, OP> {
String name, Flow flow, Dataset<IN> input, UnaryFunction<KIN,... | 0 |
* Copyright (c) 1999 The Apache Software Foundation. All rights
* notice, this list of conditions and the following disclaimer.
* if any, must include the following acknowledgment:
* software without prior written permission. For written
* The development of this software was partly funded by the Europea... | 0 |
this.pipeline = QueryablePipeline.forPrimitivesIn(p.getComponents()); | 0 |
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/PriorityQueue.java,v 1.8 2003/12/13 23:51:28 scolebourne Exp $
* Defines a collection for priority queues, which can insert, peek and pop.
* <p>
* @version $Revision: 1.8 $ $Dat... | 0 |
/*
* Copyright 2016-2018 Seznam.cz, a.s. | 0 |
log.debug("Closing expired free connection"
} | 0 |
import cz.seznam.euphoria.core.client.dataset.windowing.GlobalWindowing;
return windowing instanceof GlobalWindowing; | 0 |
private Text[] cutPointArray = null; | 0 |
import org.apache.http.annotation.ThreadSafe;
@ThreadSafe | 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.beam.sdk.fn.function.ThrowingConsumer;
private final ThrowingConsumer<? super FnApiControlClient> clientPool;
ThrowingConsumer<? super FnApiControlClient> clientPool,
ThrowingConsumer<? super FnApiControlClient> clientPool,
clientPool.accept(newClient); | 0 |
* @version $Id: ScriptableWidget.java,v 1.2 2004/03/11 02:56:32 joerg Exp $
// make cform accept a JS Number | 0 |
clear();
public int read(final byte[] b, int off, int len) {
public int read(final byte[] b) {
public int read() {
public boolean readLine(final CharArrayBuffer linebuffer, boolean endOfStream) { | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.